support 'LL' integer suffix without 'u'

This commit is contained in:
Josh Holtrop 2018-05-12 15:09:47 -04:00
parent 290c2e343e
commit 478c053cab
2 changed files with 2 additions and 1 deletions

View File

@ -211,6 +211,7 @@ static const char * builtin_types[] = {
"__float80",
"__ibm128",
"_Complex",
"__m64",
};
bool is_type_name(const std::string & type_name)

View File

@ -141,7 +141,7 @@ L?'\\t' (void)'\t'; return CHAR_CONST;
L?'\\v' (void)'\v'; return CHAR_CONST;
L?'\\x[0-9A-Fa-f]{2}' return CHAR_CONST;
L?'\\[0-7]{1,3}' return CHAR_CONST;
[0-9]+([uU][lL]?[lL]?)? return INT_CONST;
[0-9]+[uU]?[lL]?[lL]? return INT_CONST;
0[xX][0-9a-fA-F]+([uU][lL]?[lL]?)? return INT_CONST;
([0-9]+\.[0-9]*|\.[0-9]+)([eE][-+]?[0-9]+)?[fFlL]? return FLOAT_CONST;