clang API Documentation

Public Member Functions
clang::tooling::CompilationDatabasePlugin Class Reference

Interface for compilation database plugins. More...

#include <CompilationDatabase.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 110 of file CompilationDatabase.cpp.


Member Function Documentation

virtual std::unique_ptr<CompilationDatabase> clang::tooling::CompilationDatabasePlugin::loadFromDirectory ( StringRef  Directory,
std::string &  ErrorMessage 
) [pure virtual]

Loads a compilation database from a build directory.

See also:
CompilationDatabase::loadFromDirectory().

The documentation for this class was generated from the following files: