Using libclang, is there a way to know if a closure type was introduced in the context of the initialization of a inline variable?
Given the following C++ code:
Libclang way slower to parse AST than -ast-dump option
I’m generating code by parsing the AST of my header files with libclang and I’m experiencing very long parsing time (30+ seconds on every files). I’ve tried -ast-dump=json
and it’s way faster. I start getting output in the terminal under one second and it takes a few seconds to dump the AST to a JSON file.