[clang-tidy] Fix for build bots not liking #include <cstddef>

llvm-svn: 251239
This commit is contained in:
Piotr Dziwinski 2015-10-25 15:47:21 +00:00
parent b9ab397647
commit db9d130fb1
2 changed files with 8 additions and 2 deletions

View File

@ -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);

View File

@ -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);