[PATCH] D58340: [clang][Index] Visit UsingDecls and generate USRs for them

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 26 02:11:18 PST 2019


ilya-biryukov added inline comments.


================
Comment at: include/clang/Index/IndexSymbol.h:75
   UsingValue,
+  UsingDeclaration,
 };
----------------
We don't seem to use the subkind anywhere. Let's remove it.


================
Comment at: unittests/Index/IndexTests.cpp:253
+  tooling::runToolOnCode(new IndexAction(Index, Opts), Code);
+  EXPECT_THAT(Index->Symbols, Contains(QName("std::foo")));
+}
----------------
Could we also test the kind is correct here?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58340/new/

https://reviews.llvm.org/D58340





More information about the cfe-commits mailing list