fix GetFunctionAddress resolution with explicit name change#793
fix GetFunctionAddress resolution with explicit name change#793conrade-ctc wants to merge 1 commit intocompiler-research:mainfrom
Conversation
|
@vgvassilev @aaronj0 for review, viz |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #793 +/- ##
=======================================
Coverage 79.40% 79.40%
=======================================
Files 11 11
Lines 3987 3987
=======================================
Hits 3166 3166
Misses 821 821
🚀 New features to boost your workflow:
|
|
clang-tidy review says "All clean, LGTM! 👍" |
|
Nice, I agree with this change, especially since the overloads for This would be a breaking change in the public API, so maybe we want to visit its external usage in xeus-cpp. cppyy does not rely on the |
aaronj0
left a comment
There was a problem hiding this comment.
LGTM! Would be good if you could run clang-format before we land this
|
Are you using the Dispatch.h infrastructure? Otherwise why this particular overload does not work for you? |
|
@aaronj0, git-clang-format run, looks like a pre-commit hook isn't properly set up on our side, so formatting isn't automated, sorry about that. BTW, does your process do a squash of the commit, or do you typically force push after an amend? |
|
clang-tidy review says "All clean, LGTM! 👍" |
No worries, thanks! We usually land PRs either squashed into a single commit or rebased with atomic commits. amend + force-push is also welcome if you prefer a cleaner history (atleast I do :)). I think the only policy is that we don't use merge commits. |
Just running your test suite causes this on our side, but we are compiling with This was the specific error: |
I'll force push a single squashed commit then (assuming you don't have the github policy set to have that as the default behavior, which it sounds like you don't!). Thanks. |
484c774 to
b261dd9
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
I really want to dig into this because it looks like it tried to make an array to pointer decay of a string literal and select the |
@vgvassilev, so it turns out that this is ONLY due to |
Indeed, I suspected that the only possibility is if I would perhaps hold off on merging this since a rename is a breaking change, and assuming this patch isn't a blocker for anything else |
Description
We have stricter compiler/flags in our env, and resolution fails due to two
GetFunctionAddressdefinitions. This PR moves the internal function to a different nameGetFunctionAddressFromMangledNameto fix the resolution.Type of change
Please tick all options which are relevant.
Testing
In our env, stricter flag for compiler now resolve the issue, no tests added to
CppInterOp, just a rename on the surface.Checklist