[all-commits] [llvm/llvm-project] 85fca8: [clang-tidy] Fix crash in readability-identifier-n...

Purna Chandra via All-commits all-commits at lists.llvm.org
Tue Sep 22 22:41:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85fca8f1f49103bd709e33a308356c67f04de2be
      https://github.com/llvm/llvm-project/commit/85fca8f1f49103bd709e33a308356c67f04de2be
  Author: Purna Chandra <vennelapurnachandra2006 at gmail.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.md
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp

  Log Message:
  -----------
  [clang-tidy] Fix crash in readability-identifier-naming (#220221)

This PR contains the fix for the `readability-identifier-naming` crash.
The crash happens because the checker calls `hasMemberName` on a base
class without checking if that base class actually has a definition
first (like when it's just forward-declared). I added a
`RD->hasDefinition()` guard to fix it.

Fixes #213948



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list