src: harmonized indexer command names

* some parts of the indexer were called "manual" while others used the
  name "empty". renamed everything that was called "manual" to "empty"
  to conform to names in GUI
This commit is contained in:
mlangkabel
2017-12-28 12:35:04 +01:00
parent 4686ce7e91
commit cb3cf7d651
19 changed files with 67 additions and 67 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ std::string indexerCommandTypeToString(IndexerCommandType type)
{
switch(type)
{
case INDEXER_COMMAND_CXX_MANUAL:
return "indexer command cxx manual";
case INDEXER_COMMAND_CXX_EMPTY:
return "indexer command cxx empty";
case INDEXER_COMMAND_CXX_CDB:
return "indexer command cxx cdb";
case INDEXER_COMMAND_JAVA:
+1 -1
View File
@@ -6,7 +6,7 @@
enum IndexerCommandType
{
INDEXER_COMMAND_UNKNOWN,
INDEXER_COMMAND_CXX_MANUAL,
INDEXER_COMMAND_CXX_EMPTY,
INDEXER_COMMAND_CXX_CDB,
INDEXER_COMMAND_JAVA,
};
@@ -1,7 +1,7 @@
#include "SharedIndexerCommand.h"
#include "data/indexer/IndexerCommandCxxCdb.h"
#include "data/indexer/IndexerCommandCxxManual.h"
#include "data/indexer/IndexerCommandCxxEmpty.h"
#include "data/indexer/IndexerCommandJava.h"
#include "utility/logging/logging.h"
@@ -22,11 +22,11 @@ void SharedIndexerCommand::fromLocal(IndexerCommand* indexerCommand)
setSystemHeaderSearchPaths(cmd->getSystemHeaderSearchPaths());
setFrameworkSearchhPaths(cmd->getFrameworkSearchPaths());
}
else if (dynamic_cast<IndexerCommandCxxManual*>(indexerCommand) != NULL)
else if (dynamic_cast<IndexerCommandCxxEmpty*>(indexerCommand) != NULL)
{
IndexerCommandCxxManual* cmd = dynamic_cast<IndexerCommandCxxManual*>(indexerCommand);
IndexerCommandCxxEmpty* cmd = dynamic_cast<IndexerCommandCxxEmpty*>(indexerCommand);
setType(CXX_MANUAL);
setType(CXX_EMPTY);
setLanguageStandard(cmd->getLanguageStandard());
setCompilerFlags(cmd->getCompilerFlags());
setSystemHeaderSearchPaths(cmd->getSystemHeaderSearchPaths());
@@ -63,9 +63,9 @@ std::shared_ptr<IndexerCommand> SharedIndexerCommand::fromShared(const SharedInd
);
return command;
}
else if (indexerCommand.getType() == CXX_MANUAL)
else if (indexerCommand.getType() == CXX_EMPTY)
{
std::shared_ptr<IndexerCommand> command = std::make_shared<IndexerCommandCxxManual>(
std::shared_ptr<IndexerCommand> command = std::make_shared<IndexerCommandCxxEmpty>(
indexerCommand.getSourceFilePath(),
indexerCommand.getIndexedPaths(),
indexerCommand.getExcludedPaths(),
@@ -49,7 +49,7 @@ private:
{
UNKNOWN = 0,
CXX_CDB,
CXX_MANUAL,
CXX_EMPTY,
JAVA
};