[llvm-branch-commits] [clang] [clang][OpenMP] Switch OpenMP version from unsigned to llvm::omp::Version (PR #219821)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Aug 30 09:12:58 PDT 2026
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/OpenMPClause.h clang/include/clang/ASTMatchers/ASTMatchers.h clang/include/clang/Basic/LangOptions.h clang/lib/AST/DeclPrinter.cpp clang/lib/AST/StmtPrinter.cpp clang/lib/Parse/ParseOpenMP.cpp clang/lib/Sema/SemaOpenMP.cpp clang/lib/Sema/TreeTransform.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/include/clang/Basic/LangOptions.h b/clang/include/clang/Basic/LangOptions.h
index 9fa698dc2..e70b39934 100644
--- a/clang/include/clang/Basic/LangOptions.h
+++ b/clang/include/clang/Basic/LangOptions.h
@@ -824,9 +824,7 @@ public:
}
/// Return the OpenMP version.
- llvm::omp::Version getOpenMP() const {
- return llvm::omp::Version(OpenMP);
- }
+ llvm::omp::Version getOpenMP() const { return llvm::omp::Version(OpenMP); }
/// Returns the most applicable C standard-compliant language version code.
/// If none could be determined, returns \ref std::nullopt.
``````````
</details>
https://github.com/llvm/llvm-project/pull/219821
More information about the llvm-branch-commits
mailing list