[cfe-commits] r155980 - /cfe/trunk/include/clang/Rewrite/TokenRewriter.h
John McCall
rjmccall at apple.com
Tue May 1 22:44:20 PDT 2012
Author: rjmccall
Date: Wed May 2 00:44:20 2012
New Revision: 155980
URL: http://llvm.org/viewvc/llvm-project?rev=155980&view=rev
Log:
Don't try to instantiate std::list at an incomplete type; it's not
allowed, and it'll blow up in unfortunate ways when using a proper
C++11 library.
Modified:
cfe/trunk/include/clang/Rewrite/TokenRewriter.h
Modified: cfe/trunk/include/clang/Rewrite/TokenRewriter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Rewrite/TokenRewriter.h?rev=155980&r1=155979&r2=155980&view=diff
==============================================================================
--- cfe/trunk/include/clang/Rewrite/TokenRewriter.h (original)
+++ cfe/trunk/include/clang/Rewrite/TokenRewriter.h Wed May 2 00:44:20 2012
@@ -16,12 +16,12 @@
#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;
More information about the cfe-commits
mailing list