[clang-tidy] Adding Fuchsia checker for trailing returns
authorJulie Hockett <juliehockett@google.com>
Wed, 17 Jan 2018 21:18:15 +0000 (21:18 +0000)
committerJulie Hockett <juliehockett@google.com>
Wed, 17 Jan 2018 21:18:15 +0000 (21:18 +0000)
commit93a88e33ef5abb7fa7558b7c63585421502b2266
tree6d6323aba4dcbc298bf7e292d7175e7f520044c9
parent75d7ee6af579fe9f2624ae016c9fdad2d1192559
[clang-tidy] Adding Fuchsia checker for trailing returns

Adds a check to the Fuchsia module to warn if a function has a trailing
return.

See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for
reference.

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

llvm-svn: 322759
clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt
clang-tools-extra/clang-tidy/fuchsia/FuchsiaTidyModule.cpp
clang-tools-extra/clang-tidy/fuchsia/TrailingReturnCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/fuchsia/TrailingReturnCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/fuchsia-trailing-return.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/fuchsia-trailing-return.cpp [new file with mode: 0644]