Hi,
the attached patch adds a warning for self-assignments of member
variables. This is PR13104. I do this every now and then locally when
writing setter functions: I type "void set_var(int var) { var_ =" and
then try to hit ctrl-p twice to complete the lhs to "var" in vim, but
miss and hit it only once, so that I end up with "var_ = var_;"This finds 0 bugs and 0 false positives in chromium, so I'm not sure how useful this is. Opinions? Nico
clang-memvar-assign.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
