From 640be4558d36c94bea5309a6193c28851a081f47 Mon Sep 17 00:00:00 2001 From: Florian Wendland Date: Fri, 22 Mar 2024 16:48:55 +0100 Subject: [PATCH] Adds pass dependencies for `EdgeCachePass` (#1469) --- .../kotlin/de/fraunhofer/aisec/cpg/passes/EdgeCachePass.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EdgeCachePass.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EdgeCachePass.kt index bc15bb638a..12aa17edd0 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EdgeCachePass.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EdgeCachePass.kt @@ -29,6 +29,7 @@ import de.fraunhofer.aisec.cpg.TranslationContext import de.fraunhofer.aisec.cpg.graph.Component import de.fraunhofer.aisec.cpg.graph.Node import de.fraunhofer.aisec.cpg.helpers.SubgraphWalker +import de.fraunhofer.aisec.cpg.passes.order.DependsOn import de.fraunhofer.aisec.cpg.processing.IVisitor import de.fraunhofer.aisec.cpg.processing.strategy.Strategy @@ -82,6 +83,11 @@ object Edges { * * The cache itself is stored in the [Edges] object. */ +@DependsOn(EvaluationOrderGraphPass::class) +@DependsOn(SymbolResolver::class) +@DependsOn(DFGPass::class) +@DependsOn(DynamicInvokeResolver::class) +@DependsOn(ControlFlowSensitiveDFGPass::class) class EdgeCachePass(ctx: TranslationContext) : ComponentPass(ctx) { override fun accept(component: Component) { Edges.clear()