ΒΆCXCompilationDatabase
clang_CompilationDatabase_fromDirectory(
    const char* BuildDir,
    CXCompilationDatabase_Error* ErrorCode)

Description

Creates a compilation database from the database found in directory buildDir. For example, CMake can output a compile_commands.json which can be used to build the database. It must be freed by \c clang_CompilationDatabase_dispose.

Declared at: clang/include/clang-c/CXCompilationDatabase.h:79

Parameters

const char* BuildDir
CXCompilationDatabase_Error* ErrorCode