Skip to content

Commit 96ad7ef

Browse files
authored
[NFC][analyzer] Correct example code in VirtualCall docs (#131992)
Oops, I noticed these just after merging my commit 9762b8e.
1 parent 61b0bf5 commit 96ad7ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/docs/analyzer/checkers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ pure virtual – but may be still surprising for the programmer.)
563563
.. code-block:: cpp
564564
565565
struct A {
566-
virtual void getKind() = 0;
566+
virtual int getKind() = 0;
567567
568568
A() {
569569
// warn: This calls the pure virtual method A::getKind().
@@ -888,7 +888,7 @@ checker does not report them**.
888888
.. code-block:: cpp
889889
890890
struct A {
891-
virtual void getKind();
891+
virtual int getKind();
892892
893893
A() {
894894
// warn: This calls A::getKind() even if we are constructing an instance

0 commit comments

Comments
 (0)