Disable naming convention check on anonymous unions and structs
This commit is contained in:
parent
d610dc221d
commit
2ff3b02aa7
|
@ -85,7 +85,7 @@ class StyleChecker : BaseAnalyzer
|
|||
|
||||
void checkAggregateName(string aggregateType, ref const Token name)
|
||||
{
|
||||
if (name.text.matchFirst(aggregateNameRegex).length == 0)
|
||||
if (name.text.length > 0 && name.text.matchFirst(aggregateNameRegex).length == 0)
|
||||
addErrorMessage(name.line, name.column, KEY, aggregateType
|
||||
~ " name '" ~ name.text ~ "' does not match style guidelines.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue