mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 20:46:05 +00:00
[NFC][clang-tidy] remove magic-numbers-todo.cpp (#91577)
This XFAIL test is written in 4 years ago and still todo. 4 is already in DefaultIgnoredIntegerValues so I do not think this XFAIL case can be passed.
This commit is contained in:
parent
b1cbf4a7c3
commit
aeab44d386
@ -1,15 +0,0 @@
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user