analyzeFile

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

@safe @trusted
ExitStatusType
analyzeFile
(
VisitorT
ClangContextT
)
(
const AbsolutePath input_file
,
const string[] cflags
,
VisitorT visitor
,
ref ClangContextT ctx
)

Parameters

input_file AbsolutePath

path to a file to analyze

cflags string[]

compiler flags to pass on to clang

visitor VisitorT

to apply on the clang AST

ctx ClangContextT

ClangContext

Return Value

Type: ExitStatusType

if the analyze was performed ok or errors occured

Meta