summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/Basic/AttrDocs.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 5dc9a05f4e5..9017a631f77 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -554,9 +554,9 @@ certain user-defined criteria. For example:
.. code-block:: c
- void abs(int a)
+ int abs(int a)
__attribute__((diagnose_if(a >= 0, "Redundant abs call", "warning")));
- void must_abs(int a)
+ int must_abs(int a)
__attribute__((diagnose_if(a >= 0, "Redundant abs call", "error")));
int val = abs(1); // warning: Redundant abs call
OpenPOWER on IntegriCloud