llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines
Clement Courbet 1c0a15c444 [clang-tidy] new cppcoreguidelines-narrowing-conversions check.
Summary:
Checks for narrowing conversions, e.g.

int i = 0;
i += 0.1;

This has what some might consider false positives for:
i += ceil(d);

Reviewers: alexfh, hokein

Subscribers: srhines, nemanjai, mgorny, JDevlieghere, xazax.hun, kbarton

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

llvm-svn: 333066
2018-05-23 07:58:41 +00:00
..
AvoidGotoCheck.cpp [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
AvoidGotoCheck.h [clang-tidy] implement check for goto 2018-01-17 10:27:41 +00:00
CMakeLists.txt [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
CppCoreGuidelinesTidyModule.cpp [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
InterfacesGlobalInitCheck.cpp [clang-tidy] cppcoreguidelines-interfaces-global-init 2016-04-08 09:51:06 +00:00
InterfacesGlobalInitCheck.h [clang-tidy] cppcoreguidelines-interfaces-global-init 2016-04-08 09:51:06 +00:00
NarrowingConversionsCheck.cpp [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
NarrowingConversionsCheck.h [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
NoMallocCheck.cpp Removed Unicode BOM. 2018-01-25 15:09:33 +00:00
NoMallocCheck.h Spelling mistakes in comments. NFCI. 2017-03-30 13:10:33 +00:00
OwningMemoryCheck.cpp [clang-tidy] introduce legacy resource functions to 'cppcoreguidelines-owning-memory' 2017-10-18 16:14:15 +00:00
OwningMemoryCheck.h [clang-tidy] introduce legacy resource functions to 'cppcoreguidelines-owning-memory' 2017-10-18 16:14:15 +00:00
ProBoundsArrayToPointerDecayCheck.cpp [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
ProBoundsArrayToPointerDecayCheck.h [clang-tidy] remove trailing whitespaces and retab 2016-08-01 12:06:18 +00:00
ProBoundsConstantArrayIndexCheck.cpp [clang-tidy] Unify the way IncludeStyle and HeaderFileExtesions options are used 2017-07-20 12:02:03 +00:00
ProBoundsConstantArrayIndexCheck.h [clang-tidy] Cleanup namespace in utils folder. 2016-05-03 02:54:05 +00:00
ProBoundsPointerArithmeticCheck.cpp [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ProBoundsPointerArithmeticCheck.h [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ProTypeConstCastCheck.cpp [clang-tidy] remove trailing whitespaces and retab 2016-08-01 12:06:18 +00:00
ProTypeConstCastCheck.h [clang-tidy] remove trailing whitespaces and retab 2016-08-01 12:06:18 +00:00
ProTypeCstyleCastCheck.cpp [clang-tidy] Cleaning up language options. 2016-09-24 02:13:45 +00:00
ProTypeCstyleCastCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
ProTypeMemberInitCheck.cpp [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init if using C++2a 2018-01-23 17:13:57 +00:00
ProTypeMemberInitCheck.h Fix some false-positives with cppcoreguidelines-pro-type-member-init. Handle classes with default constructors that are defaulted or are not present in the AST. 2016-10-04 14:48:05 +00:00
ProTypeReinterpretCastCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
ProTypeReinterpretCastCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
ProTypeStaticCastDowncastCheck.cpp [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ProTypeStaticCastDowncastCheck.h [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ProTypeUnionAccessCheck.cpp [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ProTypeUnionAccessCheck.h [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ProTypeVarargCheck.cpp [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ProTypeVarargCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
SlicingCheck.cpp [clang-tidy] cppcoreguidelines-slicing: display discarded state size in bytes 2016-12-22 14:12:31 +00:00
SlicingCheck.h Revert "Revert "[clang-tidy] new cppcoreguidelines-slicing"" 2016-07-22 13:45:00 +00:00
SpecialMemberFunctionsCheck.cpp Don't make unqualified calls to functions that could well be found via 2017-03-21 20:15:42 +00:00
SpecialMemberFunctionsCheck.h Apply clang-tidy's performance-unnecessary-value-param to clang-tidy. 2017-03-21 21:34:58 +00:00