This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Parsing + sema for defaultmap clause.
ClosedPublic

Authored by arpith-jacob on Jan 24 2016, 6:28 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

arpith-jacob retitled this revision from to [OpenMP] Parsing + sema for defaultmap clause..
arpith-jacob updated this object.
ABataev added inline comments.Jan 24 2016, 10:00 PM
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.

Addressed fixes by Alexey Bataev. Thanks.

arpith-jacob marked 5 inline comments as done.Jan 25 2016, 12:35 PM

Patch fixed.

ABataev accepted this revision.Jan 25 2016, 8:16 PM
ABataev edited edge metadata.

LG

This revision is now accepted and ready to land.Jan 25 2016, 8:16 PM
This revision was automatically updated to reflect the committed changes.