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 --
clang/lib/Sema/SemaLookup.cpp
clang/utils/TableGen/ClangOpenCLBuiltinEmitter.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/ClangOpenCLBuiltinEmitter.cpp
b/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
index 17a470cac..6d0dec6b9 100644
--- a/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
+++ b/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
@@ -636,12 +636,10 @@ void BuiltinNameEmitter::EmitTypeTable() {
MaxVectorWidth = std::max(MaxVectorWidth, VectorWidth);
OS << " // " << T.second << "\n"
- << " {OCLT_" << T.first->getValueAsString("Name") << ", "
- << VectorWidth << ", "
- << T.first->getValueAsBit("IsPointer") << ", "
+ << " {OCLT_" << T.first->getValueAsString("Name") << ", " <<
VectorWidth
+ << ", " << T.first->getValueAsBit("IsPointer") << ", "
<< T.first->getValueAsBit("IsConst") << ", "
- << T.first->getValueAsBit("IsVolatile") << ", "
- << AccessQual << ", "
+ << T.first->getValueAsBit("IsVolatile") << ", " << AccessQual << ", "
<< "static_cast<unsigned>(" << T.first->getValueAsString("AddrSpace")
<< ")},\n";
}
@@ -701,7 +699,8 @@ void BuiltinNameEmitter::EmitSignatureTable() {
OS << "};\n\n"
<< "static_assert(" << PooledSignatures.size()
<< " <= (1u << OpenCLBuiltinSigTableIndexBits),\n"
- << " \"OpenCLBuiltinStruct::SigTableIndex is too
narrow\");\n\n";
+ << " \"OpenCLBuiltinStruct::SigTableIndex is too "
+ "narrow\");\n\n";
}
// Encode a range MinVersion..MaxVersion into a single bit mask that can be
@@ -754,12 +753,10 @@ void BuiltinNameEmitter::EmitBuiltinTable() {
MaxVersions = std::max(MaxVersions, Versions);
OS << " { " << SignatureOffsets[Overload.second] << ", " << NumTypes
- << ", "
- << (Overload.first->getValueAsBit("IsPure")) << ", "
+ << ", " << (Overload.first->getValueAsBit("IsPure")) << ", "
<< (Overload.first->getValueAsBit("IsConst")) << ", "
<< (Overload.first->getValueAsBit("IsConv")) << ", "
- << FunctionExtensionIndex[ExtName] << ", "
- << Versions << " },\n";
+ << FunctionExtensionIndex[ExtName] << ", " << Versions << " },\n";
Index++;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/202651
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits