The requires directive containing target related clauses must appear before any target region in the compilation unit.
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 30747 Build 30746: arc lint + arc unit
Event Timeline
include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
9136 | Enclose %0 in single quotes for better reading | |
lib/Sema/SemaOpenMP.cpp | ||
2440 | Better to check for TargetLocations.empty() before the loop | |
4208 | Better to check for the dependent context at first, only after that check for the clause | |
test/OpenMP/requires_target_messages.cpp | ||
12 | Add the checks for all the clauses that may cause this error |
include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
9136 | The messages must start from lower letter. Other messages must be fixed too in separate patches. |
Enclose %0 in single quotes for better reading