11 lines · c
1// RUN: clang-tidy %s -checks=-*,modernize-use-nullptr -- -std=c17 | count 02 3// Note: this test expects no diagnostics, but FileCheck cannot handle that,4// hence the use of | count 0.5 6#define NULL 07void f(void) {8 char *str = NULL; // ok9 (void)str;10}11