@@ -91,7 +91,7 @@ object ScalaOptionParser {
9191 " -Yoverride-objects" , " -Yoverride-vars" , " -Ypatmat-debug" , " -Yno-adapted-args" , " -Ypos-debug" , " -Ypresentation-debug" ,
9292 " -Ypresentation-strict" , " -Ypresentation-verbose" , " -Yquasiquote-debug" , " -Yrangepos" , " -Yreify-copypaste" , " -Yreify-debug" , " -Yrepl-class-based" ,
9393 " -Yrepl-sync" , " -Yshow-member-pos" , " -Yshow-symkinds" , " -Yshow-symowners" , " -Yshow-syms" , " -Yshow-trees" , " -Yshow-trees-compact" , " -Yshow-trees-stringified" , " -Ytyper-debug" ,
94- " -Ywarn-adapted-args " , " -Ywarn- dead-code" , " -Ywarn-inaccessible " , " -Ywarn-infer-any " , " -Ywarn-nullary-override " , " -Ywarn-nullary-unit " , " -Ywarn-numeric-widen " , " -Ywarn-unused-import " , " -Ywarn-value-discard " ,
94+ " -Ywarn-dead-code" , " -Ywarn-numeric-widen " , " -Ywarn-value-discard " , " -Ywarn-extra-implicit " , " -Ywarn-self-implicit " ,
9595 " -deprecation" , " -explaintypes" , " -feature" , " -help" , " -no-specialization" , " -nobootcp" , " -nowarn" , " -optimise" , " -print" , " -unchecked" , " -uniqid" , " -usejavacp" , " -usemanifestcp" , " -verbose" , " -version" )
9696 private def stringSettingNames = List (" -Xgenerate-phase-graph" , " -Xmain-class" , " -Xpluginsdir" , " -Xshow-class" , " -Xshow-object" , " -Xsource-reader" , " -Ydump-classes" , " -Ygen-asmp" ,
9797 " -Ypresentation-log" , " -Ypresentation-replay" , " -Yrepl-outdir" , " -d" , " -dependencyfile" , " -encoding" , " -Xscript" )
@@ -108,9 +108,11 @@ object ScalaOptionParser {
108108 " -g" -> List (" line" , " none" , " notailcails" , " source" , " vars" ),
109109 " -target" -> List (" jvm-1.5" , " jvm-1.6" , " jvm-1.7" , " jvm-1.8" ))
110110 private def multiChoiceSettingNames = Map [String , List [String ]](
111- " -Xlint" -> List (" adapted-args" , " nullary-unit" , " inaccessible" , " nullary-override" , " infer-any" , " missing-interpolator" , " doc-detached" , " private-shadow" , " type-parameter-shadow" , " poly-implicit-overload" , " option-implicit" , " delayedinit-select" , " by-name-right-associative" , " package-object-classes" , " unsound-match" , " stars-align" ),
111+ " -Xlint" -> List (" adapted-args" , " nullary-unit" , " inaccessible" , " nullary-override" , " infer-any" , " missing-interpolator" , " doc-detached" , " private-shadow" , " type-parameter-shadow" , " poly-implicit-overload" , " option-implicit" , " delayedinit-select" , " by-name-right-associative" , " package-object-classes" , " unsound-match" , " stars-align" , " constant " , " unused " ),
112112 " -language" -> List (" help" , " _" , " dynamics" , " postfixOps" , " reflectiveCalls" , " implicitConversions" , " higherKinds" , " existentials" , " experimental.macros" ),
113113 " -opt" -> List (" l:none" , " l:default" , " l:method" , " l:project" , " l:classpath" , " unreachable-code" , " simplify-jumps" , " empty-line-numbers" , " empty-labels" , " compact-locals" , " nullness-tracking" , " closure-elimination" , " inline-project" , " inline-global" ),
114+ " -Ywarn-unused" -> List (" imports" , " patvars" , " privates" , " locals" , " explicits" , " implicits" , " params" ),
115+ " -Ywarn-macros" -> List (" none" , " before" , " after" , " both" ),
114116 " -Ystatistics" -> List (" parser" , " typer" , " patmat" , " erasure" , " cleanup" , " jvm" )
115117 )
116118 private def scalaVersionSettings = List (" -Xmigration" , " -Xsource" )
0 commit comments