Skip to content

Commit

Permalink
Add a missing forward declaration and namespace qualifier to this
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chandlerc committed Jul 22, 2011
1 parent dc7c5ad commit 7107d36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/clang/AST/PrettyPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

#include "clang/Basic/LangOptions.h"

namespace llvm {
class raw_ostream;
}

namespace clang {

class Stmt;
Expand All @@ -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
Expand Down

0 comments on commit 7107d36

Please sign in to comment.