This patch allows checking whether an enum declaration is scoped
through libclang and clang.cindex (Python).
Details
Details
- Reviewers
jbcoe rsmith arphaman - Commits
- rG571b8cfac94b: [libclang] Support for querying whether an enum is scoped
rGff7f42e61a13: [libclang] Support for querying whether an enum is scoped
rC307771: [libclang] Support for querying whether an enum is scoped
rC307769: [libclang] Support for querying whether an enum is scoped
rL307771: [libclang] Support for querying whether an enum is scoped
rL307769: [libclang] Support for querying whether an enum is scoped
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
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. |