forked from OSchip/llvm-project
[clang-tidy] Fix for build bots not liking #include <cstddef>
llvm-svn: 251239
This commit is contained in:
parent
b9ab397647
commit
db9d130fb1
|
@ -1,6 +1,9 @@
|
|||
// RUN: clang-tidy %s -checks=-*,readability-implicit-bool-cast -- -std=c++98
|
||||
|
||||
#include <cstddef> // for NULL
|
||||
// We need NULL macro, but some buildbots don't like including <cstddef> header
|
||||
// This is a portable way of getting it to work
|
||||
#undef NULL
|
||||
#define NULL 0L
|
||||
|
||||
template<typename T>
|
||||
void functionTaking(T);
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// RUN: %check_clang_tidy %s readability-implicit-bool-cast %t
|
||||
|
||||
#include <cstddef> // for NULL
|
||||
// We need NULL macro, but some buildbots don't like including <cstddef> header
|
||||
// This is a portable way of getting it to work
|
||||
#undef NULL
|
||||
#define NULL 0L
|
||||
|
||||
template<typename T>
|
||||
void functionTaking(T);
|
||||
|
|
Loading…
Reference in New Issue