llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Donát Nagy (NagyDonat) <details> <summary>Changes</summary> Oops, I noticed these just after merging my commit 9762b8e1757601a719d926f7df77c207617adfdd. --- Full diff: https://github.com/llvm/llvm-project/pull/131992.diff 1 Files Affected: - (modified) clang/docs/analyzer/checkers.rst (+2-2) ``````````diff diff --git a/clang/docs/analyzer/checkers.rst b/clang/docs/analyzer/checkers.rst index f3243d002bd35..925f326730d4d 100644 --- a/clang/docs/analyzer/checkers.rst +++ b/clang/docs/analyzer/checkers.rst @@ -563,7 +563,7 @@ pure virtual – but may be still surprising for the programmer.) .. code-block:: cpp struct A { - virtual void getKind() = 0; + virtual int getKind() = 0; A() { // warn: This calls the pure virtual method A::getKind(). @@ -888,7 +888,7 @@ checker does not report them**. .. code-block:: cpp struct A { - virtual void getKind(); + virtual int getKind(); A() { // warn: This calls A::getKind() even if we are constructing an instance `````````` </details> https://github.com/llvm/llvm-project/pull/131992 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits