logic: improved c++ indexer coverage

* revised check for visiting a referenced type or decl
* calling client->onFileParsed everytime a file gets processed by the Preprocessor so we can create valid locations in that file
* created test for detecting a usage of a member inside a CallExpression context
* added method to consume a context based reference kind in the AstVisitor
This commit is contained in:
malte_langkabel
2016-11-10 16:39:52 +01:00
parent cf8e8c7655
commit 9aed97eee2
7 changed files with 108 additions and 33 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ public:
virtual void onFileParsed(const FileInfo& fileInfo)
{
files.push_back(fileInfo.path.str());
files.insert(fileInfo.path.str());
}
virtual void onCommentParsed(const ParseLocation& location)
@@ -148,7 +148,7 @@ public:
std::vector<std::string> templateParameterTypes;
std::vector<std::string> typeParameters;
std::vector<std::string> localSymbols;
std::vector<std::string> files;
std::set<std::string> files;
std::vector<std::string> comments;
std::vector<std::string> inheritances;