llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines
Felix Berger ffae543b39 [clang-tidy] ClangTidy check to flag uninitialized builtin and pointer fields.
Summary:
This patch is a continuation of http://reviews.llvm.org/D10553 by Jonathan B Coe.

The main additions are:

1. For C++11 the check suggests in-class field initialization as fix. This
makes the fields future proof towards the addition of new constructors.
2 For older language versions the fields are added in the right position
in the initializer list with more tests.
3. User documentation.

Reviewers: alexfh, jbcoe

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D16517

llvm-svn: 260873
2016-02-15 04:27:56 +00:00
..
CMakeLists.txt [clang-tidy] ClangTidy check to flag uninitialized builtin and pointer fields. 2016-02-15 04:27:56 +00:00
CppCoreGuidelinesTidyModule.cpp [clang-tidy] ClangTidy check to flag uninitialized builtin and pointer fields. 2016-02-15 04:27:56 +00:00
ProBoundsArrayToPointerDecayCheck.cpp Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not consider const" 2015-11-17 23:35:39 +00:00
ProBoundsArrayToPointerDecayCheck.h Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not consider const" 2015-11-17 23:35:39 +00:00
ProBoundsConstantArrayIndexCheck.cpp [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index 2015-12-13 22:08:26 +00:00
ProBoundsConstantArrayIndexCheck.h [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index 2015-12-13 22:08:26 +00:00
ProBoundsPointerArithmeticCheck.cpp [clang-tidy] cppcoreguidelines-pro-bounds-pointer-arithmetic: ignore generated pointer arithmetic 2015-11-26 22:32:11 +00:00
ProBoundsPointerArithmeticCheck.h [clang-tidy] new check cppcoreguidelines-pro-bounds-pointer-arithmetic 2015-10-12 21:53:19 +00:00
ProTypeConstCastCheck.cpp Fixing links and reformatting code; NFC. 2015-10-07 20:33:36 +00:00
ProTypeConstCastCheck.h Fixing links and reformatting code; NFC. 2015-10-07 20:33:36 +00:00
ProTypeCstyleCastCheck.cpp [clang-tidy] add new check cppcoreguidelines-pro-type-cstyle-cast 2015-11-08 21:10:39 +00:00
ProTypeCstyleCastCheck.h [clang-tidy] add new check cppcoreguidelines-pro-type-cstyle-cast 2015-11-08 21:10:39 +00:00
ProTypeMemberInitCheck.cpp [clang-tidy] ClangTidy check to flag uninitialized builtin and pointer fields. 2016-02-15 04:27:56 +00:00
ProTypeMemberInitCheck.h [clang-tidy] ClangTidy check to flag uninitialized builtin and pointer fields. 2016-02-15 04:27:56 +00:00
ProTypeReinterpretCastCheck.cpp Fixing links and reformatting code; NFC. 2015-10-07 20:33:36 +00:00
ProTypeReinterpretCastCheck.h Fixing links and reformatting code; NFC. 2015-10-07 20:33:36 +00:00
ProTypeStaticCastDowncastCheck.cpp [clang-tidy] add check cppcoreguidelines-pro-type-static-cast-downcast 2015-10-12 20:46:53 +00:00
ProTypeStaticCastDowncastCheck.h [clang-tidy] add check cppcoreguidelines-pro-type-static-cast-downcast 2015-10-12 20:46:53 +00:00
ProTypeUnionAccessCheck.cpp [clang-tidy] add check cppcoreguidelines-pro-type-union-access 2015-10-16 18:46:30 +00:00
ProTypeUnionAccessCheck.h [clang-tidy] add check cppcoreguidelines-pro-type-union-access 2015-10-16 18:46:30 +00:00
ProTypeVarargCheck.cpp [clang-tidy] add check cppcoreguidelines-pro-type-vararg 2015-10-21 20:09:02 +00:00
ProTypeVarargCheck.h [clang-tidy] add check cppcoreguidelines-pro-type-vararg 2015-10-21 20:09:02 +00:00