mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-15 03:01:47 -07:00
More fixes from clang warnings. Parser::lex prep for changes
parse_static_assert now properly adds new-line to end of statement. I'm going to end up making a static_assert ast... that or when the statement ast is made it will handle adding that newline.
This commit is contained in:
@ -28,8 +28,7 @@ void Builder::pad_lines( s32 num )
|
||||
void Builder::print( Code code )
|
||||
{
|
||||
String str = code->to_string();
|
||||
const sw len = str.length();
|
||||
|
||||
// const sw len = str.length();
|
||||
// log_fmt( "%s - print: %.*s\n", File.filename, len > 80 ? 80 : len, str.Data );
|
||||
Buffer.append( str );
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ Code scan_file( char const* path )
|
||||
if ( left && current == '\n' )
|
||||
move_fwd();
|
||||
|
||||
sptr skip_size = fsize - left;
|
||||
// sptr skip_size = fsize - left;
|
||||
if ( (scanner + 2) >= ( str.Data + fsize ) )
|
||||
{
|
||||
mem_move( str, scanner, left );
|
||||
|
Reference in New Issue
Block a user