[all-commits] [llvm/llvm-project] 3f6a8d: [clang-tidy] improve readability-identifier-naming...

Alexis Murzeau via All-commits all-commits at lists.llvm.org
Fri Feb 24 11:18:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f6a8d52d64553239aade3a425a5f56ebe88bc9e
      https://github.com/llvm/llvm-project/commit/3f6a8d52d64553239aade3a425a5f56ebe88bc9e
  Author: Alexis Murzeau <amubtdx at gmail.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming/hungarian-notation2/.clang-tidy
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-hungarian-notation-cfgfile.cpp

  Log Message:
  -----------
  [clang-tidy] improve readability-identifier-naming hungarian options test

Adjust identifier-naming-hungarian-notation-cfgfile test with
changes for all configs in .clang-tidy to ensure they are really taken
into account.

This is done this way:

- Set all HungarianNotation.* options to `cust` prefix + their default
  value.
- Set TreatStructAsClass to true as it defaults to false.
- Because of the TreatStructAsClass change, add a test to check that
  structs are really checked the same way as classes (see
  `struct StructCase`).

Also, `TreatStructAsClass` was wrongly named in the test's .clang-tidy file
and was fixed (it is in `General`, not in `Options`).

Depends on D144431

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D144510




More information about the All-commits mailing list