alexfh added inline comments.

================
Comment at: clang-tidy/fuchsia/OverloadedOperatorCheck.cpp:38
+  if (Loc.isValid())
+    diag(Loc, "cannot overload %0") << D;
 }
----------------
This is not related to the fix, but the warning message is unclear, incorrect 
and confusing: one most certainly _can_ overload these functions, but shouldn't 
do this in fuchsia code due to certain reasons. Ideally, warning messages 
should make it clear to the reader what's wrong with the code, why, and how to 
fix it.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D41708



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to