diff --git a/utils/code_model_generator/main.cpp b/utils/code_model_generator/main.cpp index 06f54522..95959c44 100755 --- a/utils/code_model_generator/main.cpp +++ b/utils/code_model_generator/main.cpp @@ -351,17 +351,7 @@ void makeGetterValue(PIFile & f, const PICodeParser::Entity * e) { void writeModel(PICodeParser & parser, PICLI & cli, const PIString out, bool meta, bool enums, bool streams, bool texts, bool getters) { - PIVector ventities; - PIString defname = out - .replacedAll('.', '_') - .replaceAll('/', '_') - .replaceAll(':', '_') - .replaceAll('-', '_') - .replaceAll('@', '_') - .replaceAll('\\', '_') - .removeAll(' ') - .toUpperCase() - + "_H"; + PIString defname = "CCM_" + PIString::fromNumber(out.hash()) + "_H"; PISet inc_files; piForeachC (PICodeParser::Entity * e, parser.entities) if (e->name.find("::") < 0 && !e->name.startsWith("_PI"))