[clang-tidy] RenamerClangTidy wont emit fixes in scratch space
authorNathan James <n.james93@hotmail.co.uk>
Mon, 22 Jun 2020 17:26:17 +0000 (18:26 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Mon, 22 Jun 2020 17:26:18 +0000 (18:26 +0100)
commit6ae0f5f3e1d465e6a663a50f2cc077671bc6d097
treed3c4c3d35208e7fa6c73d12ccf7518e0cc33c3a6
parent9a8b0411448062e7231a0ee26bd14a3d1c097e9e
[clang-tidy] RenamerClangTidy wont emit fixes in scratch space

Prevent fixes being displayed if usages are found in the scratch buffer.
See [[ https://bugs.llvm.org/show_bug.cgi?id=46219 | Fix-It hints are being generated in the ScratchBuffer ]].
It may be wise down the line to put in a general fix in clang-tidy to prevent ScratchBuffer replacements being applied, but for now this will help.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D82162
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp