diff options
| author | Alexander Kornienko <alexfh@google.com> | 2016-01-08 15:21:40 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2016-01-08 15:21:40 +0000 |
| commit | b1b2f87e37774ee61dc5c6ea3aa04a99a1adda66 (patch) | |
| tree | 9b89a8eff42185d0cd1039b45cc08fd41c903610 /clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get.cpp | |
| parent | 0e04f6c30f6ac9684c76f9637101203f46700f34 (diff) | |
| download | bcm5719-llvm-b1b2f87e37774ee61dc5c6ea3aa04a99a1adda66.tar.gz bcm5719-llvm-b1b2f87e37774ee61dc5c6ea3aa04a99a1adda66.zip | |
[clang-tidy] Use proper capitalization and punctuation for diagnostic messages.
Use diagnostic parameters where possible instead of string concatenation.
llvm-svn: 257176
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get.cpp')
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get.cpp b/clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get.cpp index 2840ab23192..701b9defc40 100644 --- a/clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get.cpp +++ b/clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get.cpp @@ -48,56 +48,56 @@ void Positive() { BarPtr u; // CHECK-FIXES: BarPtr u; BarPtr().get()->Do(); - // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: Redundant get() call on smart pointer. [readability-redundant-smartptr-get] + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: redundant get() call on smart pointer [readability-redundant-smartptr-get] // CHECK-MESSAGES: BarPtr().get()->Do(); // CHECK-FIXES: BarPtr()->Do(); u.get()->ConstDo(); - // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: redundant get() call // CHECK-MESSAGES: u.get()->ConstDo(); // CHECK-FIXES: u->ConstDo(); Bar& b = *BarPtr().get(); - // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: redundant get() call // CHECK-MESSAGES: Bar& b = *BarPtr().get(); // CHECK-FIXES: Bar& b = *BarPtr(); Bar& b2 = *std::unique_ptr<Bar>().get(); - // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: redundant get() call // CHECK-MESSAGES: Bar& b2 = *std::unique_ptr<Bar>().get(); // CHECK-FIXES: Bar& b2 = *std::unique_ptr<Bar>(); (*BarPtr().get()).ConstDo(); - // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant get() call // CHECK-MESSAGES: (*BarPtr().get()).ConstDo(); // CHECK-FIXES: (*BarPtr()).ConstDo(); (*std::unique_ptr<Bar>().get()).ConstDo(); - // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant get() call // CHECK-MESSAGES: (*std::unique_ptr<Bar>().get()).ConstDo(); // CHECK-FIXES: (*std::unique_ptr<Bar>()).ConstDo(); std::unique_ptr<Bar>* up; (*up->get()).Do(); - // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant get() call // CHECK-MESSAGES: (*up->get()).Do(); // CHECK-FIXES: (**up).Do(); int_ptr ip; int i = *ip.get(); - // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: redundant get() call // CHECK-MESSAGES: int i = *ip.get(); // CHECK-FIXES: int i = *ip; std::unique_ptr<int> uu; std::shared_ptr<double> *ss; bool bb = uu.get() == nullptr; - // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: redundant get() call // CHECK-MESSAGES: uu.get() == nullptr; // CHECK-FIXES: bool bb = uu == nullptr; bb = nullptr != ss->get(); - // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: Redundant get() call on smart pointer. + // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: redundant get() call // CHECK-MESSAGES: nullptr != ss->get(); // CHECK-FIXES: bb = nullptr != *ss; } |

