[clang-tools-extra] [clang-tidy] Fix readability-identifier-naming FP on function templates (PR #198517)

via cfe-commits cfe-commits at lists.llvm.org
Sat May 23 00:51:28 PDT 2026


CarvedCoder wrote:

I have tried two approaches:

Filtering incomplete records in findStyleKind(), which suppresses standalone forward declaration warnings cleanly, but breaks fix-it propagation to canonical forward declarations.

Filtering in getDeclFailureInfo(), which preserves the canonical declaration behavior, but breaks cases like:
struct forward_declared_as_struct;
class forward_declared_as_struct {};

where the forward declaration no longer gets renamed.

Is there a place in the pipeline to suppress diagnostics for standalone forward declarations while still preserving rename propagation across redeclarations?

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


More information about the cfe-commits mailing list