Clang fails to diagnose cases such as
#pragma omp target
#pragma omp teams
This fix looks good but you have to add a regression test for it.
The changes look fine to me. Thanks.
Let's wait for Alexey to see if he has any concerns related to this patch.
LG with a small nit
I'd prefer something like this:
auto *OED = dyn_cast<OMPExecutableDirective>(S);
OMPTeamsFound = OED && isOpenMPTeamsDirective(OED->getDirectiveKind());
Address a comment.
At revision: 273908