[clang-tidy] Fix RenamerClangTidyChecks suggesting invalid macro identifiers
authorLogan Smith <logan.r.smith0@gmail.com>
Fri, 7 Jan 2022 18:22:56 +0000 (10:22 -0800)
committerLogan Smith <logan.r.smith0@gmail.com>
Mon, 10 Jan 2022 18:35:04 +0000 (10:35 -0800)
commit988c3f5f96925e3bcd757043314e345b8f65589f
tree3ba34f06de87e594b6ccedebb4fda973b9719a70
parent68468bbe15d568550b4a20bc24010caae1bc469a
[clang-tidy] Fix RenamerClangTidyChecks suggesting invalid macro identifiers

This behavior was fixed for regular identifiers in
9f3edc323a88c1a179a0a5a9dc9a87a2964c0d48, but the same fix was not applied to
macro fixits. This addresses https://github.com/llvm/llvm-project/issues/52895.

Differential Revision: https://reviews.llvm.org/D116824
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-reserved-identifier.cpp