* 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
41 lines
1.0 KiB
C++
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
|