PrettyPrinter.h (204962) | PrettyPrinter.h (206275) |
---|---|
1//===--- PrettyPrinter.h - Classes for aiding with AST printing -*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 23 unchanged lines hidden (view full) --- 32 33/// \brief Describes how types, statements, expressions, and 34/// declarations should be printed. 35struct PrintingPolicy { 36 /// \brief Create a default printing policy for C. 37 PrintingPolicy(const LangOptions &LO) 38 : Indentation(2), LangOpts(LO), SuppressSpecifiers(false), 39 SuppressTag(false), SuppressScope(false), | 1//===--- PrettyPrinter.h - Classes for aiding with AST printing -*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 23 unchanged lines hidden (view full) --- 32 33/// \brief Describes how types, statements, expressions, and 34/// declarations should be printed. 35struct PrintingPolicy { 36 /// \brief Create a default printing policy for C. 37 PrintingPolicy(const LangOptions &LO) 38 : Indentation(2), LangOpts(LO), SuppressSpecifiers(false), 39 SuppressTag(false), SuppressScope(false), |
40 Dump(false), ConstantArraySizeAsWritten(false) { } | 40 Dump(false), ConstantArraySizeAsWritten(false), 41 AnonymousTagLocations(true) { } |
41 42 /// \brief The number of spaces to use to indent each line. 43 unsigned Indentation : 8; 44 45 /// \brief What language we're printing. 46 const LangOptions &LangOpts; 47 48 /// \brief Whether we should suppress printing of the actual specifiers for --- 43 unchanged lines hidden (view full) --- 92 /// 93 /// will be printed as written or as follows: 94 /// 95 /// \code 96 /// int a[104]; 97 /// char a[9] = "A string"; 98 /// \endcode 99 bool ConstantArraySizeAsWritten : 1; | 42 43 /// \brief The number of spaces to use to indent each line. 44 unsigned Indentation : 8; 45 46 /// \brief What language we're printing. 47 const LangOptions &LangOpts; 48 49 /// \brief Whether we should suppress printing of the actual specifiers for --- 43 unchanged lines hidden (view full) --- 93 /// 94 /// will be printed as written or as follows: 95 /// 96 /// \code 97 /// int a[104]; 98 /// char a[9] = "A string"; 99 /// \endcode 100 bool ConstantArraySizeAsWritten : 1; |
100 | 101 102 /// \brief When printing an anonymous tag name, also print the location of 103 /// that entity (e.g., "enum <anonymous at t.h:10:5>"). Otherwise, just 104 /// prints "<anonymous>" for the name. 105 bool AnonymousTagLocations : 1; |
101}; 102 103} // end namespace clang 104 105#endif | 106}; 107 108} // end namespace clang 109 110#endif |