This patch adds parsing + sema for the defaultmap clause associated with the target directive (among others).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
| include/clang/AST/OpenMPClause.h | ||
|---|---|---|
| 3408–3409 ↗ | (On Diff #45839) | Why these are not initialized in initializer list, along with Kind, KindLoc etc.? |
| 3417 ↗ | (On Diff #45839) | Also, initialize this one in initializer list |
| lib/AST/StmtPrinter.cpp | ||
| 925 ↗ | (On Diff #45839) | I don't think that this check is required. According to defaultmap() syntax Modifier must be set, so I don't think it is allowed to have 'unknown' value here. I mean, output modifier and ':' unconditionally. |
| lib/Sema/SemaOpenMP.cpp | ||
| 8807 ↗ | (On Diff #45839) | I think for modifier Diag shall accept MLoc, not KindLoc |
| lib/Sema/TreeTransform.h | ||
| 7954–7957 ↗ | (On Diff #45839) | I don't think you need to rebuild anything here, you can just return C. This new clause does not contain any possibly dependent members. |