[clang] [llvm] [Frontend] Add leaf constructs and association to OpenMP/ACC directives (PR #83625)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 3 16:24:48 PST 2024


================
@@ -231,6 +244,8 @@ static void EmitDirectivesDecl(RecordKeeper &Records, raw_ostream &OS) {
   OS << "bool isAllowedClauseForDirective(Directive D, "
      << "Clause C, unsigned Version);\n";
   OS << "\n";
+  OS << "const llvm::SmallVector<Directive> &getLeafConstructs(Directive D);\n";
----------------
alexey-bataev wrote:

No, it won't. ArrayRef is not an owning container, so it does not create a copy.

https://github.com/llvm/llvm-project/pull/83625


More information about the cfe-commits mailing list