[clang] [clang][OpenMP] Keep 'requires' directives read from an AST file (PR #220058)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 23 12:50:45 PDT 2026
================
@@ -5279,6 +5281,21 @@ void ASTWriter::WriteDeclsWithEffectsToVerify(Sema &SemaRef) {
Stream.EmitRecord(DECLS_WITH_EFFECTS_TO_VERIFY, Record);
}
+/// Write the OpenMP 'requires' directives seen in this translation unit.
+void ASTWriter::WriteOpenMPRequiresDecls(Sema &SemaRef) {
+ if (!SemaRef.getLangOpts().OpenMP)
+ return;
----------------
alexey-bataev wrote:
```suggestion
```
You can safely drop this
https://github.com/llvm/llvm-project/pull/220058
More information about the cfe-commits
mailing list