Timm =?utf-8?q?Bäder?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


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/lib/AST/ByteCode/Descriptor.h clang/lib/AST/ByteCode/InitMap.cpp 
clang/lib/AST/ByteCode/InitMap.h clang/lib/AST/ByteCode/Interp.cpp 
clang/lib/AST/ByteCode/Interp.h clang/lib/AST/ByteCode/Pointer.cpp 
clang/lib/AST/ByteCode/Pointer.h clang/test/AST/ByteCode/builtin-functions.cpp 
clang/test/AST/ByteCode/cxx23.cpp clang/test/AST/ByteCode/lifetimes26.cpp 
clang/utils/TableGen/ClangOpcodesEmitter.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/ClangOpcodesEmitter.cpp 
b/clang/utils/TableGen/ClangOpcodesEmitter.cpp
index 6d7f221bb..71efa6a0d 100644
--- a/clang/utils/TableGen/ClangOpcodesEmitter.cpp
+++ b/clang/utils/TableGen/ClangOpcodesEmitter.cpp
@@ -141,18 +141,18 @@ void ClangOpcodesEmitter::EmitInterp(raw_ostream &OS, 
StringRef N,
                 PrintTypes(OS, TS);
                 OS << "(S, PC);";
               } else {
-              OS << "  if (!" << N;
-              PrintTypes(OS, TS);
-              OS << "(S";
-              if (ChangesPC)
-                OS << ", PC";
-              else
-                OS << ", OpPC";
-              for (size_t I = 0, N = Args.size(); I < N; ++I)
-                OS << ", V" << I;
-              OS << "))\n";
-              OS << "    return false;\n";
-              OS << "  continue;\n";
+                OS << "  if (!" << N;
+                PrintTypes(OS, TS);
+                OS << "(S";
+                if (ChangesPC)
+                  OS << ", PC";
+                else
+                  OS << ", OpPC";
+                for (size_t I = 0, N = Args.size(); I < N; ++I)
+                  OS << ", V" << I;
+                OS << "))\n";
+                OS << "    return false;\n";
+                OS << "  continue;\n";
               }
 
               OS << "}\n";

``````````

</details>


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

Reply via email to