Displaying 1 result from an estimated 1 matches for "getpresumedloc".
2013 Dec 02
0
[LLVMdev] A problem about the location of ForStmt,
I get the location with :
SourceManager &SM = context.getSourceManager();
int lineStart = SM.getPresumedLoc(SR->getBegin()).getLine();
int lineEnd = SM.getPresumedLoc(SR->getEnd()).getLine();
int colStart = SM.getPresumedLoc(SR->getBegin()).getColumn();
int colEnd = SM.getPresumedLoc(SR->getEnd()).getColumn();
llvm::outs() << "For:" << lineStart <<...