aaron.ballman added a comment.

Thank you for the fix!



================
Comment at: 
clang-tools-extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp:137-138
 
+  // Make sure the first character is actually a digit
+  // https://bugs.llvm.org/show_bug.cgi?id=51790
+  if (!std::isdigit(static_cast<unsigned char>(LiteralSourceText.front())))
----------------



================
Comment at: 
clang-tools-extra/test/clang-tidy/checkers/readability-uppercase-literal-suffix-integer.cpp:286
+  int x = Vector<10>::kCapacity;
+}
----------------
Can you add a `// CHECK-MESSAGES-NOT:` line to the places where we used to 
diagnose but no longer do? That helps make the test more explicit.

Another test to add is a nontype template parameter whose identifier ends in a 
digit just before the `i`. e.g., `foo1i`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110493

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

Reply via email to