================ @@ -3100,6 +3100,54 @@ struct FormatStyle { /// \version 11 TrailingCommaStyle InsertTrailingCommas; + /// Character case format for different components of a numeric literal. + /// + /// For all options, ``0`` leave the case unchanged, ``-1`` + /// uses lower case and, ``1`` uses upper case. + /// + struct NumericLiteralCaseStyle { + /// Format numeric constant prefixes. + /// \code{.text} + /// /* -1: lower case */ b = 0x01; + /// /* 0: don't care */ + /// /* 1: upper case */ b = 0X01; + /// \endcode + int8_t PrefixCase; ---------------- HazardyKnusperkeks wrote:
Please go for an `enum {Always, Never, Leave}`, that is consistent with other options. https://github.com/llvm/llvm-project/pull/151590 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits