hanchenye-llvm-project/clang-tools-extra/clang-tidy/hicpp
Jonas Toth f22f3489d7 [clang-tidy] implement check for goto
The usage of `goto` is discourage in C++ since forever. This check implements
a warning for every `goto`. Even though there are (rare) valid use cases for
`goto`, better high level constructs should be used.

`goto` is used sometimes in C programs to free resources at the end of 
functions in the case of errors. This pattern is better implemented with
RAII in C++.

Reviewers: aaron.ballman, alexfh, hokein

Reviewed By: aaron.ballman

Subscribers: lebedev.ri, jbcoe, Eugene.Zelenko, klimek, nemanjai, mgorny, xazax.hun, kbarton, cfe-commits

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

llvm-svn: 322626
2018-01-17 10:27:41 +00:00
..
CMakeLists.txt [clang-tidy] Move more checks from misc- to performance- 2017-11-28 16:41:03 +00:00
ExceptionBaseclassCheck.cpp [clang-tidy] Improve hicpp-exception-baseclass to handle generic code better 2017-08-30 15:59:01 +00:00
ExceptionBaseclassCheck.h Add hicpp-exception-baseclass to the HIC++ module. 2017-08-11 16:31:51 +00:00
HICPPTidyModule.cpp [clang-tidy] implement check for goto 2018-01-17 10:27:41 +00:00
LICENSE.TXT
NoAssemblerCheck.cpp
NoAssemblerCheck.h
SignedBitwiseCheck.cpp [clang-tidy] Fix bug 34845, offending standard bitmask types 2017-10-27 14:44:08 +00:00
SignedBitwiseCheck.h [clang-tidy] hicpp bitwise operations on signed integers 2017-08-30 13:32:05 +00:00