[PATCH] D76083: [clang-tidy] Expand the list of functions in bugprone-unused-return-value
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 12 15:12:17 PDT 2020
alexfh added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp:57
+ "::std::map::lower_bound;"
+ "::std::move;"
+ "::std::multimap::equal_range;"
----------------
This will also affect "the other std::move" (https://en.cppreference.com/w/cpp/algorithm/move).
================
Comment at: clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp:98
+ "::access;"
+ "::bind;"
+ "::connect;"
----------------
bind has a side effect and returns a success status. Thus, the result being unused isn't necessarily a bug. Same for `connect`. And probably for `setjmp` as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76083/new/
https://reviews.llvm.org/D76083
More information about the cfe-commits
mailing list