aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2023-06-28 15:36:42 +0000
committerPiotr Zegar <me@piotrzegar.pl>2023-06-29 14:00:08 +0000
commit09ed2102eab5d3d3786046009ff0d6724118b76b (patch)
tree1572e43f2fa30f3407dd4360f53c8dc1076f8205 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent4546015f867ac19823116374bb1fb21f27bd2447 (diff)
downloadllvm-09ed2102eab5d3d3786046009ff0d6724118b76b.zip
llvm-09ed2102eab5d3d3786046009ff0d6724118b76b.tar.gz
llvm-09ed2102eab5d3d3786046009ff0d6724118b76b.tar.bz2
[clang-tidy] Fix modernize-use-std-print check when return value used
The initial implementation of the modernize-use-std-print check was capable of converting calls to printf (etc.) which used the return value to calls to std::print which has no return value, thus breaking the code. Use code inspired by the implementation of bugprone-unused-return-value check to ignore cases where the return value is used. Add appropriate lit test cases and documentation. Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D153860
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions