aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorNicolas van Kempen <nvankempen@fb.com>2022-07-03 16:27:57 -0600
committerRichard <legalize@xmission.com>2022-07-03 16:30:17 -0600
commitf7a80c3d08d4821e621fc88d6a2e435291f82dff (patch)
tree3a725e5ab823768e3039578a5f53a98ceacc5f09 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parenta65a3bffd31f57243929b0f50abbd90bd626faee (diff)
downloadllvm-f7a80c3d08d4821e621fc88d6a2e435291f82dff.zip
llvm-f7a80c3d08d4821e621fc88d6a2e435291f82dff.tar.gz
llvm-f7a80c3d08d4821e621fc88d6a2e435291f82dff.tar.bz2
[clang-tidy] Properly forward clang-tidy output when running tests
When running tests, the check_clang_tidy script encodes the output string, making it hard to read when debugging checks. This removes the .encode() call. Test Plan: Making a new default check for testing (as of right now, it includes a failing test): [~/llvm-project/clang-tools-extra] python3 clang-tidy/add_new_check.py bugprone example <...> Pre-changes: [~/llvm-project/build] ninja check-clang-tools <...> ------------------------ clang-tidy output ----------------------- b"1 warning generated.\n/data/users/nvankempen/llvm-project/build/Debug/tools/clang/tools/extra/test/clang-tidy/checkers/Output/bugprone-example.cpp.tmp.cpp:4:6: warning: function 'f' is insufficiently awesome [bugprone-example]\nvoid f();\n ^\n/data/users/nvankempen/llvm-project/build/Debug/tools/clang/tools/extra/test/clang-tidy/checkers/Output/bugprone-example.cpp.tmp.cpp:4:6: note: insert 'awesome'\nvoid f();\n ^\n awesome_\n" ------------------------------------------------------------------ <...> Post-changes: [~/llvm-project/build] ninja check-clang-tools <...> ------------------------ clang-tidy output ----------------------- 1 warning generated. /data/users/nvankempen/llvm-project/build/Debug/tools/clang/tools/extra/test/clang-tidy/checkers/Output/bugprone-example.cpp.tmp.cpp:4:6: warning: function 'f' is insufficiently awesome [bugprone-example] void f(); ^ /data/users/nvankempen/llvm-project/build/Debug/tools/clang/tools/extra/test/clang-tidy/checkers/Output/bugprone-example.cpp.tmp.cpp:4:6: note: insert 'awesome' void f(); ^ awesome_ ------------------------------------------------------------------ <...> Differential Revision: https://reviews.llvm.org/D127807
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions