Skip to content

Commit

Permalink
typedef -> using
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosvex committed Sep 10, 2024
1 parent 440c6a5 commit efefc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/dbcparser/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ void generate_disk_struct(const types::Struct& def, std::stringstream& definitio
void generate_disk_enum(const types::Enum& def, std::stringstream& definitions, int indent) {
LOG_TRACE_GLOB << log_func << LOG_ASYNC;
std::string tab("\t", indent);
definitions << tab << "typedef " << def.underlying_type << " " << def.name << ";" << "\n";
definitions << tab << "using " << def.name << " = " << def.underlying_type << ";" << "\n";
}

void generate_disk_defs(const types::Definitions& defs, const std::string& output, const std::string& path) {
Expand Down

0 comments on commit efefc1e

Please sign in to comment.