github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp --
clang/test/AST/undocumented-attrs.cpp clang/utils/TableGen/ClangAttrEmitter.cpp
clang/utils/TableGen/TableGen.cpp clang/utils/TableGen/TableGenBackends.h
--diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp
b/clang/utils/TableGen/ClangAttrEmitter.cpp
index b230bfa7e..74de72ef4 100644
--- a/clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -5602,7 +5602,7 @@ void EmitClangUndocumentedAttrlist(const
llvm::RecordKeeper &Records,
// attribute in the test file.
OS << "Undocumented attributes:\n";
- for (const auto* A : UndocumentedAttrs) {
+ for (const auto *A : UndocumentedAttrs) {
OS << A->getName() << "\n";
}
@@ -5611,7 +5611,6 @@ void EmitClangUndocumentedAttrlist(const
llvm::RecordKeeper &Records,
OS << "Total: " << UndocumentedAttrs.size() << "\n";
}
-
void EmitClangAttrDocs(const RecordKeeper &Records, raw_ostream &OS) {
// Get the documentation introduction paragraph.
const Record *Documentation = Records.getDef("GlobalDocumentation");
``````````
</details>
https://github.com/llvm/llvm-project/pull/203296
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits