A RetroSearch Logo

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

Search Query:

Showing content from https://clang.llvm.org/doxygen/group__COMPILATIONDB.html below:

clang: CompilationDatabase functions

typedef void *  CXCompilationDatabase   A compilation database holds all information used to compile files in a project.
  typedef void *  CXCompileCommands   Contains the results of a search in the compilation database.
  typedef void *  CXCompileCommand   Represents the command line invocation to compile a specific file.
  ◆ CXCompilationDatabase

A compilation database holds all information used to compile files in a project.

For each file in the database, it can be queried for the working directory or the command line used for the compiler invocation.

Must be freed by clang_CompilationDatabase_dispose

Definition at line 37 of file CXCompilationDatabase.h.

◆ CXCompileCommand ◆ CXCompileCommands

Contains the results of a search in the compilation database.

When searching for the compile command for a file, the compilation db can return several commands, as the file may have been compiled with different options in different places of the project. This choice of compile commands is wrapped in this opaque data structure. It must be freed by clang_CompileCommands_dispose.

Definition at line 48 of file CXCompilationDatabase.h.

◆ CXCompilationDatabase_Error

Error codes for Compilation Database.

Enumerator CXCompilationDatabase_NoError  CXCompilationDatabase_CanNotLoadDatabase 

Definition at line 58 of file CXCompilationDatabase.h.

◆ clang_CompilationDatabase_dispose()

Free the given compilation database.

◆ clang_CompilationDatabase_fromDirectory()

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 clang_CompilationDatabase_dispose.

◆ clang_CompilationDatabase_getAllCompileCommands()

Get all the compile commands in the given compilation database.

◆ clang_CompilationDatabase_getCompileCommands()

Find the compile commands used for a file.

The compile commands must be freed by clang_CompileCommands_dispose.

◆ clang_CompileCommand_getArg()

Get the I'th argument value in the compiler invocations.

Invariant :

◆ clang_CompileCommand_getDirectory()

Get the working directory where the CompileCommand was executed from.

◆ clang_CompileCommand_getFilename()

Get the filename associated with the CompileCommand.

◆ clang_CompileCommand_getMappedSourceContent()

Get the I'th mapped source content for the compiler invocation.

◆ clang_CompileCommand_getMappedSourcePath()

Get the I'th mapped source path for the compiler invocation.

◆ clang_CompileCommand_getNumArgs()

Get the number of arguments in the compiler invocation.

◆ clang_CompileCommand_getNumMappedSources()

Get the number of source mappings for the compiler invocation.

◆ clang_CompileCommands_dispose()

Free the given CompileCommands.

◆ clang_CompileCommands_getCommand() ◆ clang_CompileCommands_getSize()

Get the number of CompileCommand we have for a file.


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