From: Chandler Carruth Date: Fri, 22 Jul 2011 10:16:15 +0000 (+0000) Subject: Add a missing forward declaration and namespace qualifier to this X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7107d360db751aa974285ae2136aed76b6691b86;p=clang Add a missing forward declaration and namespace qualifier to this 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 --- diff --git a/include/clang/AST/PrettyPrinter.h b/include/clang/AST/PrettyPrinter.h index a34c0d9556..fc8ac36b3b 100644 --- a/include/clang/AST/PrettyPrinter.h +++ b/include/clang/AST/PrettyPrinter.h @@ -16,6 +16,10 @@ #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