[llvm-branch-commits] [clang] [clang][OpenMP] Pass OpenMP version to getOpenMPDirectiveName (PR #139115)
Alexey Bataev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 8 10:50:59 PDT 2025
================
@@ -94,6 +94,10 @@ struct PrintingPolicy {
/// The number of spaces to use to indent each line.
unsigned Indentation : 8;
+ /// Version of the effective OpenMP spec (used to select directive name
+ /// spelling).
+ unsigned OpenMP : 8;
+
----------------
alexey-bataev wrote:
Maybe instead store openmp version in OMPClausePrinter?
https://github.com/llvm/llvm-project/pull/139115
More information about the llvm-branch-commits
mailing list