Cleanup: Removed unused %name% cmd for patterns
This commit is contained in:
parent
c6bbc9d739
commit
1d1d79a1e5
|
@ -390,17 +390,8 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
|
||||||
patternIdentified = true;
|
patternIdentified = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Any symbolname..
|
|
||||||
if (firstWordEquals(p, "%name%") == 0)
|
|
||||||
{
|
|
||||||
if (!tok->isName())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
patternIdentified = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type..
|
// Type..
|
||||||
if (firstWordEquals(p, "%type%") == 0)
|
else if (firstWordEquals(p, "%type%") == 0)
|
||||||
{
|
{
|
||||||
if (!tok->isName())
|
if (!tok->isName())
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -98,7 +98,6 @@ public:
|
||||||
* Possible patterns
|
* Possible patterns
|
||||||
* - "%any%" any token
|
* - "%any%" any token
|
||||||
* - "%var%" any token which is a name or type e.g. "hello" or "int"
|
* - "%var%" any token which is a name or type e.g. "hello" or "int"
|
||||||
* - "%name%" any token which is a name or type e.g. "hello" or "int"
|
|
||||||
* - "%type%" Anything that can be a variable type, e.g. "int", but not "delete".
|
* - "%type%" Anything that can be a variable type, e.g. "int", but not "delete".
|
||||||
* - "%num%" Any numeric token, e.g. "23"
|
* - "%num%" Any numeric token, e.g. "23"
|
||||||
* - "%bool%" true or false
|
* - "%bool%" true or false
|
||||||
|
|
Loading…
Reference in New Issue