]> granicus.if.org Git - clang/commitdiff
Add a missing forward declaration and namespace qualifier to this
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 10:16:15 +0000 (10:16 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 10:16:15 +0000 (10:16 +0000)
header. This showed up in client code that has a different include
ordering after Chris's shuffle of raw_ostream. All of the Clang code
ends up with a header included before this one that provides the needed
type and using declaration.

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

include/clang/AST/PrettyPrinter.h

index a34c0d95564e9762b8b5a72da3a603a7468e9dd0..fc8ac36b3b97b0db8dcc1cb10b9bdd8fc513961f 100644 (file)
 
 #include "clang/Basic/LangOptions.h"
 
+namespace llvm {
+  class raw_ostream;
+}
+
 namespace clang {
 
 class Stmt;
@@ -25,7 +29,7 @@ class LangOptions;
 class PrinterHelper {
 public:
   virtual ~PrinterHelper();
-  virtual bool handledStmt(Stmt* E, raw_ostream& OS) = 0;
+  virtual bool handledStmt(Stmt* E, llvm::raw_ostream& OS) = 0;
 };
 
 /// \brief Describes how types, statements, expressions, and