diff options
author | Mike Crowe <mac@mcrowe.com> | 2023-07-03 16:29:28 +0000 |
---|---|---|
committer | Piotr Zegar <me@piotrzegar.pl> | 2023-07-03 16:39:04 +0000 |
commit | 2806cf4b5430ad6d4d5aa2d501aea1de67272876 (patch) | |
tree | c1312807e00100561e72b8a4f9ff729c3e314661 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | a2ff2921e84aa435e124ad275f70855a185cfb1c (diff) | |
download | llvm-2806cf4b5430ad6d4d5aa2d501aea1de67272876.zip llvm-2806cf4b5430ad6d4d5aa2d501aea1de67272876.tar.gz llvm-2806cf4b5430ad6d4d5aa2d501aea1de67272876.tar.bz2 |
[clang-tidy] Fix width/precision argument order in modernize-use-std-print
Victor Zverovich pointed out[1] that printf takes the field width and
precision arguments before the value to be printed whereas std::print
takes the value first (unless positional arguments are used.) Many of
the test cases in use-std-print.cpp were incorrect.
Teach the check to rotate the arguments when required to correct
this. Correct the test cases and add more.
[1] https://github.com/fmtlib/fmt/pull/3515#issuecomment-1615259893
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D154283
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions