Token: assert that multicompare patterns don't begin with some %% command
This commit is contained in:
parent
5edf153602
commit
2f32965bdf
|
@ -602,6 +602,9 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
|
|||
if (!patternUnderstood) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// debugging: assert that this is not part of a multicompare pattern..
|
||||
assert(*p != '|');
|
||||
|
||||
tok = tok->next();
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue