1// RUN: %check_clang_tidy %s readability-magic-numbers %t --
2// XFAIL: *
3
4int ProcessSomething(int input);
5
6int DoWork()
7{
8 if (((int)4) > ProcessSomething(input: 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

source code of clang-tools-extra/test/clang-tidy/checkers/readability/magic-numbers-todo.cpp