Commit 931c0cd
committed
[OpenMP][NFC] Move and simplify directive -> allowed clause mapping
Move the listing of allowed clauses per OpenMP directive to the new
macro file in `llvm/Frontend/OpenMP`. Also, use a single generic macro
that specifies the directive and one allowed clause explicitly instead
of a dedicated macro per directive.
We save 800 loc and boilerplate for all new directives/clauses with no
functional change. We also need to include the macro file only once and
not once per directive.
Depends on D77112.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D771131 parent 8ea07f6 commit 931c0cd
File tree
18 files changed
+762
-1532
lines changed- clang
- include/clang
- ASTMatchers
- Basic
- lib
- ASTMatchers/Dynamic
- Basic
- Tooling
- Transformer
- unittests
- ASTMatchers
- Dynamic
- AST
- Analysis
- Rename
- Sema
- StaticAnalyzer
- Tooling
- llvm
- include/llvm/Frontend/OpenMP
- lib/Frontend/OpenMP
18 files changed
+762
-1532
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7119 | 7119 | | |
7120 | 7120 | | |
7121 | 7121 | | |
7122 | | - | |
| 7122 | + | |
7123 | 7123 | | |
7124 | 7124 | | |
7125 | 7125 | | |
| |||
0 commit comments