[PATCH] D53025: [clang-tidy] implement new check for const return types.

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 22 13:48:44 PDT 2018


JonasToth added a comment.

In https://reviews.llvm.org/D53025#1270784, @ymandel wrote:

> Correction: the code *catches* the trailing return cases, I just couldn't find a way to *fix* them; specifically, I was not able to get the necessary source ranges to re-lex the trailing return type.


There is `fuchsia/TrailingReturnCheck.cpp` which you look if there is something, I am currently not aware of other checks that handle trailing return types in any way.
In principle it is ok to leave these for future improvements, but should be noted as limitation in the docs.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D53025





More information about the cfe-commits mailing list