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 c,h,cpp -- 
clang/test/Index/annotate-comments-availability-anyappleos.cpp 
clang/include/clang/Sema/Sema.h clang/lib/AST/AttrImpl.cpp 
clang/lib/AST/DeclBase.cpp clang/lib/Index/CommentToXML.cpp 
clang/lib/Sema/SemaAPINotes.cpp clang/lib/Sema/SemaAvailability.cpp 
clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaDeclAttr.cpp 
clang/lib/Sema/SemaHLSL.cpp clang/test/Sema/attr-availability-anyappleos-ast.c 
clang/tools/libclang/CIndex.cpp clang/utils/TableGen/ClangAttrEmitter.cpp 
--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 f492e8df4..21c0a9d58 100644
--- a/clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -1486,7 +1486,8 @@ namespace {
       if (!AttrType.empty()) {
         OS << "\n";
         OS << "  " << AttrType << " *get" << getUpperName() << "As() const 
{\n";
-        OS << "    return llvm::cast_or_null<" << AttrType << ">(" << 
getLowerName() << ");\n";
+        OS << "    return llvm::cast_or_null<" << AttrType << ">("
+           << getLowerName() << ");\n";
         OS << "  }\n";
         OS << "  void set" << getUpperName() << "As(" << AttrType << " *V) 
{\n";
         OS << "    " << getLowerName() << " = V;\n";

``````````

</details>


https://github.com/llvm/llvm-project/pull/190817
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to