[all-commits] [llvm/llvm-project] 625901: [clang-tidy] Fix false positive in readability-ide...

FabianWolff via All-commits all-commits at lists.llvm.org
Fri Nov 19 01:32:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6259016361345e09f0607ef4e037e00bcbe4bd40
      https://github.com/llvm/llvm-project/commit/6259016361345e09f0607ef4e037e00bcbe4bd40
  Author: Fabian Wolff <fabian.wolff at alumni.ethz.ch>
  Date:   2021-11-19 (Fri, 19 Nov 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 false positive in readability-identifier-naming check involving override attribute

Overriding methods should not get a readability-identifier-naming
warning because the issue can only be fixed in the base class; but the
current check for whether a method is overriding does not take the
override attribute into account.

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




More information about the All-commits mailing list