Max Leuthäuser

Results 54 comments of Max Leuthäuser

You need to give c2cpg the path to the included files (`--include `) and/or you system header files location (`--with-include-auto-discovery`). Otherwise, definitions like JNICALL and such can not be resolved....

We simply use Eclipse CDT as a parser. If CDT is not able to parse it there is nothing we can do unfortunately. You could try a c2cpg standalone run...

I am pretty sure the parser can't find the definitions for JNIEXPORT and JNICALL. What happens if you place these definitions directly into the file?

c2cpg accepts an `--include ` argument (can be used multiple times) were you are able to specify directories to look for includes. I guess in your case it would be...

As long as we are using Ammonite: There is [codeColorsImplicit](https://github.com/com-lihaoyi/Ammonite/blob/main/amm/repl/src/main/scala/ammonite/repl/ApiImpls.scala#L74) which can be shadowed. I do not know how to apply this to our traversal API though.

Could you provide a minimal working example for your task?

We offer a neo4jcsv export https://github.com/joernio/joern/blob/master/joern-cli/src/main/scala/io/joern/joerncli/JoernExport.scala#L109 Check if that helps.

Just like the ./joern start script there is also one for ./joern-export. Run `./joern-export --help` for guidance.

Simply download the latest release at https://github.com/joernio/joern/releases, unpack the zip and run the joern-export script in the resulting folder.

Not 100% sure but I guess CDT is not able to parse methods with `_Noreturn`. You could try to run c2cpg with the `--with-include-auto-discovery` flag in case `_Noreturn` is defined...