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,inc -- 
llvm/include/llvm/Frontend/OpenMP/OMPVersion.h clang/lib/AST/StmtPrinter.cpp 
flang/lib/Frontend/CompilerInvocation.cpp 
llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h 
llvm/include/llvm/Frontend/OpenMP/OMP.h 
llvm/include/llvm/Frontend/OpenMP/OMPDescriptors.h 
llvm/lib/Frontend/OpenMP/DirectiveNameParser.cpp 
llvm/lib/Frontend/OpenMP/OMP.cpp llvm/lib/Frontend/OpenMP/OMPDescriptors.cpp 
llvm/lib/Frontend/OpenMP/OMPDescriptors.inc 
llvm/unittests/Frontend/OpenMPDecompositionTest.cpp 
llvm/unittests/Frontend/OpenMPDirectiveNameParserTest.cpp 
llvm/unittests/Frontend/OpenMPDirectiveNameTest.cpp 
llvm/unittests/Frontend/OpenMPParsingTest.cpp 
llvm/utils/TableGen/Basic/DirectiveEmitter.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/llvm/include/llvm/Frontend/OpenMP/OMPVersion.h 
b/llvm/include/llvm/Frontend/OpenMP/OMPVersion.h
index 508c14b3d..4aff694a7 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPVersion.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPVersion.h
@@ -40,7 +40,9 @@ inline constexpr bool operator>(Version A, Version B) { 
return !(A <= B); }
 inline constexpr bool operator>=(Version A, Version B) { return !(A < B); }
 
 inline constexpr bool operator==(Version A, int B) { return A == Version(B); }
-inline constexpr bool operator==(Version A, unsigned B) { return A == 
Version(B); }
+inline constexpr bool operator==(Version A, unsigned B) {
+  return A == Version(B);
+}
 inline constexpr bool operator!=(Version A, int B) { return A != Version(B); }
 inline constexpr bool operator<(Version A, int B) { return A < Version(B); }
 inline constexpr bool operator<=(Version A, int B) { return A <= Version(B); }
diff --git a/llvm/utils/TableGen/Basic/DirectiveEmitter.cpp 
b/llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
index bf895692d..f78841b62 100644
--- a/llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
+++ b/llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
@@ -915,7 +915,8 @@ static void generateGetDirectivePureSince(const 
DirectiveLanguage &DirLang,
   // OmpStructureChecker::CheckDirectiveInPureProcedure.
   constexpr int NeverPure = 0x7FFFFFFF;
   StringRef VersionType = getVersionType(DirLang);
-  OS << "constexpr " << VersionType << " getDirectivePureSince(Directive Dir) 
{\n";
+  OS << "constexpr " << VersionType
+     << " getDirectivePureSince(Directive Dir) {\n";
   OS << "  switch (Dir) {\n";
 
   StringRef Prefix = DirLang.getDirectivePrefix();

``````````

</details>


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

Reply via email to