Hi all,
I am new to clang. I was wondering if there is a way to get line information (actual line number in the source file) for each statement in the Control flow graph.
Regards
Manavender
Hi all,
I am new to clang. I was wondering if there is a way to get line information (actual line number in the source file) for each statement in the Control flow graph.
Regards
Manavender
You can get the source range of any statement with Stmt::getSourceRange(). The SourceManager can help to decompose that source range into file/line/column.
- Doug