data: Option to run only C/C++ preprocessor when indexing (issue 297)

* Added as checkbox to indexing start dialog
* Only shown for C/C++ projects
* Files will be marked incomplete
This commit is contained in:
Eberhard Graether
2017-04-18 22:11:20 +02:00
parent 2b24b88745
commit 63087913bd
31 changed files with 373 additions and 231 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ std::shared_ptr<IntermediateStorage> Indexer<IndexerCommandType, ParserType>::in
parserClient->resetStorage();
if (parserClient->hasFatalErrors())
if (parserClient->hasFatalErrors() || indexerCommand->preprocessorOnly())
{
storage->setAllFilesIncomplete();
}
+3
View File
@@ -21,6 +21,9 @@ public:
bool cancelOnFatalErrors() const;
void setCancelOnFatalErrors(bool cancelOnFatalErrors);
virtual bool preprocessorOnly() const = 0;
virtual void setPreprocessorOnly(bool preprocessorOnly) = 0;
private:
FilePath m_sourceFilePath;
std::set<FilePath> m_indexedPaths;