Summary: Now we also print out the filename with its path.
Reviewers: NoQ
Reviewed By: NoQ
Subscribers: xazax.hun, baloghadamsoftware, szepet, a.sidorin,
mikhail.ramalho, Szelethus, donat.nagy, dkrupp, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63438
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364197
91177308-0d34-0410-b5e6-
96231b3b80d8
}
Out << "{ \"line\": " << SM.getExpansionLineNumber(Loc)
- << ", \"column\": " << SM.getExpansionColumnNumber(Loc) << " }";
+ << ", \"column\": " << SM.getExpansionColumnNumber(Loc)
+ << ", \"file\": \"" << SM.getFilename(Loc) << "\" }";
}
void ProgramPoint::printJson(llvm::raw_ostream &Out, const char *NL) const {
// CHECK: \"has_report\": true
+// CHECK: \"pretty\": \"*x\", \"location\": \{ \"line\": 16, \"column\": 10, \"file\": \"{{(.+)}}dump_egraph.c\" \}
+