[clang-tools-extra] [clang-tidy] modernize-use-nullptr matches "NULL" in templates (PR #109169)

Florian Mayer via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 19 13:39:04 PDT 2024


================
@@ -84,6 +84,29 @@ void test_macro_expansion4() {
 #undef MY_NULL
 }
 
+template <typename T> struct pear {
+  // If you say __null (or NULL), we assume that T will always be a pointer
----------------
fmayer wrote:

Sorry, the implication of my comment was: explain why in a comment, because future readers will not know that.

https://github.com/llvm/llvm-project/pull/109169


More information about the cfe-commits mailing list