[all-commits] [llvm/llvm-project] fa8e74: [clang-tidy] readability-identifier-naming - fix S...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sun Sep 3 09:40:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa8e74073762300d07b02adec42c629daf82c44b
      https://github.com/llvm/llvm-project/commit/fa8e74073762300d07b02adec42c629daf82c44b
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-09-03 (Sun, 03 Sep 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming/hungarian-notation1/.clang-tidy
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-hungarian-notation-c-language.c
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-hungarian-notation.cpp

  Log Message:
  -----------
  [clang-tidy] readability-identifier-naming - fix StructCase and UnionCase in C (#65202)

In C struct are visible as RecordDecl, not as CXXRecordDecl, this type
of declaration were not supported in this check before. Changing check
to support it. Added tests.

Fixes: #55422




More information about the All-commits mailing list