From c0a5882937b2602b3e6feb523bae494c6770c3b9 Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 29 Jan 2024 11:04:41 +0100 Subject: [PATCH] naming: Never remove underscores from original name Signed-off-by: gatecat --- crlcore/src/ccore/toolbox/NamingScheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crlcore/src/ccore/toolbox/NamingScheme.cpp b/crlcore/src/ccore/toolbox/NamingScheme.cpp index 7f711b22c..154cd27ba 100644 --- a/crlcore/src/ccore/toolbox/NamingScheme.cpp +++ b/crlcore/src/ccore/toolbox/NamingScheme.cpp @@ -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;