Added CodeSpecifiers::index_of for cpp, fix token bug with () operator in parse_operator_after_ret_type

This commit is contained in:
Edward R. Gonzalez 2025-02-15 21:22:33 -05:00
parent ef72d27f3e
commit 727b54c341
2 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,7 @@ struct CodeSpecifiers
Using_Code( CodeSpecifiers );
bool append( Specifier spec ) { return specifiers_append(* this, spec); }
s32 has( Specifier spec ) { return specifiers_has(* this, spec); }
s32 index_of( Specifier spec ) { return specifiers_index_of(* this, spec); }
s32 remove( Specifier to_remove ) { return specifiers_remove(* this, to_remove); }
StrBuilder to_strbuilder() { return specifiers_to_strbuilder(* this ); }
void to_strbuilder( StrBuilder& result ) { return specifiers_to_strbuilder_ref(* this, & result); }

View File

@ -2390,7 +2390,10 @@ CodeOperator parse_operator_after_ret_type(
case '(':
{
if ( currtok.Text.Ptr[1] == ')' )
{
op = Op_FunctionCall;
eat(Tok_Paren_Open);
}
else
op = Op_Invalid;