[cfe-commits] r119729 - /cfe/trunk/include/clang/AST/PrettyPrinter.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Nov 18 12:06:30 PST 2010
Author: akirtzidis
Date: Thu Nov 18 14:06:30 2010
New Revision: 119729
URL: http://llvm.org/viewvc/llvm-project?rev=119729&view=rev
Log:
Copy the LangOptions in PrintingPolicy to avoid pointing to a LangOptions that is long gone.
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=119729&r1=119728&r2=119729&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/PrettyPrinter.h (original)
+++ cfe/trunk/include/clang/AST/PrettyPrinter.h Thu Nov 18 14:06:30 2010
@@ -14,6 +14,8 @@
#ifndef LLVM_CLANG_AST_PRETTY_PRINTER_H
#define LLVM_CLANG_AST_PRETTY_PRINTER_H
+#include "clang/Basic/LangOptions.h"
+
namespace llvm {
class raw_ostream;
}
@@ -44,7 +46,7 @@
unsigned Indentation : 8;
/// \brief What language we're printing.
- const LangOptions &LangOpts;
+ const LangOptions LangOpts;
/// \brief Whether we should suppress printing of the actual specifiers for
/// the given type or declaration.
More information about the cfe-commits
mailing list