Skip to content

Commit

Permalink
naming: Never remove underscores from original name
Browse files Browse the repository at this point in the history
Signed-off-by: gatecat <[email protected]>
  • Loading branch information
gatecat committed Jan 29, 2024
1 parent 36751c5 commit c0a5882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crlcore/src/ccore/toolbox/NamingScheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace CRL {
if (translated == '[' ) translated = leftPar;
if (translated == ']' ) translated = rightPar;

if (translated == '_') {
if (translated == '_' && refName[i] != '_') {
if (vhdlName.empty() ) continue;
if (i == refName.size()-1) break;
if (vhdlName.back() == '_') continue;
Expand Down

0 comments on commit c0a5882

Please sign in to comment.