| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| class Tokenizer; | ||
|
|
||
| /** Use WRONG_DATA in checkers to mark conditions that check that data is correct */ | ||
| #define WRONG_DATA(COND, TOK) ((COND) && wrongData((TOK), #COND)) |
There was a problem hiding this comment.
does this mean that wrongData is never used and can be removed also?
Sorry, something went wrong.
There was a problem hiding this comment.
It is getting removed, see below.
Sorry, something went wrong.
|
According to 11604 there is a debug warning for this code: struct S {
S() {
t = 0;
}
decltype(NULL) t;
};
so if t does not get a valuetype here, it indicates that there is room for improvement in cppcheck symboldatabase and then the debug warning seems good to me? A fix to set the valuetype would be preferable? |
Sorry, something went wrong.
NULL was just an example, it could be any unknown type. Not setting a ValueType when the underlying type is unknown doesn't justify a debug warning IMHO. |
Sorry, something went wrong.
|
Side note: Trac is acting up again... |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.