You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add macro for generating modified Query instantiations (#1098)
* Add `macros` project
* Add temporary usage of macro
* Retrieve source positions
* upgrade to scala 2.13.4 fixes the expression.end issue in macro
* scalameta macros - not a good idea probably
* more WIP
* more wip
* use wildcard types
* cleanup
* more cleanup
* bring both together, make them both whitebox
* move over to console project
* Return Query in queryInit macro
* Reintroduce query properties
To be removed _after_ they're removed from the query database.
* Reenable deprecation warnings
* Run scalafmt
Co-authored-by: Michael Pollmeier <michael@michaelpollmeier.com>
Copy file name to clipboardExpand all lines: console/build.sbt
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@ name := "console"
3
3
enablePlugins(JavaAppPackaging)
4
4
5
5
dependsOn(Projects.codepropertygraph,
6
-
Projects.semanticcpg)
6
+
Projects.semanticcpg,
7
+
Projects.macros)
7
8
8
9
scalacOptions ++=Seq(
9
10
"-deprecation", // Emit warning and location for usages of deprecated APIs.
@@ -37,7 +38,8 @@ scalacOptions ++= Seq(
37
38
"-Ywarn-unused:locals", // Warn if a local definition is unused.
38
39
"-Ywarn-unused:params", // Warn if a value parameter is unused.
39
40
"-Ywarn-unused:patvars", // Warn if a variable bound in a pattern is unused.
40
-
"-Ywarn-unused:privates"// Warn if a private member is unused.
41
+
"-Ywarn-unused:privates", // Warn if a private member is unused.
42
+
"-Yrangepos"
41
43
)
42
44
43
45
// would love to reenable, but somehow StorageBackend.scala triggers a strange `[warn] method with a single empty parameter list overrides method without any parameter list` that doesn't make sense to me...
0 commit comments