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