[PATCH] D110032: [analyzer] Move docs of SmartPtr to correct subcategory
Deep Majumder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 19 02:09:35 PDT 2021
RedDocMD created this revision.
RedDocMD added reviewers: NoQ, teemperor, xazax.hun, vsavchenko.
Herald added subscribers: manas, steakhal, ASDenysPetrov, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware.
RedDocMD requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The docs of alpha.cplusplus.SmartPtr was incorrectly placed under
alpha.deadcode. Moved it to under alpha.cplusplus
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110032
Files:
clang/docs/analyzer/checkers.rst
Index: clang/docs/analyzer/checkers.rst
===================================================================
--- clang/docs/analyzer/checkers.rst
+++ clang/docs/analyzer/checkers.rst
@@ -1838,6 +1838,20 @@
a.foo(); // warn: method call on a 'moved-from' object 'a'
}
+.. _alpha-cplusplus-SmartPtr:
+
+alpha.cplusplus.SmartPtr (C++)
+""""""""""""""""""""""""""""""
+Check for dereference of null smart pointers.
+
+.. code-block:: cpp
+
+ void deref_smart_ptr() {
+ std::unique_ptr<int> P;
+ *P; // warn: dereference of a default constructed smart unique_ptr
+ }
+
+
alpha.deadcode
^^^^^^^^^^^^^^
.. _alpha-deadcode-UnreachableCode:
@@ -1872,19 +1886,6 @@
[x retain]; // warn
}
-.. _alpha-cplusplus-SmartPtr:
-
-alpha.cplusplus.SmartPtr (C++)
-""""""""""""""""""""""""""""""
-Check for dereference of null smart pointers.
-
-.. code-block:: cpp
-
- void deref_smart_ptr() {
- std::unique_ptr<int> P;
- *P; // warn: dereference of a default constructed smart unique_ptr
- }
-
alpha.fuchsia
^^^^^^^^^^^^^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110032.373446.patch
Type: text/x-patch
Size: 1043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210919/2c0b7351/attachment.bin>
More information about the cfe-commits
mailing list