[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 13:13:33 PST 2018


JonasToth added inline comments.


================
Comment at: clang-tidy/bugprone/UnusedReturnValueCheck.cpp:47
+                            "^::std::launder$|"
+                            "^::std::unique_ptr<.*>::release$|"
+                            "^::std::.*::allocate$|"
----------------
Is the following type a problem for you check?

`std::unique_ptr<std::vector<int>>` should not be matchable with regex but I don't know if that would have an impact on the functionality.


https://reviews.llvm.org/D41655





More information about the cfe-commits mailing list