23 lines
358 B
C++
23 lines
358 B
C++
#include <clang/Tooling/CompilationDatabase.h>
|
|
|
|
namespace clice {
|
|
|
|
class CompilationDatabase {
|
|
|
|
public:
|
|
void load(clang::StringRef path);
|
|
|
|
std::vector<const char*> lookup(clang::StringRef path);
|
|
|
|
private:
|
|
std::unique_ptr<clang::tooling::CompilationDatabase> CDB;
|
|
};
|
|
|
|
namespace global {
|
|
|
|
extern CompilationDatabase CDB;
|
|
|
|
};
|
|
|
|
} // namespace clice
|