r293488 - [AST] Make header standalone.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 30 08:00:57 PST 2017
Author: d0k
Date: Mon Jan 30 10:00:57 2017
New Revision: 293488
URL: http://llvm.org/viewvc/llvm-project?rev=293488&view=rev
Log:
[AST] Make header standalone.
Most implementations get ptrdiff_t transitively, some don't. Explicitly
include cstddef.
Modified:
cfe/trunk/include/clang/AST/ASTVector.h
Modified: cfe/trunk/include/clang/AST/ASTVector.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTVector.h?rev=293488&r1=293487&r2=293488&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTVector.h (original)
+++ cfe/trunk/include/clang/AST/ASTVector.h Mon Jan 30 10:00:57 2017
@@ -22,6 +22,7 @@
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/Support/type_traits.h"
#include <algorithm>
+#include <cstddef>
#include <cstring>
#include <memory>
More information about the cfe-commits
mailing list