NoQ added a comment.

Uh-oh sorry! I have a couple more questions and then we can probably land.



================
Comment at: clang-tools-extra/clang-tidy/objc/NSDateFormatterCheck.cpp:24
+  Finder->addMatcher(
+      objcMessageExpr(hasSelector("setDateFormat:"),
+                      hasArgument(0, ignoringImpCasts(
----------------
Can or should we check the class name as well? It's probably going to be pretty 
rare that people have a method with the same name, that also accepts the first 
argument as a string literal, but that literal means something else entirely. 
However there's little reason not to be more cautious about that.


================
Comment at: clang-tools-extra/clang-tidy/objc/NSDateFormatterCheck.cpp:67-68
+    diag(StrExpr->getExprLoc(),
+         "use of calendar year(y) with week of the year(w); "
+         "did you mean to use week-year(Y) instead?");
+  }
----------------
I think we want spaces in such cases. I'm not sure, discussion welcome.


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

https://reviews.llvm.org/D126097

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

Reply via email to