[all-commits] [llvm/llvm-project] f58f39: Fix readability-const-return-type identifying the ...

AaronBallman via All-commits all-commits at lists.llvm.org
Tue Dec 24 07:11:03 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f58f39137c6e5a324ef684b1d72bddae244aa94d
      https://github.com/llvm/llvm-project/commit/f58f39137c6e5a324ef684b1d72bddae244aa94d
  Author: Ilya Mirsky <ilya.mirsky at ericsson.com>
  Date:   2019-12-24 (Tue, 24 Dec 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/ConstReturnTypeCheck.cpp
    M clang-tools-extra/clang-tidy/utils/LexerUtils.cpp
    M clang-tools-extra/clang-tidy/utils/LexerUtils.h
    M clang-tools-extra/test/clang-tidy/checkers/readability-const-return-type.cpp

  Log Message:
  -----------
  Fix readability-const-return-type identifying the wrong `const` token

Replace tidy::utils::lexer::getConstQualifyingToken with a corrected and also
generalized to other qualifiers variant - getQualifyingToken.

Fixes PR44326




More information about the All-commits mailing list