You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally Verilator would report messages similar to gcc in these scenarios. Something like this:
$ gcc foo.c
In file included from bar.h:3:0,
from foo.c:1:
foo.c: In function ‘main’:
baz.h:3:13: error: ‘abc’ undeclared (first use in this function)
#define QUX abc
^
bar.h:5:14: note: in expansion of macro ‘QUX’
#define QUUZ QUX
^~~
foo.c:4:12: note: in expansion of macro ‘QUUZ’
return QUUZ;
^~~~
This probably relates to issue #1435. Also, I suspect this will work best as two patches: "included from" and macro expansion.
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-06-22T21:01:44Z
Includes easier than thought as preproc already records the include tree. Also added easy insertion point for adding source annotation later. Pushed to git towards 4.017.
Punting on defines for now as this will be hard to communicate within the preproc and beyond, think better to get column information first (#�), then may revisit.
Author Name: Todd Strader (@toddstrader)
Original Redmine Issue: 1439 from https://www.veripool.org
Original Assignee: Todd Strader (@toddstrader)
Ideally Verilator would report messages similar to gcc in these scenarios. Something like this:
This probably relates to issue #1435. Also, I suspect this will work best as two patches: "included from" and macro expansion.
The text was updated successfully, but these errors were encountered: