[all-commits] [llvm/llvm-project] 604352: [clang-tidy] Don't check decltype return types in ...

Evgeny Shulgin via All-commits all-commits at lists.llvm.org
Thu Mar 17 04:30:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6043520c207269ccdbfe70e63ab48118d5735deb
      https://github.com/llvm/llvm-project/commit/6043520c207269ccdbfe70e63ab48118d5735deb
  Author: Evgeny Shulgin <izaronplatz at gmail.com>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

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

  Log Message:
  -----------
  [clang-tidy] Don't check decltype return types in `readability-const-return-type`

The checker removes `const`s that are superfluos and badly affect
readability. `decltype(auto)`/`decltype(expr)` are often const-qualified, but
have no effect on readability and usually can't stop being const-qualified
without significant code change.

Fixes https://github.com/llvm/llvm-project/issues/52890

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list