Skip to content
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

Audit standard type propagation rules #7

Open
sampsyo opened this issue Aug 17, 2014 · 0 comments
Open

Audit standard type propagation rules #7

sampsyo opened this issue Aug 17, 2014 · 0 comments

Comments

@sampsyo
Copy link
Owner

sampsyo commented Aug 17, 2014

The Annotator base class has some standard type propagation rules that might (a) not be necessary anymore, and (b) might be unsound. For example, in VisitImplicitCastExpr, we propagate the annotation from the cast-from expression to the cast-to type.

  • Is this necessary now, or is Clang taking care of propagating in obvious situations for us? Check this for each of the rules.
  • If we do need to do it manually, we probably need to do it for the entire type tree—not just the outermost annotation. For example, when casting from a pointer type to the pointer type, propagate any annotation on the pointed-to type.
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

No branches or pull requests

1 participant