riccibruno added inline comments.

================
Comment at: 
clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp:337
+  if (Name.empty())
+    Name = "<unnamed>";
+  return Name;
----------------
I think that this will become unreachable after D84658 and D85033. I may be 
missing an argument, but in general I would argue that `getNameForDiagnostic` 
should never return an empty name for unnamed entities since this is not useful 
in diagnostics.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69560/new/

https://reviews.llvm.org/D69560

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

Reply via email to