File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ IgnoredRemoveResultCheck::IgnoredRemoveResultCheck(llvm::StringRef Name,
14
14
ClangTidyContext *Context)
15
15
: UnusedReturnValueCheck(Name, Context,
16
16
{
17
- " ::std::remove" ,
18
- " ::std::remove_if" ,
19
- " ::std::unique" ,
17
+ " ::std::remove$ " ,
18
+ " ::std::remove_if$ " ,
19
+ " ::std::unique$ " ,
20
20
}) {
21
21
// The constructor for ClangTidyCheck needs to have been called
22
22
// before we can access options via Options.get().
Original file line number Diff line number Diff line change @@ -210,6 +210,10 @@ Changes in existing checks
210
210
- Improved :doc: `google-runtime-int <clang-tidy/checks/google/runtime-int >`
211
211
check performance through optimizations.
212
212
213
+ - Improved :doc: `hicpp-ignored-remove-result <clang-tidy/checks/hicpp/ignored-remove-result >`
214
+ check by ignoring other functions with same prefixes as the target specific
215
+ functions.
216
+
213
217
- Improved :doc: `llvm-header-guard
214
218
<clang-tidy/checks/llvm/header-guard>` check by replacing the local
215
219
option `HeaderFileExtensions ` by the global option of the same name.
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ ForwardIt unique(ForwardIt, ForwardIt);
15
15
template <class InputIt , class T >
16
16
InputIt find (InputIt, InputIt, const T&);
17
17
18
+ struct unique_disposable {
19
+ void * release ();
20
+ };
21
+
18
22
class error_code {
19
23
};
20
24
@@ -63,4 +67,6 @@ void noWarning() {
63
67
// bugprone-unused-return-value's checked return types.
64
68
errorFunc ();
65
69
(void ) errorFunc ();
70
+
71
+ std::unique_disposable{}.release ();
66
72
}
You can’t perform that action at this time.
0 commit comments