[all-commits] [llvm/llvm-project] 9a8d33: [clang-tidy] Escape diagnostic messages before pas...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Wed May 4 13:57:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9a8d33dbd8a851ccb9821d5d1346aa225398cadc
https://github.com/llvm/llvm-project/commit/9a8d33dbd8a851ccb9821d5d1346aa225398cadc
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-05-04 (Wed, 04 May 2022)
Changed paths:
M clang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
M clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp
Log Message:
-----------
[clang-tidy] Escape diagnostic messages before passing to `diag` in Transformer.
Messages generated by Transformer rules may have `%` in them, which
needs to be escaped before being passed to `diag`, which interprets them
specially (and crashes if they are misused).
Differential Revision: https://reviews.llvm.org/D124952
More information about the All-commits
mailing list