clang API Documentation
Interface for compilation database plugins. More...
#include <CompilationDatabase.h>
Public Member Functions | |
virtual | ~CompilationDatabasePlugin () |
virtual std::unique_ptr < CompilationDatabase > | loadFromDirectory (StringRef Directory, std::string &ErrorMessage)=0 |
Loads a compilation database from a build directory. |
Interface for compilation database plugins.
A compilation database plugin allows the user to register custom compilation databases that are picked up as compilation database if the corresponding library is linked in. To register a plugin, declare a static variable like:
static CompilationDatabasePluginRegistry::Add<MyDatabasePlugin> X("my-compilation-database", "Reads my own compilation database");
Definition at line 138 of file CompilationDatabase.h.
Definition at line 110 of file CompilationDatabase.cpp.
virtual std::unique_ptr<CompilationDatabase> clang::tooling::CompilationDatabasePlugin::loadFromDirectory | ( | StringRef | Directory, |
std::string & | ErrorMessage | ||
) | [pure virtual] |
Loads a compilation database from a build directory.