Index: clang-tools-extra/docs/ReleaseNotes.rst =================================================================== --- clang-tools-extra/docs/ReleaseNotes.rst +++ clang-tools-extra/docs/ReleaseNotes.rst @@ -113,6 +113,10 @@ - Improved `--dump-config` to print check options in alphabetical order. +- Improved :doc:`readability-identifier-naming + ` check to allow for + Leading_upper_snake_case naming convention. + New checks ^^^^^^^^^^ Index: clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.rst =================================================================== --- clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.rst +++ clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.rst @@ -17,7 +17,8 @@ - ``CamelCase``, - ``camel_Snake_Back``, - ``Camel_Snake_Case``, - - ``aNy_CasE``. + - ``aNy_CasE``, + - ``Leading_upper_snake_case``. It also supports a fixed prefix and suffix that will be prepended or appended to the identifiers, regardless of the casing. @@ -2099,7 +2100,7 @@ For example using values of: - - StructCase of ``lower_case`` + - StructCase of ``Leading_upper_snake_case`` - StructPrefix of ``pre_`` - StructSuffix of ``_post`` @@ -2118,9 +2119,9 @@ .. code-block:: c++ - struct pre_foo_post { - pre_foo_post(); - ~pre_foo_post(); + struct pre_Foo_post { + pre_Foo_post(); + ~pre_Foo_post(); }; .. option:: TemplateParameterCase