ioeric added a comment.

Would it be possible to add some integration tests for file index plus preamble?



================
Comment at: clangd/index/FileIndex.cpp:37
+  std::vector<Decl *> TopLevelDecls(
+      AST.getTranslationUnitDecl()->decls().begin(),
+      AST.getTranslationUnitDecl()->decls().end());
----------------
Would this give us decls in namespaces? It seems that 
`AST.getTranslationUnitDecl()->decls()` are only decls that are immediately 
inside the TU context. 


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D47272



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to