[PATCH] D101049: [AST] Add DeclarationNameInfo to node introspection
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 23 08:15:23 PDT 2021
njames93 added inline comments.
================
Comment at: clang/include/clang/Tooling/NodeIntrospection.h:29
class CXXBaseSpecifier;
+class DeclarationNameInfo;
----------------
Please fix this lint warning.
================
Comment at: clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py:394-398
cladeName not in [
'NestedNameSpecifierLoc',
+ 'DeclarationNameInfo',
'TemplateArgumentLoc',
'TypeLoc'])
----------------
Kind of unrelated, but can these not be replaced with `cladeName not in RefClades`?
================
Comment at: clang/unittests/Introspection/IntrospectionTest.cpp:1431-1433
+ if (Result.LocationAccessors.empty() && Result.RangeAccessors.empty()) {
+ return;
+ }
----------------
Can this be replace with a
```lang=c++
if (!NodeIntrospection::hasIntrospectionSupport())
return;
```
Check at the start of the test?
Same goes for the rest of the tests added here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101049/new/
https://reviews.llvm.org/D101049
More information about the cfe-commits
mailing list