diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp b/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp index 6dc7841bc16..b13767aa1d6 100644 --- a/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp +++ b/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp @@ -1,4 +1,4 @@ -//===--- MacroInfo.cpp - Information about #defined identifiers -----------===// +//===- MacroInfo.cpp - Information about #defined identifiers -------------===// // // The LLVM Compiler Infrastructure // @@ -12,25 +12,29 @@ //===----------------------------------------------------------------------===// #include "clang/Lex/MacroInfo.h" +#include "clang/Basic/IdentifierTable.h" +#include "clang/Basic/LLVM.h" +#include "clang/Basic/SourceLocation.h" +#include "clang/Basic/SourceManager.h" +#include "clang/Basic/TokenKinds.h" #include "clang/Lex/Preprocessor.h" +#include "clang/Lex/Token.h" +#include "llvm/ADT/Optional.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/Casting.h" +#include "llvm/Support/Compiler.h" +#include "llvm/Support/raw_ostream.h" +#include <cassert> +#include <utility> + using namespace clang; MacroInfo::MacroInfo(SourceLocation DefLoc) - : Location(DefLoc), - ParameterList(nullptr), - NumParameters(0), - IsDefinitionLengthCached(false), - IsFunctionLike(false), - IsC99Varargs(false), - IsGNUVarargs(false), - IsBuiltinMacro(false), - HasCommaPasting(false), - IsDisabled(false), - IsUsed(false), - IsAllowRedefinitionsWithoutWarning(false), - IsWarnIfUnused(false), - UsedForHeaderGuard(false) { -} + : Location(DefLoc), IsDefinitionLengthCached(false), IsFunctionLike(false), + IsC99Varargs(false), IsGNUVarargs(false), IsBuiltinMacro(false), + HasCommaPasting(false), IsDisabled(false), IsUsed(false), + IsAllowRedefinitionsWithoutWarning(false), IsWarnIfUnused(false), + UsedForHeaderGuard(false) {} unsigned MacroInfo::getDefinitionLengthSlow(const SourceManager &SM) const { assert(!IsDefinitionLengthCached); |
