Skip to content

Commit

Permalink
Add Libclang parsing in KlangPlugin
Browse files Browse the repository at this point in the history
Libclang parsing method is now included in KlangPlugin, providing an additional option to Docker. The associated method for generating Abstract Syntax Trees (ASTs) has also been adapted. However, full feature set of Libclang parsing method still needs to be implemented.
  • Loading branch information
Alexandre Mommers committed Jan 2, 2024
1 parent 785a297 commit 3cdbbba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import klang.domain.NativeStructure
import klang.domain.NativeTypeAlias
import klang.generator.generateKotlinFile
import klang.parser.json.parseAstJson
import klang.parser.libclang.parseFile
import klang.tools.generateAstFromDocker
import org.gradle.api.Plugin
import org.gradle.api.Project
Expand Down Expand Up @@ -134,7 +135,9 @@ class KlangPlugin : Plugin<Project> {
parseAstJson(jsonFile.absolutePath)
}
ParsingMethod.Libclang -> {
TODO()
parseFile(
fileToParse
)
}
}.also { it.resolveTypes() }

Expand Down

0 comments on commit 3cdbbba

Please sign in to comment.