[PATCH] D82162: [clang-tidy] RenamerClangTidy wont emit fixes in scratch space

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 02:07:52 PDT 2020


njames93 created this revision.
njames93 added reviewers: aaron.ballman, alexfh, gribozavr2.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.

Prevent fixes being displayed if usages are found in the scratch buffer.
See Fix-It hints are being generated in the ScratchBuffer <https://bugs.llvm.org/show_bug.cgi?id=46219>.
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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82162

Files:
  clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
  clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82162.271957.patch
Type: text/x-patch
Size: 6237 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200619/91e1476a/attachment.bin>


More information about the cfe-commits mailing list