#ifndef CXX_COMPILATION_DATABASE_SINGLE_H #define CXX_COMPILATION_DATABASE_SINGLE_H #include "clang/Tooling/CompilationDatabase.h" class CxxCompilationDatabaseSingle : public clang::tooling::CompilationDatabase { public: CxxCompilationDatabaseSingle(const clang::tooling::CompileCommand& command); virtual std::vector getCompileCommands(llvm::StringRef FilePath) const override; virtual std::vector getAllFiles() const override; virtual std::vector getAllCompileCommands() const override; private: clang::tooling::CompileCommand m_command; }; #endif // CXX_COMPILATION_DATABASE_SINGLE_H