[clang-tools-extra] [clang-tidy] Fix false positive in misc-redundant-expression with type aliases (PR #198085)

Peiqi Li via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 03:12:22 PDT 2026


voyager-jhk wrote:

@vbvictor @zeyi2 Following mizvekov's advice, I now use the AST Printer to compare the NestedNameSpecifier and TemplateArguments.

This safely preserves the sugared types, while natively normalizing all whitespaces and newlines.

Multiline tests added. PTAL!

https://github.com/llvm/llvm-project/pull/198085


More information about the cfe-commits mailing list