dextool.compilation_db

Members

Functions

appendOrError
Nullable!(SearchResult) appendOrError(CompileCommandDB compile_db, const string[] cflags, const string input_file)

Append the compiler flags if a match is found in the DB or error out.

appendOrError
Nullable!(SearchResult) appendOrError(CompileCommandDB compile_db, const string[] cflags, const string input_file, const CompileCommandFilter flag_filter)

Append the compiler flags if a match is found in the DB or error out.

defaultCompilerFlagFilter
auto defaultCompilerFlagFilter()
find
CompileCommandSearch find(CompileCommandDB db, string glob)

Contains the results of a search in the compilation database.

fromArgCompileDb
CompileCommandDB fromArgCompileDb(string[] paths)

Import and merge many compilation databases into one DB.

orDefaultDb
CompileDbFile[] orDefaultDb(string[] cli_path)

Return default path if argument is null.

parseFlag
ParseFlags parseFlag(CompileCommand cmd, const CompileCommandFilter flag_filter)

Filter and normalize the compiler flags.

Structs

AbsoluteCompileDbDirectory
struct AbsoluteCompileDbDirectory

The absolute path to the directory the compilation database reside at.

CompileCommand
struct CompileCommand

Hold an entry from the compilation database.

CompileCommandDB
struct CompileCommandDB

A complete compilation database.

CompileDbFile
struct CompileDbFile

The path to the compilation database.

ParseFlags
struct ParseFlags

Parsed compiler flags.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Utility functions for Clang Compilation Databases.

License

MPL-2