[PATCH] D143996: [clang-tidy][doc] Remove unused variable
Björn Svensson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 14 03:08:06 PST 2023
bjosv created this revision.
Herald added subscribers: kbarton, xazax.hun, nemanjai.
Herald added a reviewer: njames93.
Herald added a project: All.
bjosv requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Remove mention of a variable that is not used in the example for checker:
cppcoreguidelines-avoid-non-const-global-variables
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143996
Files:
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.rst
Index: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.rst
+++ clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.rst
@@ -32,7 +32,7 @@
char h = 0;
};
-Variables: ``a``, ``c``, ``c_ptr1``, ``c_ptr2``, ``c_const_ptr`` and
+Variables: ``a``, ``c``, ``c_ptr1``, ``c_const_ptr`` and
``c_reference``, will all generate warnings since they are either:
a globally accessible variable and non-const, a pointer or reference providing
global access to non-const data or both.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143996.497259.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230214/8e52ef9c/attachment.bin>
More information about the cfe-commits
mailing list