Skip to content

Commit

Permalink
enable uuid for the whole project
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliankaul committed Sep 25, 2024
1 parent 441dca3 commit 6ef5616
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/cpg.common-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ kotlin {

tasks.withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn", "-Xcontext-receivers")
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn", "-opt-in=kotlin.uuid.ExperimentalUuidApi", "-Xcontext-receivers")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ abstract class Handler<ResultNode : Node?, HandlerNode, L : LanguageFrontend<in
}

/** Creates a random name starting with a prefix plus a random UUID (version 4). */
@OptIn(kotlin.uuid.ExperimentalUuidApi::class)
fun getRandomTempName(): Name {
val prefix = "TEMP-RANDOM-NAME"
val randomPart = Uuid.random().toString()
Expand Down

0 comments on commit 6ef5616

Please sign in to comment.