|
Cppcheck
|
#include "token.h"#include "errorlogger.h"#include "check.h"#include <cassert>#include <cstdlib>#include <cstring>#include <string>#include <iostream>#include <cctype>#include <sstream>#include <map>Go to the source code of this file.
Defines | |
| #define | multicompare(p, cond, ismulticomp) |
Functions | |
| static int | multiComparePercent (const Token *tok, const char **haystack_p, const char *needle, bool emptyStringFound) |
| #define multicompare | ( | p, | |
| cond, | |||
| ismulticomp | |||
| ) |
{ \
if (!(cond)) { \
if (*(p) != '|') \
return false; \
++(p); \
ismulticomp = (*(p) && *(p) != ' '); \
continue; \
} \
if (*(p) == '|') { \
while (*(p) && *(p) != ' ') \
++(p); \
} \
ismulticomp = false; \
}
Definition at line 520 of file token.cpp.
Referenced by Token::Match().
| static int multiComparePercent | ( | const Token * | tok, |
| const char ** | haystack_p, | ||
| const char * | needle, | ||
| bool | emptyStringFound | ||
| ) | [static] |
Definition at line 305 of file token.cpp.
References Token::isConstOp(), Token::isName(), and Token::isOp().
Referenced by Token::multiCompare().
1.7.6.1