clang API Documentation

Classes | Namespaces | Functions | Variables
CompilationDatabase.cpp File Reference
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Driver/Action.h"
#include "clang/Driver/Compilation.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/Job.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Tooling/CompilationDatabasePluginRegistry.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Option/Arg.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/Path.h"
#include <sstream>
#include <system_error>
Include dependency graph for CompilationDatabase.cpp:

Go to the source code of this file.

Classes

struct  clang::tooling::CompileJobAnalyzer
class  clang::tooling::UnusedInputDiagConsumer
struct  clang::tooling::MatchesAny

Namespaces

namespace  clang
namespace  clang::tooling

Functions

static std::unique_ptr
< CompilationDatabase > 
clang::tooling::findCompilationDatabaseFromDirectory (StringRef Directory, std::string &ErrorMessage)
static bool clang::tooling::stripPositionalArgs (std::vector< const char * > Args, std::vector< std::string > &Result)
 Strips any positional args and possible argv[0] from a command-line provided by the user to construct a FixedCompilationDatabase.

Variables

volatile int clang::tooling::JSONAnchorSource = 0
static int clang::tooling::JSONAnchorDest = JSONAnchorSource