[cfe-commits] r135765 - /cfe/trunk/include/clang/AST/PrettyPrinter.h
Chandler Carruth
chandlerc at gmail.com
Fri Jul 22 03:16:15 PDT 2011
Author: chandlerc
Date: Fri Jul 22 05:16:15 2011
New Revision: 135765
URL: http://llvm.org/viewvc/llvm-project?rev=135765&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/AST/PrettyPrinter.h
Modified: cfe/trunk/include/clang/AST/PrettyPrinter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/PrettyPrinter.h?rev=135765&r1=135764&r2=135765&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/PrettyPrinter.h (original)
+++ cfe/trunk/include/clang/AST/PrettyPrinter.h Fri Jul 22 05:16:15 2011
@@ -16,6 +16,10 @@
#include "clang/Basic/LangOptions.h"
+namespace llvm {
+ class raw_ostream;
+}
+
namespace clang {
class Stmt;
@@ -25,7 +29,7 @@
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
More information about the cfe-commits
mailing list