[PATCH] D41815: [clang-tidy] implement check for goto

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 8 05:21:32 PST 2018


JonasToth added a comment.

In https://reviews.llvm.org/D41815#969626, @xazax.hun wrote:

> A high level comment: while it is very easy to get all the gotos using grep, it is not so easy to get all the labels. So for this check to be complete, I think it would be useful to also find labels (possibly having a configuration option for that).


Agreed. I will add warnings for jump labels too. Do you think a note where a goto jumps to would be helpful too?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D41815





More information about the cfe-commits mailing list