A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://clang.llvm.org/doxygen/classclang_1_1tooling_1_1CompilationDatabase.html below:

clang: clang::tooling::CompilationDatabase Class Reference

Interface for compilation databases. More...

#include "clang/Tooling/CompilationDatabase.h"

Interface for compilation databases.

A compilation database allows the user to retrieve compile command lines for the files in a project.

Many implementations are enumerable, allowing all command lines to be retrieved. These can be used to run clang tools over a subset of the files in a project.

Definition at line 87 of file CompilationDatabase.h.

◆ ~CompilationDatabase() CompilationDatabase::~CompilationDatabase ( ) virtualdefault ◆ autoDetectFromDirectory() std::unique_ptr< CompilationDatabase > CompilationDatabase::autoDetectFromDirectory ( StringRef  SourceDir, std::string &  ErrorMessage  ) static ◆ autoDetectFromSource() std::unique_ptr< CompilationDatabase > CompilationDatabase::autoDetectFromSource ( StringRef  SourceFile, std::string &  ErrorMessage  ) static ◆ getAllCompileCommands() std::vector< CompileCommand > CompilationDatabase::getAllCompileCommands ( ) const virtual ◆ getAllFiles() virtual std::vector< std::string > clang::tooling::CompilationDatabase::getAllFiles ( ) const inlinevirtual ◆ getCompileCommands() virtual std::vector< CompileCommand > clang::tooling::CompilationDatabase::getCompileCommands ( StringRef  FilePath ) const pure virtual ◆ loadFromDirectory() std::unique_ptr< CompilationDatabase > CompilationDatabase::loadFromDirectory ( StringRef  BuildDirectory, std::string &  ErrorMessage  ) static

Loads a compilation database from a build directory.

Looks at the specified 'BuildDirectory' and creates a compilation database that allows to query compile commands for source files in the corresponding source tree.

Returns NULL and sets ErrorMessage if we were not able to build up a compilation database for the build directory.

FIXME: Currently only supports JSON compilation databases, which are named 'compile_commands.json' in the given directory. Extend this for other build types (like ninja build files).

Definition at line 64 of file CompilationDatabase.cpp.

Referenced by findCompilationDatabaseFromDirectory().

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4