[PATCH] D158787: [clang-tidy][readability] add Leading_upper_snake_case
Steven Lewis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 16:10:14 PDT 2023
MasterCopy8GB updated this revision to Diff 553294.
MasterCopy8GB added a comment.
Update documentation
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158787/new/
https://reviews.llvm.org/D158787
Files:
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.rst
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
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
+ <clang-tidy/checks/readability/IdentifierNamingCheck>` check to allow for
+ Leading_upper_snake_case naming convention.
+
New checks
^^^^^^^^^^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158787.553294.patch
Type: text/x-patch
Size: 1542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230824/53fa0440/attachment.bin>
More information about the llvm-commits
mailing list