Commit d991e96
committed
[OpenMP] Remove "alternativeName" from Clause and Directive classes
The "alternativeName" was introduced ~5 years ago in D82405, and at
the moment it has only one use, the one that the original change
introduced.
OpenMP 6.0 spec has introduced different spellings of some directives,
but the "alternativeName" is not an adequate mechanism to implement it.
For those reasons remove the "alternativeName" member from both
Clause and Directive in DirectiveBase.td.
Since the alternativeName text appeared in a number of clang OpenMP
tests, implement `getOpenMPClauseNameForDiag` in SemaOpenMP.cpp to
preserve the text of the diagnostics.1 parent 526ae7f commit d991e96
File tree
5 files changed
+145
-151
lines changed- clang/lib/Sema
- llvm
- include/llvm
- Frontend
- Directive
- OpenMP
- TableGen
- utils/TableGen/Basic
5 files changed
+145
-151
lines changed
0 commit comments