[all-commits] [llvm/llvm-project] 661d2c: Fix modernize-use-nodiscard for classes marked [[n...
AaronBallman via All-commits
all-commits at lists.llvm.org
Wed Oct 30 10:45:45 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 661d2ce619e05dc47a9a232333c01dcba445cd13
https://github.com/llvm/llvm-project/commit/661d2ce619e05dc47a9a232333c01dcba445cd13
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2019-10-30 (Wed, 30 Oct 2019)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/UseNodiscardCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/modernize-use-nodiscard.cpp
Log Message:
-----------
Fix modernize-use-nodiscard for classes marked [[nodiscard]]
Current implementation suggests to add [[nodiscard]] to methods even if the
return type is marked already as [[nodiscard]].
Patch by Eugene Sedykh.
More information about the All-commits
mailing list