dextool.utility

Members

Enums

ExitStatusType (from dextool.type)
enum ExitStatusType via public import dextool.type : AbsolutePath, DextoolVersion, ExitStatusType;
Undocumented in source.
PreferLang
enum PreferLang
Undocumented in source.

Functions

analyzeFile
ExitStatusType analyzeFile(AbsolutePath input_file, string[] cflags, VisitorT visitor, ClangContextT ctx)

Apply the visitor on the clang AST derived from the input_file.

asAbsNormPath
string asAbsNormPath(string path)

Convert a string to the "real path" by converting to an absolute, normalized path. TODO: optimize This function is very inefficient. It creates a lot of GC garbage.

fromArgCompileDb (from dextool.compilation_db)
CompileCommandDB fromArgCompileDb(string[] paths) via public import dextool.compilation_db : fromArgCompileDb;

Import and merge many compilation databases into one DB.

prependDefaultFlags
string[] prependDefaultFlags(string[] in_cflags, PreferLang lang)
Undocumented in source. Be warned that the author may not have intended to support it.
prependLangFlagIfMissing
string[] prependLangFlagIfMissing(string[] in_cflags, PreferLang lang)

TODO move to clang module.

Manifest constants

dextoolVersion
enum dextoolVersion;
Undocumented in source.

Structs

AbsolutePath (from dextool.type)
struct AbsolutePath via public import dextool.type : AbsolutePath, DextoolVersion, ExitStatusType;

The path is guaranteed to be the absolute path.

DextoolVersion (from dextool.type)
struct DextoolVersion via public import dextool.type : AbsolutePath, DextoolVersion, ExitStatusType;
Undocumented in source.

Meta

Date

Date: 2015-2017, Joakim Brännström

License

MPL-2, Mozilla Public License 2.0

Authors

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