dextool.compilation_db.user_filerange

Members

Aliases

CompileCommandsRange
alias CompileCommandsRange = SimpleRange!CompileCommand
Undocumented in source.
ParsedCompileCommandRange
alias ParsedCompileCommandRange = SimpleRange!ParsedCompileCommand
Undocumented in source.

Functions

addCompiler
auto addCompiler(RangeT r, Compiler compiler)

Return: add a compiler to the flags data if it is missing.

addSystemIncludes
auto addSystemIncludes(RangeT r)
fileRange
CompileCommandsRange fileRange(CompileCommandDB db)
fileRange
CompileCommandsRange fileRange(Path[] files, Compiler compiler)
Undocumented in source. Be warned that the author may not have intended to support it.
find
Nullable!ParsedCompileCommand find(ParsedCompileCommand[] db, string glob)

Find a best matching compile_command in the database against the path pattern glob.

limitFileRange
LimitFileRange limitFileRange(ParsedCompileCommand[] db, string[] onlyTheseFiles)
limitOrAllRange
LimitFileRange limitOrAllRange(ParsedCompileCommand[] db, T[] onlyTheseFiles)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
auto parse(RangeT r, CompileCommandFilter ccFilter)
prependFlags
auto prependFlags(RangeT r, string[] flags)
replaceCompiler
auto replaceCompiler(RangeT r, Compiler compiler)

Return: replace the compiler in flags with compiler if compiler is NOT empty.

Structs

LimitFileRange
struct LimitFileRange
Undocumented in source.
ParsedCompileCommand
struct ParsedCompileCommand

The flags in the CompileCommand are extracted and parsed.

SimpleRange
struct SimpleRange(T)
Undocumented in source.

Meta

License

MPL-2

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

This is a handy range to iterate over either all files from the user OR all files in a compilation database.