Skip to content

Commit

Permalink
Python: disable parallel support (#2039)
Browse files Browse the repository at this point in the history
disable parallel support
  • Loading branch information
maximiliankaul authored Feb 11, 2025
1 parent 7494e7f commit e18a82e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import de.fraunhofer.aisec.cpg.TranslationConfiguration
import de.fraunhofer.aisec.cpg.TranslationContext
import de.fraunhofer.aisec.cpg.frontends.Language
import de.fraunhofer.aisec.cpg.frontends.LanguageFrontend
import de.fraunhofer.aisec.cpg.frontends.SupportsParallelParsing
import de.fraunhofer.aisec.cpg.frontends.TranslationException
import de.fraunhofer.aisec.cpg.graph.*
import de.fraunhofer.aisec.cpg.graph.declarations.NamespaceDeclaration
Expand Down Expand Up @@ -63,6 +64,7 @@ import kotlin.math.min
* a value (on the first assignment).
*/
@RegisterExtraPass(PythonAddDeclarationsPass::class)
@SupportsParallelParsing(false) // https://github.com/Fraunhofer-AISEC/cpg/issues/2026
class PythonLanguageFrontend(language: Language<PythonLanguageFrontend>, ctx: TranslationContext) :
LanguageFrontend<Python.AST.AST, Python.AST.AST?>(language, ctx) {
val lineSeparator = "\n" // TODO
Expand Down

0 comments on commit e18a82e

Please sign in to comment.