[all-commits] [llvm/llvm-project] 715cf3: [clang-tidy] Fix identifier-naming style lookup in...

savchart via All-commits all-commits at lists.llvm.org
Sun Jul 12 09:22:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 715cf355b1324117a4456cd79bd05df39f65643c
      https://github.com/llvm/llvm-project/commit/715cf355b1324117a4456cd79bd05df39f65643c
  Author: savchart <metaartem at protonmail.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming-macro-argument/.clang-tidy
    A clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming-macro-argument/include/macro.h
    A clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming-macro-argument/subdir/.clang-tidy
    A clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-macro-argument.cpp

  Log Message:
  -----------
  [clang-tidy] Fix identifier-naming style lookup in macro arguments (#206809)

Problem statement: the var lambda parameter was written inside a macro
argument. The declaration location was treated as a macro location, and
the filename lookup returned an empty filename for that location.

Fix: use a file location for the style lookup. Alternative options
considered were spelling location and expansion location.

Fixes #154957

Assisted-by: GPT

---------

Co-authored-by: Zeyi Xu <mitchell.xu2 at gmail.com>
Co-authored-by: Baranov Victor <bar.victor.2002 at gmail.com>



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