forked from OSchip/llvm-project
[AST][NFC] Use unsigned in the bit-fields of PrintingPolicy
Avoid the mix between bools and unsigned since MSVC pack this poorly. llvm-svn: 339132
This commit is contained in:
parent
1e4b50d40b
commit
bb2fb09781
|
@ -81,7 +81,7 @@ struct PrintingPolicy {
|
||||||
/// declaration for "x", so that we will print "int *x"; it will be
|
/// declaration for "x", so that we will print "int *x"; it will be
|
||||||
/// \c true when we print "y", so that we suppress printing the
|
/// \c true when we print "y", so that we suppress printing the
|
||||||
/// "const int" type specifier and instead only print the "*y".
|
/// "const int" type specifier and instead only print the "*y".
|
||||||
bool SuppressSpecifiers : 1;
|
unsigned SuppressSpecifiers : 1;
|
||||||
|
|
||||||
/// Whether type printing should skip printing the tag keyword.
|
/// Whether type printing should skip printing the tag keyword.
|
||||||
///
|
///
|
||||||
|
@ -91,7 +91,7 @@ struct PrintingPolicy {
|
||||||
/// \code
|
/// \code
|
||||||
/// struct Geometry::Point;
|
/// struct Geometry::Point;
|
||||||
/// \endcode
|
/// \endcode
|
||||||
bool SuppressTagKeyword : 1;
|
unsigned SuppressTagKeyword : 1;
|
||||||
|
|
||||||
/// When true, include the body of a tag definition.
|
/// When true, include the body of a tag definition.
|
||||||
///
|
///
|
||||||
|
@ -101,14 +101,14 @@ struct PrintingPolicy {
|
||||||
/// \code
|
/// \code
|
||||||
/// typedef struct { int x, y; } Point;
|
/// typedef struct { int x, y; } Point;
|
||||||
/// \endcode
|
/// \endcode
|
||||||
bool IncludeTagDefinition : 1;
|
unsigned IncludeTagDefinition : 1;
|
||||||
|
|
||||||
/// Suppresses printing of scope specifiers.
|
/// Suppresses printing of scope specifiers.
|
||||||
bool SuppressScope : 1;
|
unsigned SuppressScope : 1;
|
||||||
|
|
||||||
/// Suppress printing parts of scope specifiers that don't need
|
/// Suppress printing parts of scope specifiers that don't need
|
||||||
/// to be written, e.g., for inline or anonymous namespaces.
|
/// to be written, e.g., for inline or anonymous namespaces.
|
||||||
bool SuppressUnwrittenScope : 1;
|
unsigned SuppressUnwrittenScope : 1;
|
||||||
|
|
||||||
/// Suppress printing of variable initializers.
|
/// Suppress printing of variable initializers.
|
||||||
///
|
///
|
||||||
|
@ -121,7 +121,7 @@ struct PrintingPolicy {
|
||||||
///
|
///
|
||||||
/// SuppressInitializers will be true when printing "auto x", so that the
|
/// SuppressInitializers will be true when printing "auto x", so that the
|
||||||
/// internal initializer constructed for x will not be printed.
|
/// internal initializer constructed for x will not be printed.
|
||||||
bool SuppressInitializers : 1;
|
unsigned SuppressInitializers : 1;
|
||||||
|
|
||||||
/// Whether we should print the sizes of constant array expressions as written
|
/// Whether we should print the sizes of constant array expressions as written
|
||||||
/// in the sources.
|
/// in the sources.
|
||||||
|
@ -139,12 +139,12 @@ struct PrintingPolicy {
|
||||||
/// int a[104];
|
/// int a[104];
|
||||||
/// char a[9] = "A string";
|
/// char a[9] = "A string";
|
||||||
/// \endcode
|
/// \endcode
|
||||||
bool ConstantArraySizeAsWritten : 1;
|
unsigned ConstantArraySizeAsWritten : 1;
|
||||||
|
|
||||||
/// When printing an anonymous tag name, also print the location of that
|
/// When printing an anonymous tag name, also print the location of that
|
||||||
/// entity (e.g., "enum <anonymous at t.h:10:5>"). Otherwise, just prints
|
/// entity (e.g., "enum <anonymous at t.h:10:5>"). Otherwise, just prints
|
||||||
/// "(anonymous)" for the name.
|
/// "(anonymous)" for the name.
|
||||||
bool AnonymousTagLocations : 1;
|
unsigned AnonymousTagLocations : 1;
|
||||||
|
|
||||||
/// When true, suppress printing of the __strong lifetime qualifier in ARC.
|
/// When true, suppress printing of the __strong lifetime qualifier in ARC.
|
||||||
unsigned SuppressStrongLifetime : 1;
|
unsigned SuppressStrongLifetime : 1;
|
||||||
|
@ -199,7 +199,7 @@ struct PrintingPolicy {
|
||||||
/// Use whitespace and punctuation like MSVC does. In particular, this prints
|
/// Use whitespace and punctuation like MSVC does. In particular, this prints
|
||||||
/// anonymous namespaces as `anonymous namespace' and does not insert spaces
|
/// anonymous namespaces as `anonymous namespace' and does not insert spaces
|
||||||
/// after template arguments.
|
/// after template arguments.
|
||||||
bool MSVCFormatting : 1;
|
unsigned MSVCFormatting : 1;
|
||||||
|
|
||||||
/// Whether we should print the constant expressions as written in the
|
/// Whether we should print the constant expressions as written in the
|
||||||
/// sources.
|
/// sources.
|
||||||
|
@ -217,14 +217,14 @@ struct PrintingPolicy {
|
||||||
/// 0x10
|
/// 0x10
|
||||||
/// 2.5e3
|
/// 2.5e3
|
||||||
/// \endcode
|
/// \endcode
|
||||||
bool ConstantsAsWritten : 1;
|
unsigned ConstantsAsWritten : 1;
|
||||||
|
|
||||||
/// When true, don't print the implicit 'self' or 'this' expressions.
|
/// When true, don't print the implicit 'self' or 'this' expressions.
|
||||||
bool SuppressImplicitBase : 1;
|
unsigned SuppressImplicitBase : 1;
|
||||||
|
|
||||||
/// When true, print the fully qualified name of function declarations.
|
/// When true, print the fully qualified name of function declarations.
|
||||||
/// This is the opposite of SuppressScope and thus overrules it.
|
/// This is the opposite of SuppressScope and thus overrules it.
|
||||||
bool FullyQualifiedName : 1;
|
unsigned FullyQualifiedName : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace clang
|
} // end namespace clang
|
||||||
|
|
Loading…
Reference in New Issue