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/CodeGen/SystemZ/pragma-map-conflict.c
clang/test/CodeGen/SystemZ/pragma-map-escape.c
clang/test/CodeGen/SystemZ/pragma-map-noproto.c
clang/test/CodeGen/SystemZ/pragma-map-proto.c
clang/test/CodeGen/SystemZ/pragma-map.c
clang/test/CodeGen/SystemZ/pragma-map.cpp clang/test/PCH/pragma-map.c
clang/test/PCH/pragma-map.h clang/test/Parser/pragma-map.c
clang/test/Parser/pragma-map.cpp clang/test/Sema/pragma-map-conflict.c
clang/test/Sema/pragma-map-conflict.cpp clang/test/Sema/pragma-map.c
clang/test/Sema/pragma-map.cpp clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/ExternalSemaSource.h
clang/include/clang/Sema/MultiplexExternalSemaSource.h
clang/include/clang/Sema/Sema.h clang/include/clang/Serialization/ASTBitCodes.h
clang/include/clang/Serialization/ASTReader.h clang/lib/Parse/ParsePragma.cpp
clang/lib/Parse/ParseStmt.cpp clang/lib/Parse/Parser.cpp
clang/lib/Sema/MultiplexExternalSemaSource.cpp clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaAttr.cpp clang/lib/Sema/SemaDecl.cpp
clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTWriter.cpp
lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.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/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp
index 785be78f0..20ed107df 100644
--- a/clang/lib/Sema/SemaAttr.cpp
+++ b/clang/lib/Sema/SemaAttr.cpp
@@ -1467,7 +1467,8 @@ void Sema::ActOnPragmaMap(IdentifierInfo *IdentId,
SourceLocation NameLoc,
assert(!MappedName.empty());
// All identifiers must be in UTF-8. On z/OS the mapped name was parsed with
- // CA_ToLiteralEncodingForAsm, so it is in IBM-1047 and must be converted
back.
+ // CA_ToLiteralEncodingForAsm, so it is in IBM-1047 and must be converted
+ // back.
llvm::SmallString<16> MappedNameUTF;
if (llvm::TextEncodingConverter *Conv =
PP.getTextEncoding().getzOSFromAsmLiteralEncodingConverter()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/243723
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits