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
@@ -29,3 +29,12 @@ std::vector<FilePath> IndexerCommandJava::getClassPath() const
{
return m_classPath;
}
bool IndexerCommandJava::preprocessorOnly() const
{
return false;
}
void IndexerCommandJava::setPreprocessorOnly(bool preprocessorOnly)
{
}
@@ -6,7 +6,8 @@
#include "data/indexer/IndexerCommand.h"
#include "utility/file/FilePath.h"
class IndexerCommandJava: public IndexerCommand
class IndexerCommandJava
: public IndexerCommand
{
public:
static std::string getIndexerKindString();
@@ -18,10 +19,13 @@ public:
const std::vector<FilePath>& classPath);
virtual ~IndexerCommandJava();
virtual std::string getKindString() const;
std::string getKindString() const override;
std::vector<FilePath> getClassPath() const;
bool preprocessorOnly() const override;
void setPreprocessorOnly(bool preprocessorOnly) override;
private:
std::vector<FilePath> m_classPath;
};