[all-commits] [llvm/llvm-project] 844a8d: Fix false positives in `fuchsia-trailing-return` c...

FabianWolff via All-commits all-commits at lists.llvm.org
Wed Dec 1 12:28:49 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 844a8d3cecb4cc40e5d9694bcf111518910ea2ff
  Author: Fabian Wolff <fabian.wolff at alumni.ethz.ch>
  Date:   2021-12-01 (Wed, 01 Dec 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/fuchsia/TrailingReturnCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/fuchsia-trailing-return.cpp

  Log Message:
  Fix false positives in `fuchsia-trailing-return` check involving deduction guides

Fixes PR#47614. Deduction guides, implicit or user-defined, look like
function declarations in the AST. They aren't really functions, though,
and they always have a trailing return type, so it doesn't make sense
to issue this warning for them.

More information about the All-commits mailing list