Files
Sourcetrail/src/lib_cxx/data/indexer/IndexerCommandCxx.h
T
malte_langkabel 054b8fab17 logic: reduce access to filesystem while indexing
* use canonical filepath cache in cxx indexer
* made constructors of FilePath explicit
* use FilePath at more places instead of string
* forward declares FilePath wherever possible
2017-05-04 10:55:16 +02:00

41 lines
1.0 KiB
C++

#ifndef INDEXER_COMMAND_CXX_H
#define INDEXER_COMMAND_CXX_H
#include <vector>
#include <string>
#include "data/indexer/IndexerCommand.h"
class FilePath;
class IndexerCommandCxx
: public IndexerCommand
{
public:
IndexerCommandCxx(
const FilePath& sourceFilePath,
const std::set<FilePath>& indexedPaths,
const std::set<FilePath>& excludedPaths,
const std::vector<FilePath>& systemHeaderSearchPaths,
const std::vector<FilePath>& frameworkSearchPaths,
const std::vector<std::string>& compilerFlags);
virtual ~IndexerCommandCxx();
std::vector<FilePath> getSystemHeaderSearchPaths() const;
std::vector<FilePath> getFrameworkSearchPaths() const;
std::vector<std::string> getCompilerFlags() const;
bool preprocessorOnly() const override;
void setPreprocessorOnly(bool preprocessorOnly) override;
private:
std::vector<FilePath> m_systemHeaderSearchPaths;
std::vector<FilePath> m_frameworkSearchPaths;
std::vector<std::string> m_compilerFlags;
bool m_preprocessorOnly;
};
#endif // INDEXER_COMMAND_CXXL_H