diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2018-12-20 17:28:32 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2018-12-20 17:28:32 +0000 |
| commit | 79d6a7988b43f49f6e41f6d17234beb3f9138165 (patch) | |
| tree | da25e938e366967d1a728868a8f0008295b8c16d | |
| parent | e6ebb51052d0f82adba25edac5bb35c0175a84d9 (diff) | |
| download | bcm5719-llvm-79d6a7988b43f49f6e41f6d17234beb3f9138165.tar.gz bcm5719-llvm-79d6a7988b43f49f6e41f6d17234beb3f9138165.zip | |
Correct the diagnose_if attribute documentation. Fixes PR35845.
llvm-svn: 349776
| -rw-r--r-- | clang/include/clang/Basic/AttrDocs.td | 4 |
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 |

