aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/options/phases/Checks.scala
diff options
context:
space:
mode:
authorchick2020-08-14 19:47:53 -0700
committerJack Koenig2020-08-14 19:47:53 -0700
commit6fc742bfaf5ee508a34189400a1a7dbffe3f1cac (patch)
tree2ed103ee80b0fba613c88a66af854ae9952610ce /src/main/scala/firrtl/options/phases/Checks.scala
parentb516293f703c4de86397862fee1897aded2ae140 (diff)
All of src/ formatted with scalafmt
Diffstat (limited to 'src/main/scala/firrtl/options/phases/Checks.scala')
-rw-r--r--src/main/scala/firrtl/options/phases/Checks.scala15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/main/scala/firrtl/options/phases/Checks.scala b/src/main/scala/firrtl/options/phases/Checks.scala
index 9e671aa5..024c13a9 100644
--- a/src/main/scala/firrtl/options/phases/Checks.scala
+++ b/src/main/scala/firrtl/options/phases/Checks.scala
@@ -25,24 +25,27 @@ class Checks extends Phase {
val td, outA = collection.mutable.ListBuffer[Annotation]()
annotations.foreach {
- case a: TargetDirAnnotation => td += a
+ case a: TargetDirAnnotation => td += a
case a: OutputAnnotationFileAnnotation => outA += a
case _ =>
}
if (td.size != 1) {
- val d = td.map{ case TargetDirAnnotation(x) => x }
+ val d = td.map { case TargetDirAnnotation(x) => x }
throw new OptionsException(
s"""|Exactly one target directory must be specified, but found `${d.mkString(", ")}` specified via:
| - explicit target directory: -td, --target-dir, TargetDirAnnotation
- | - fallback default value""".stripMargin )}
+ | - fallback default value""".stripMargin
+ )
+ }
if (outA.size > 1) {
- val x = outA.map{ case OutputAnnotationFileAnnotation(x) => x }
+ val x = outA.map { case OutputAnnotationFileAnnotation(x) => x }
throw new OptionsException(
s"""|At most one output annotation file can be specified, but found '${x.mkString(", ")}' specified via:
- | - an option or annotation: -foaf, --output-annotation-file, OutputAnnotationFileAnnotation"""
- .stripMargin )}
+ | - an option or annotation: -foaf, --output-annotation-file, OutputAnnotationFileAnnotation""".stripMargin
+ )
+ }
annotations
}