1 // RUN: %check_clang_tidy %s readability-magic-numbers %t -- 2 // XFAIL: * 3 4 int ProcessSomething(int input); 5 DoWork()6int DoWork() 7 { 8 if (((int)4) > ProcessSomething(10)) 9 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: 4 is a magic number; consider replacing it with a named constant [readability-magic-numbers] 10 return 0; 11 12 return 0; 13 } 14 15 16