[clang] [Clang] Add __builtin_vectorelements to get number of elements in vector (PR #69010)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 13 09:40:38 PDT 2023


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 05bde3cc23b05a8ee4a77d00e6c4bea2ac44647b 6e8f1f0ea3777fb143ab7bc93be46a4e4c331983 -- clang/test/CodeGen/builtin_vectorelements.c clang/test/Sema/builtin_vectorelements.c clang/test/SemaCXX/builtin_vectorelements.cpp clang/include/clang/AST/Type.h clang/lib/AST/ExprConstant.cpp clang/lib/AST/ItaniumMangle.cpp clang/lib/AST/Type.cpp clang/lib/CodeGen/CGExprScalar.cpp clang/lib/Parse/ParseExpr.cpp clang/lib/Sema/SemaExpr.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index f6e425783176..8bafffee2c59 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -5459,9 +5459,8 @@ public:
 /// TemplateArguments, followed by a QualType representing the
 /// non-canonical aliased type when the template is a type alias
 /// template.
-class alignas(8) TemplateSpecializationType
-    : public Type,
-      public llvm::FoldingSetNode {
+class alignas(8) TemplateSpecializationType : public Type,
+                                              public llvm::FoldingSetNode {
   friend class ASTContext; // ASTContext creates these
 
   /// The name of the template being specialized.  This is

``````````

</details>


https://github.com/llvm/llvm-project/pull/69010


More information about the cfe-commits mailing list