Author: Balázs Kéri Date: 2024-02-12T15:30:58+01:00 New Revision: 2b5e4eeb26ce57a8d7c2835cffc80388f43f044a
URL: https://github.com/llvm/llvm-project/commit/2b5e4eeb26ce57a8d7c2835cffc80388f43f044a DIFF: https://github.com/llvm/llvm-project/commit/2b5e4eeb26ce57a8d7c2835cffc80388f43f044a.diff LOG: [clang][analyzer] Remove 'alpha.core.CallAndMessageUnInitRefArg' from documentation (NFC). (#81138) This checker does not exist (any more?) but appeared in the documentation. No other references to CallAndMessageUnInitRefArg are found in the full clang code. Added: Modified: clang/docs/analyzer/checkers.rst clang/www/analyzer/alpha_checks.html Removed: ################################################################################ diff --git a/clang/docs/analyzer/checkers.rst b/clang/docs/analyzer/checkers.rst index bb637cf1b8007b..510629d8a2d480 100644 --- a/clang/docs/analyzer/checkers.rst +++ b/clang/docs/analyzer/checkers.rst @@ -1890,28 +1890,6 @@ the locking/unlocking of ``mtx_t`` mutexes. mtx_lock(&mtx1); // warn: This lock has already been acquired } -.. _alpha-core-CallAndMessageUnInitRefArg: - -alpha.core.CallAndMessageUnInitRefArg (C,C++, ObjC) -""""""""""""""""""""""""""""""""""""""""""""""""""" -Check for logical errors for function calls and Objective-C -message expressions (e.g., uninitialized arguments, null function pointers, and pointer to undefined variables). - -.. code-block:: c - - void test(void) { - int t; - int &p = t; - int &s = p; - int &q = s; - foo(q); // warn - } - - void test(void) { - int x; - foo(&x); // warn - } - .. _alpha-core-CastSize: alpha.core.CastSize (C) diff --git a/clang/www/analyzer/alpha_checks.html b/clang/www/analyzer/alpha_checks.html index 11ef7d405dd4c8..7bbe4a20288f23 100644 --- a/clang/www/analyzer/alpha_checks.html +++ b/clang/www/analyzer/alpha_checks.html @@ -87,29 +87,6 @@ <h3 id="core_alpha_checkers">Core Alpha Checkers</h3> </pre></div></div></td></tr> -<tr><td><a id="alpha.core.CallAndMessageUnInitRefArg"><div class="namedescr expandable"><span class="name"> -alpha.core.CallAndMessageUnInitRefArg</span><span class="lang"> -(C, C++)</span><div class="descr"> -Check for uninitialized arguments in function calls and Objective-C -message expressions.</div></div></a></td> -<td><div class="exampleContainer expandable"> -<div class="example"><pre> -void test(void) { - int t; - int &p = t; - int &s = p; - int &q = s; - foo(q); // warn -} -</pre></div><div class="separator"></div> -<div class="example"><pre> -void test(void) { - int x; - foo(&x); // warn -} -</pre></div></div></td></tr> - - <tr><td><a id="alpha.core.CastSize"><div class="namedescr expandable"><span class="name"> alpha.core.CastSize</span><span class="lang"> (C)</span><div class="descr"> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits