#include "data/indexer/IndexerCommandCxx.h" IndexerCommandCxx::IndexerCommandCxx( const FilePath& sourceFilePath, const std::set& indexedPaths, const std::set& excludedPaths, const std::vector& systemHeaderSearchPaths, const std::vector& frameworkSearchPaths, const std::vector& compilerFlags, const bool shouldApplyAnonymousTypedefTransformation ) : IndexerCommand(sourceFilePath, indexedPaths, excludedPaths) , m_systemHeaderSearchPaths(systemHeaderSearchPaths) , m_frameworkSearchPaths(frameworkSearchPaths) , m_compilerFlags(compilerFlags) , m_shouldApplyAnonymousTypedefTransformation(shouldApplyAnonymousTypedefTransformation) { } IndexerCommandCxx::~IndexerCommandCxx() { } size_t IndexerCommandCxx::getByteSize() const { size_t size = IndexerCommand::getByteSize(); for (auto i : m_systemHeaderSearchPaths) { size += sizeof(std::string) + i.str().size(); } for (auto i : m_frameworkSearchPaths) { size += sizeof(std::string) + i.str().size(); } for (auto i : m_compilerFlags) { size += sizeof(std::string) + i.size(); } return size; } std::vector IndexerCommandCxx::getSystemHeaderSearchPaths() const { return m_systemHeaderSearchPaths; } std::vector IndexerCommandCxx::getFrameworkSearchPaths() const { return m_frameworkSearchPaths; } std::vector IndexerCommandCxx::getCompilerFlags() const { return m_compilerFlags; } bool IndexerCommandCxx::shouldApplyAnonymousTypedefTransformation() const { return m_shouldApplyAnonymousTypedefTransformation; }