From 164490c8fbf132ca65644d05d6ff8d0d7a3beb20 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Wed, 29 Jul 2020 20:48:31 -0700 Subject: Improved Chisel Naming via Compiler Plugins + Prefixing (#1448) Added prefixing and a compiler plugin to improve naming. Only works for Scala 2.12 and above. Co-authored-by: Jack Koenig --- macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macros/src') diff --git a/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala b/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala index 88baa2b1..d8f2ff40 100644 --- a/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala +++ b/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala @@ -112,7 +112,7 @@ class NamingTransforms(val c: Context) { } } - /** Applies the val name transform to a class body. + /** Applies the val name transform to a class body. * Closes context on top level or return local context to englobing context. * Closing context only makes sense when top level a Module. * A Module is always the naming top level. @@ -128,7 +128,7 @@ class NamingTransforms(val c: Context) { if($globalNamingStack.length == 1){ $contextVar.namePrefix("") } - $globalNamingStack.popReturnContext(this, $contextVar) + $globalNamingStack.popReturnContext(this, $contextVar) """ } -- cgit v1.2.3