[clang] [clang] Fix size and alignment of packed sub-byte integer vectors (PR #161796)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 6 09:33:25 PDT 2025
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 cpp,h -- clang/include/clang/AST/ASTContext.h clang/include/clang/AST/TypeBase.h clang/lib/AST/ASTContext.cpp clang/lib/AST/ExprConstant.cpp clang/test/CodeGenCXX/ext-int.cpp clang/test/CodeGenCXX/matrix-vector-bit-int.cpp clang/test/SemaCXX/constexpr-builtin-bit-cast.cpp clang/test/SemaCXX/ext-int.cpp
``````````
: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/include/clang/AST/TypeBase.h b/clang/include/clang/AST/TypeBase.h
index 3d904c71b..d3a95bd88 100644
--- a/clang/include/clang/AST/TypeBase.h
+++ b/clang/include/clang/AST/TypeBase.h
@@ -2637,7 +2637,7 @@ public:
bool isVectorType() const; // GCC vector type.
bool isExtVectorType() const; // Extended vector type.
bool isExtVectorBoolType() const; // Extended vector type with bool element.
- bool isBitIntVectorType() const; // Vector type with _BitInt element.
+ bool isBitIntVectorType() const; // Vector type with _BitInt element.
// Extended vector type with bool element that is packed. HLSL doesn't pack
// its bool vectors.
bool isPackedVectorBoolType(const ASTContext &ctx) const;
``````````
</details>
https://github.com/llvm/llvm-project/pull/161796
More information about the cfe-commits
mailing list