This is an archive of the discontinued LLVM Phabricator instance.

[libclang] Support for querying whether an enum is scoped
ClosedPublic

Authored by jklaehn on Jul 9 2017, 2:56 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

jklaehn created this revision.Jul 9 2017, 2:56 PM

Thanks for the patch.
I have just one minor comment:

tools/libclang/CIndex.cpp
7815 ↗(On Diff #105794)

dyn_cast_or_null already checks if D is null, so the ternary operator is redundant. You can also use const auto * once you use just the dyn_cast_or_null.

jklaehn updated this revision to Diff 106066.Jul 11 2017, 10:41 AM
jklaehn added a project: Restricted Project.
arphaman accepted this revision.Jul 11 2017, 10:47 AM

LGTM. Do you have commit access or would you like me to commit it on your behalf?

This revision is now accepted and ready to land.Jul 11 2017, 10:47 AM

I do not have commit access, it would be great if you could commit it. Thanks!

Sure, I'll commit it today.

This revision was automatically updated to reflect the committed changes.

Committed r307771 with correct attribution.