mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Add column numbers to errors and warnings.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user