diff --git a/src/ccc/mdebug_section.cpp b/src/ccc/mdebug_section.cpp index c9bb90d..40b7bb2 100644 --- a/src/ccc/mdebug_section.cpp +++ b/src/ccc/mdebug_section.cpp @@ -267,7 +267,8 @@ Result SymbolTableReader::print_symbols(FILE* out, bool print_locals, bool return Result(); } -static void print_symbol(FILE* out, const Symbol& symbol) { +static void print_symbol(FILE* out, const Symbol& symbol) +{ fprintf(out, " %8x ", symbol.value); const char* symbol_type_str = symbol_type(symbol.symbol_type); diff --git a/src/ccc/stabs_to_ast.cpp b/src/ccc/stabs_to_ast.cpp index 6b880a8..47e5c1e 100644 --- a/src/ccc/stabs_to_ast.cpp +++ b/src/ccc/stabs_to_ast.cpp @@ -731,7 +731,7 @@ static MemberFunctionInfo check_member_function( } bool is_constructor = - info.name == "__ct" || // Takes a parameter to decide whether or not construct virtual base classes. + info.name == "__ct" || // Takes a parameter to decide whether or not to construct virtual base classes. info.name == "__comp_ctor" || // Constructs virtual base classes. info.name == "__base_ctor"; // Does not construct virtual base classes. @@ -740,7 +740,7 @@ static MemberFunctionInfo check_member_function( } bool is_destructor = - info.name == "__dt" || // Takes parameters to decide to construct virtual base classes and/or delete the object. + info.name == "__dt" || // Takes parameters to decide whether or not to construct virtual base classes and/or delete the object. info.name == "__comp_dtor" || // Destructs virtual base classes. info.name == "__base_dtor" || // Does not construct virtual base classes. info.name == "__deleting_dtor"; // Destructs virtual base clases then deletes the entire object. diff --git a/src/ccc/symbol_database.cpp b/src/ccc/symbol_database.cpp index ac1f338..cfa6f52 100644 --- a/src/ccc/symbol_database.cpp +++ b/src/ccc/symbol_database.cpp @@ -513,7 +513,8 @@ CCC_FOR_EACH_SYMBOL_TYPE_DO_X Symbol::Symbol() {} Symbol::~Symbol() {} -void Symbol::set_type(std::unique_ptr type) { +void Symbol::set_type(std::unique_ptr type) +{ m_type = std::move(type); invalidate_node_handles(); }