[all-commits] [llvm/llvm-project] 0333dd: [clang-tidy] Fix readability-identifer-naming dupl...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Mar 15 07:21:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0333dde923c42219863f314d6c9fc0dcd352ef02
      https://github.com/llvm/llvm-project/commit/0333dde923c42219863f314d6c9fc0dcd352ef02
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-03-15 (Mon, 15 Mar 2021)

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

  Log Message:
  -----------
  [clang-tidy] Fix readability-identifer-naming duplicating prefix or suffix for replacements.

If a identifier has a correct prefix/suffix but a bad case, the fix won't strip them when computing the correct case, leading to duplication when the are added back.

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list