diff options
author | Alexander Kornienko <alexfh@google.com> | 2017-03-23 15:17:44 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2017-03-23 15:17:44 +0000 |
commit | 5816a8bbb197a28715c77908a0dd089f0f237a93 (patch) | |
tree | d77167e1bd90d897cc6a943149a542bbf076cae1 /clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp | |
parent | c3acd2e9c048d5e63436cf775760beab21579801 (diff) | |
download | bcm5719-llvm-5816a8bbb197a28715c77908a0dd089f0f237a93.tar.gz bcm5719-llvm-5816a8bbb197a28715c77908a0dd089f0f237a93.zip |
[clang-tidy] Fix diag message for catch-by-value
Summary:
```
catch (std::exception ex)
{
}
```
Was flagged with "catch handler catches a pointer value".
Reviewers: alexfh, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: cfe-commits, JDevlieghere
Patch by Florian Gross!
Differential Revision: https://reviews.llvm.org/D30592
llvm-svn: 298608
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp b/clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp index 4bf4f33d3b8..120b07eecc7 100644 --- a/clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp @@ -62,7 +62,7 @@ void catchByValue() { try { testThrowFunc(); } catch (logic_error e) { - // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: catch handler catches a pointer value; should throw a non-pointer value and catch by reference instead [misc-throw-by-value-catch-by-reference] + // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: catch handler catches by value; should catch by reference instead [misc-throw-by-value-catch-by-reference] } } |