analyzeFile

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

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

Parameters

input_file
Type: AbsolutePath

path to a file to analyze

cflags
Type: string[]

compiler flags to pass on to clang

visitor
Type: VisitorT

to apply on the clang AST

ctx
Type: ClangContextT

ClangContext

Return Value

Type: ExitStatusType

if the analyze was performed ok or errors occured

Meta