rogfer01 marked 2 inline comments as done.
rogfer01 added a comment.
Well, the assignment-vs-comparison warning does emit a fix-it in
`Sema::DiagnoseAssignmentAsCondition(Expr *E)`
Diag(Loc, diag::note_condition_assign_silence)
<< FixItHint::CreateInsertion(Open, "(")
<< FixItHint::CreateInsertion(Close, ")");
def note_condition_assign_silence : Note<
"place parentheses around the assignment to silence this warning">;
so I thought it could be appropiate.
http://reviews.llvm.org/D20561
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits