Add column numbers to errors and warnings.

This commit is contained in:
Wilson Snyder
2020-03-14 22:02:42 -04:00
parent ee8dd32c04
commit 81c659957e
221 changed files with 938 additions and 936 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ string FileLine::asciiLineCol() const {
}
string FileLine::ascii() const {
// For most errors especially in the parser the lastLineno is more accurate than firstLineno
return filename()+":"+cvtToStr(lastLineno());
return filename() + ":" + cvtToStr(lastLineno()) + ":" + cvtToStr(firstColumn());
}
std::ostream& operator<<(std::ostream& os, FileLine* fileline) {
os <<fileline->ascii()<<": "<<std::hex;