Add experimental config files to filter warnings outside of the source.

This commit is contained in:
Wilson Snyder
2010-01-21 06:11:30 -05:00
parent 24753c8c6a
commit c695af31b8
14 changed files with 373 additions and 23 deletions
+4
View File
@@ -28,6 +28,7 @@
# include "V3Ast.h"
# include "V3Global.h"
# include "V3Stats.h"
# include "V3Config.h"
#endif
//======================================================================
@@ -126,6 +127,9 @@ FileLine* FileLine::copyOrSameFileLine() {
// Return this, or a copy of this
// There are often more than one token per line, thus we use the
// same pointer as long as we're on the same line, file & warn state.
#ifndef _V3ERROR_NO_GLOBAL_
V3Config::applyIgnores(this); // Toggle warnings based on global config file
#endif
static FileLine* lastNewp = NULL;
if (lastNewp && *lastNewp == *this) { // Compares lineno, filename, etc
return lastNewp;