]> granicus.if.org Git - clang/commitdiff
Don't try to instantiate std::list at an incomplete type; it's not
authorJohn McCall <rjmccall@apple.com>
Wed, 2 May 2012 05:44:20 +0000 (05:44 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 2 May 2012 05:44:20 +0000 (05:44 +0000)
allowed, and it'll blow up in unfortunate ways when using a proper
C++11 library.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155980 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Rewrite/TokenRewriter.h

index 9ebd33a51970a6a1fb33d059b9815c92b7c49c75..894db0953f7fd6806cbc113f7a8b90371fb3b6ee 100644 (file)
 #define LLVM_CLANG_TOKENREWRITER_H
 
 #include "clang/Basic/SourceLocation.h"
+#include "clang/Lex/Token.h"
 #include "llvm/ADT/OwningPtr.h"
 #include <list>
 #include <map>
 
 namespace clang {
-  class Token;
   class LangOptions;
   class ScratchBuffer;