Skip to content

Commit

Permalink
Explicitly include <cassert> when using assert
Browse files Browse the repository at this point in the history
Depending on the OS used, a module-enabled build can fail due to the
special handling <cassert> gets as textual header.
  • Loading branch information
jsonn committed Mar 2, 2020
1 parent c61401b commit eb812ef
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/AST/CommentCommandTraits.cpp
Expand Up @@ -8,6 +8,7 @@

#include "clang/AST/CommentCommandTraits.h"
#include "llvm/ADT/STLExtras.h"
#include <cassert>

namespace clang {
namespace comments {
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/APSInt.cpp
Expand Up @@ -14,6 +14,7 @@
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringRef.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/FormatVariadic.cpp
Expand Up @@ -6,6 +6,7 @@
//===----------------------------------------------------------------------===//

#include "llvm/Support/FormatVariadic.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/IntEqClasses.cpp
Expand Up @@ -18,6 +18,7 @@
//===----------------------------------------------------------------------===//

#include "llvm/ADT/IntEqClasses.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/IntervalMap.cpp
Expand Up @@ -11,6 +11,7 @@
//===----------------------------------------------------------------------===//

#include "llvm/ADT/IntervalMap.h"
#include <cassert>

namespace llvm {
namespace IntervalMapImpl {
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/KnownBits.cpp
Expand Up @@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//

#include "llvm/Support/KnownBits.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/PrettyStackTrace.cpp
Expand Up @@ -22,6 +22,7 @@
#include "llvm/Support/raw_ostream.h"

#include <atomic>
#include <cassert>
#include <cstdarg>
#include <cstdio>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/Regex.cpp
Expand Up @@ -14,6 +14,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include <cassert>
#include <string>

// Important this comes last because it defines "_REGEX_H_". At least on
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/StringPool.cpp
Expand Up @@ -12,6 +12,7 @@

#include "llvm/Support/StringPool.h"
#include "llvm/ADT/StringRef.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/Triple.cpp
Expand Up @@ -14,6 +14,7 @@
#include "llvm/Support/Host.h"
#include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/TargetParser.h"
#include <cassert>
#include <cstring>
using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/VersionTuple.cpp
Expand Up @@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/VersionTuple.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/TableGen/TableGenBackend.cpp
Expand Up @@ -13,6 +13,7 @@
#include "llvm/TableGen/TableGenBackend.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/AArch64/AArch64StackOffset.h
Expand Up @@ -16,6 +16,7 @@

#include "llvm/Support/MachineValueType.h"
#include "llvm/Support/TypeSize.h"
#include <cassert>

namespace llvm {

Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
Expand Up @@ -12,6 +12,7 @@

#include "PPCMCAsmInfo.h"
#include "llvm/ADT/Triple.h"
#include <cassert>

using namespace llvm;

Expand Down
1 change: 1 addition & 0 deletions llvm/utils/TableGen/CodeGenHwModes.h
Expand Up @@ -12,6 +12,7 @@
#define LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H

#include "llvm/ADT/StringMap.h"
#include <cassert>
#include <map>
#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions llvm/utils/TableGen/CodeGenInstruction.h
Expand Up @@ -16,6 +16,7 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/MachineValueType.h"
#include "llvm/Support/SMLoc.h"
#include <cassert>
#include <string>
#include <utility>
#include <vector>
Expand Down

0 comments on commit eb812ef

Please sign in to comment.