@@ -5079,6 +5079,113 @@ the configuration (without a prefix: ``Auto``).
50795079
50805080 For example: TESTSUITE
50815081
5082+ .. _NumericLiteralCase :
5083+
5084+ **NumericLiteralCase ** (``NumericLiteralCaseStyle ``) :versionbadge: `clang-format 22 ` :ref: `¶ <NumericLiteralCase >`
5085+ Capitalization style for numeric literals.
5086+
5087+ Nested configuration flags:
5088+
5089+ Separate control for each numeric literal component.
5090+
5091+ For example, the config below will leave exponent letters alone, reformat
5092+ hexadecimal digits in lowercase, reformat numeric literal prefixes in
5093+ uppercase, and reformat suffixes in lowercase.
5094+
5095+ .. code-block :: c++
5096+
5097+ NumericLiteralCase:
5098+ ExponentLetter: Leave
5099+ HexDigit: Lower
5100+ Prefix: Upper
5101+ Suffix: Lower
5102+
5103+ * ``NumericLiteralComponentStyle ExponentLetter ``
5104+ Format floating point exponent separator letter case.
5105+
5106+ .. code-block :: c++
5107+
5108+ float a = 6.02e23 + 1.0E10; // Leave
5109+ float a = 6.02E23 + 1.0E10; // Upper
5110+ float a = 6.02e23 + 1.0e10; // Lower
5111+
5112+ Possible values:
5113+
5114+ * ``NLCS_Leave `` (in configuration: ``Leave ``)
5115+ Leave this component of the literal as is.
5116+
5117+ * ``NLCS_Upper `` (in configuration: ``Upper ``)
5118+ Format this component with uppercase characters.
5119+
5120+ * ``NLCS_Lower `` (in configuration: ``Lower ``)
5121+ Format this component with lowercase characters.
5122+
5123+
5124+ * ``NumericLiteralComponentStyle HexDigit ``
5125+ Format hexadecimal digit case.
5126+
5127+ .. code-block :: c++
5128+
5129+ a = 0xaBcDeF; // Leave
5130+ a = 0xABCDEF; // Upper
5131+ a = 0xabcdef; // Lower
5132+
5133+ Possible values:
5134+
5135+ * ``NLCS_Leave `` (in configuration: ``Leave ``)
5136+ Leave this component of the literal as is.
5137+
5138+ * ``NLCS_Upper `` (in configuration: ``Upper ``)
5139+ Format this component with uppercase characters.
5140+
5141+ * ``NLCS_Lower `` (in configuration: ``Lower ``)
5142+ Format this component with lowercase characters.
5143+
5144+
5145+ * ``NumericLiteralComponentStyle Prefix ``
5146+ Format integer prefix case.
5147+
5148+ .. code-block :: c++
5149+
5150+ a = 0XF0 | 0b1; // Leave
5151+ a = 0XF0 | 0B1; // Upper
5152+ a = 0xF0 | 0b1; // Lower
5153+
5154+ Possible values:
5155+
5156+ * ``NLCS_Leave `` (in configuration: ``Leave ``)
5157+ Leave this component of the literal as is.
5158+
5159+ * ``NLCS_Upper `` (in configuration: ``Upper ``)
5160+ Format this component with uppercase characters.
5161+
5162+ * ``NLCS_Lower `` (in configuration: ``Lower ``)
5163+ Format this component with lowercase characters.
5164+
5165+
5166+ * ``NumericLiteralComponentStyle Suffix ``
5167+ Format suffix case. This option excludes case-sensitive reserved
5168+ suffixes, such as ``min `` in C++.
5169+
5170+ .. code-block :: c++
5171+
5172+ a = 1uLL; // Leave
5173+ a = 1ULL; // Upper
5174+ a = 1ull; // Lower
5175+
5176+ Possible values:
5177+
5178+ * ``NLCS_Leave `` (in configuration: ``Leave ``)
5179+ Leave this component of the literal as is.
5180+
5181+ * ``NLCS_Upper `` (in configuration: ``Upper ``)
5182+ Format this component with uppercase characters.
5183+
5184+ * ``NLCS_Lower `` (in configuration: ``Lower ``)
5185+ Format this component with lowercase characters.
5186+
5187+
5188+
50825189.. _ObjCBinPackProtocolList :
50835190
50845191**ObjCBinPackProtocolList ** (``BinPackStyle ``) :versionbadge: `clang-format 7 ` :ref: `¶ <ObjCBinPackProtocolList >`
0 commit comments