mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-10 02:54:53 -08:00
Fixes for compiling with clang
Clang just had better errors and caught stuff msvc did not.
This commit is contained in:
parent
d606c790ca
commit
212b4e6d16
@ -4821,7 +4821,7 @@ CodeType parse_type( bool* typedef_is_function )
|
|||||||
if ( is_function_typename )
|
if ( is_function_typename )
|
||||||
{
|
{
|
||||||
// Go to the end of the signature
|
// Go to the end of the signature
|
||||||
while ( scanner->Type != TokType::Statement_End && scanner->TokType::BraceCurly_Open )
|
while ( scanner->Type != TokType::Statement_End && scanner->Type != TokType::BraceCurly_Open )
|
||||||
++ scanner;
|
++ scanner;
|
||||||
|
|
||||||
// Go back to the first capture start found
|
// Go back to the first capture start found
|
||||||
|
@ -281,22 +281,22 @@ struct String
|
|||||||
switch ( c )
|
switch ( c )
|
||||||
{
|
{
|
||||||
case ' ':
|
case ' ':
|
||||||
result.append('·');
|
result.append( txt("·") );
|
||||||
break;
|
break;
|
||||||
case '\t':
|
case '\t':
|
||||||
result.append('→');
|
result.append( txt("→") );
|
||||||
break;
|
break;
|
||||||
case '\n':
|
case '\n':
|
||||||
result.append('↵');
|
result.append( txt("↵") );
|
||||||
break;
|
break;
|
||||||
case '\r':
|
case '\r':
|
||||||
result.append('⏎');
|
result.append( txt("⏎") );
|
||||||
break;
|
break;
|
||||||
case '\v':
|
case '\v':
|
||||||
result.append('⇕');
|
result.append( txt("⇕") );
|
||||||
break;
|
break;
|
||||||
case '\f':
|
case '\f':
|
||||||
result.append('⌂');
|
result.append( txt("⌂") );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
result.append(c);
|
result.append(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user