logic: indexer count and fixes
* added option to define the amount of parallel indexers in the appsettings * fixed unparsed files query in ASTVisitor * fixed: to update a node's type in the storage the node does not have to be defined anymore
This commit is contained in:
@@ -53,6 +53,14 @@ std::vector<FilePath> FileRegister::getUnparsedSourceFilePaths() const
|
||||
return files;
|
||||
}
|
||||
|
||||
bool FileRegister::hasIncludeFile(const FilePath& filePath) const
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_includeFileMutex);
|
||||
|
||||
std::map<FilePath, ParseState>::const_iterator it = m_includeFilePaths.find(filePath);
|
||||
return (it != m_includeFilePaths.end());
|
||||
}
|
||||
|
||||
bool FileRegister::fileIsParsed(const FilePath& filePath) const
|
||||
{
|
||||
return sourceFileIsParsed(filePath) || includeFileIsParsed(filePath);
|
||||
|
||||
@@ -23,6 +23,8 @@ public:
|
||||
|
||||
std::vector<FilePath> getUnparsedSourceFilePaths() const;
|
||||
|
||||
bool hasIncludeFile(const FilePath& filePath) const;
|
||||
|
||||
bool fileIsParsed(const FilePath& filePath) const;
|
||||
bool includeFileIsParsed(const FilePath& filePath) const;
|
||||
bool sourceFileIsParsed(const FilePath& filePath) const;
|
||||
|
||||
Reference in New Issue
Block a user