You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The clang-kast tools inserts calls to conversion functions. As an example, take the following program:
int rv = 0;
struct A{};
struct B : A{};
struct C {
A a; B b;
operator A(){rv=1; return a;}
operator B(){rv=2; return b;}
};
int main() {
C c;
A ra = c; // here calls `C::operator A()`
return rv;
}
We may be able to get rid of the call using [anywhere] rules in the same way we eliminate ConstructorCalls (here) - but we would need to somehow mark those calls in clang-kast. Also, maybe we could have a separate semantics that would just strip the AST we get from clang?
The text was updated successfully, but these errors were encountered:
The
clang-kast
tools inserts calls to conversion functions. As an example, take the following program:The inserted call:
We may be able to get rid of the call using
[anywhere]
rules in the same way we eliminateConstructorCall
s (here) - but we would need to somehow mark those calls inclang-kast
. Also, maybe we could have a separate semantics that would just strip the AST we get from clang?The text was updated successfully, but these errors were encountered: