diff options
| author | Jim Lawson | 2016-04-26 11:06:16 -0700 |
|---|---|---|
| committer | Jim Lawson | 2016-04-26 11:06:16 -0700 |
| commit | 09958f63470697188e1ed1a01c7ea39b8c56e7ef (patch) | |
| tree | 9c0d8ef8d69cbe74b5e56e8474f0304aacdadc6b /src/main/scala/Chisel/internal/firrtl | |
| parent | 19046381ae319915c4e8fff7b108e6b5dd100509 (diff) | |
Scalastyle fixes and "ignores". - No functional changes.
Diffstat (limited to 'src/main/scala/Chisel/internal/firrtl')
| -rw-r--r-- | src/main/scala/Chisel/internal/firrtl/IR.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/scala/Chisel/internal/firrtl/IR.scala b/src/main/scala/Chisel/internal/firrtl/IR.scala index 4c039e9a..1e06a663 100644 --- a/src/main/scala/Chisel/internal/firrtl/IR.scala +++ b/src/main/scala/Chisel/internal/firrtl/IR.scala @@ -169,9 +169,11 @@ case class Printf(clk: Arg, formatIn: String, ids: Seq[Arg]) extends Command { def format: String = { def escaped(x: Char) = { require(x.toInt >= 0) - if (x == '"' || x == '\\') s"\\${x}" - else if (x == '\n') "\\n" - else { + if (x == '"' || x == '\\') { + s"\\${x}" + } else if (x == '\n') { + "\\n" + } else { require(x.toInt >= 32) // TODO \xNN once FIRRTL issue #59 is resolved x } |
