A very simple way to specify interactions between two programming languages#2734
Open
KuechA wants to merge 4 commits into
Open
A very simple way to specify interactions between two programming languages#2734KuechA wants to merge 4 commits into
KuechA wants to merge 4 commits into
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
oxisto
reviewed
Apr 22, 2026
| import de.fraunhofer.aisec.cpg.graph.scopes.Symbol | ||
| import de.fraunhofer.aisec.cpg.graph.types.Type | ||
|
|
||
| class CToCxxMapper : LanguageInterface<CLanguage, CPPLanguage>(CLanguage(), CPPLanguage()) { |
Member
There was a problem hiding this comment.
Ok this is complete overkill. The original idea is a great idea but what you are trying to achieve can be solved by a simple adjustment of the language check (see original issue)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In case of incomplete code, it is possible that a function is declared in some language and then used in another programming language through some sort of interface between the languages (could be default e.g. for C/C++ or a language bridge mapping more things e.g. JNI). This is not really handled by the SymbolResolver and it would just infer new nodes if the language is not equal.
This PR suggests introducing a very basic model specifying such inter-language bridges.
Related to #2732