From 8f41e67fc31b71828056a5adca3585552ff57a3b Mon Sep 17 00:00:00 2001 From: Robert Haimerl Date: Thu, 31 Aug 2023 11:47:16 +0200 Subject: [PATCH] add necessary pass dependencies for flask pass --- .../main/java/io/clouditor/graph/passes/python/FlaskPass.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cloudpg/src/main/java/io/clouditor/graph/passes/python/FlaskPass.kt b/cloudpg/src/main/java/io/clouditor/graph/passes/python/FlaskPass.kt index 505b600..2c56c7a 100644 --- a/cloudpg/src/main/java/io/clouditor/graph/passes/python/FlaskPass.kt +++ b/cloudpg/src/main/java/io/clouditor/graph/passes/python/FlaskPass.kt @@ -10,12 +10,17 @@ import de.fraunhofer.aisec.cpg.graph.declarations.TranslationUnitDeclaration import de.fraunhofer.aisec.cpg.graph.declarations.VariableDeclaration import de.fraunhofer.aisec.cpg.graph.statements.ReturnStatement import de.fraunhofer.aisec.cpg.graph.statements.expressions.* +import de.fraunhofer.aisec.cpg.passes.CallResolver import de.fraunhofer.aisec.cpg.passes.TranslationResultPass +import de.fraunhofer.aisec.cpg.passes.VariableUsageResolver +import de.fraunhofer.aisec.cpg.passes.order.DependsOn import de.fraunhofer.aisec.cpg.processing.IVisitor import de.fraunhofer.aisec.cpg.processing.strategy.Strategy import io.clouditor.graph.* @Suppress("UNUSED_PARAMETER") +@DependsOn(CallResolver::class) +@DependsOn(VariableUsageResolver::class) class FlaskPass(ctx: TranslationContext) : TranslationResultPass(ctx) { // for now, assume, that we have one Flask application per analysis // this might not be the case everytime