Skip to content

Minor rewriter fixes and cleanups #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 17, 2025
Merged

Minor rewriter fixes and cleanups #533

merged 4 commits into from
Mar 17, 2025

Conversation

fw-immunant
Copy link
Contributor

Split off of library-only mode, sending PR to keep that branch closer to main. The only real semantic change here is a fix for a bug in type alias handling.

@@ -513,16 +513,14 @@ class FnPtrCall : public RefactoringCallback {

std::string new_expr =
"IA2_CALL("s + old_callee.str() + ", " + mangled_ty;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice to merge in #518 first so we don't have these same formatting changes in a bunch of different PRs (I've seen this one, too, in a bunch of mine).

@@ -597,7 +595,6 @@ class FnPtrExpr : public RefactoringCallback {
auto *fn_ptr_expr = result.Nodes.getNodeAs<clang::DeclRefExpr>("fnPtrExpr");
assert(fn_ptr_expr != nullptr);

auto annotation = fn_ptr_expr->getDecl()->getAttr<clang::AnnotateAttr>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dead code, right? I've seen a warning for it for a while

@fw-immunant fw-immunant merged commit 622da80 into main Mar 17, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants