llvm-project/clang-tools-extra/clang-tidy/bugprone
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
..
ArgumentCommentCheck.cpp [clang-tidy] rename_check.py misc-argument-comment bugprone-argument-comment 2017-11-23 17:02:48 +00:00
ArgumentCommentCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
AssertSideEffectCheck.cpp [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
AssertSideEffectCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
BoolPointerImplicitConversionCheck.cpp [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
BoolPointerImplicitConversionCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
BugproneTidyModule.cpp [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
CMakeLists.txt [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
CopyConstructorInitCheck.cpp [clang-tidy] Add a check for undelegated copy of base classes 2017-11-17 12:23:30 +00:00
CopyConstructorInitCheck.h [clang-tidy] Add a check for undelegated copy of base classes 2017-11-17 12:23:30 +00:00
DanglingHandleCheck.cpp [clang-tidy] Fix DanglingHandleCheck for the correct conversion operation between basic_string and basic_string_view. 2018-01-08 15:59:08 +00:00
DanglingHandleCheck.h [clang-tidy] rename_check.py misc-dangling-handle bugprone-dangling-handle 2017-11-24 09:52:05 +00:00
FoldInitTypeCheck.cpp [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
FoldInitTypeCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
ForwardDeclarationNamespaceCheck.cpp [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
ForwardDeclarationNamespaceCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
ForwardingReferenceOverloadCheck.cpp Rename a few checks from misc- to bugprone-. 2018-02-28 14:47:20 +00:00
ForwardingReferenceOverloadCheck.h Rename a few checks from misc- to bugprone-. 2018-02-28 14:47:20 +00:00
InaccurateEraseCheck.cpp [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
InaccurateEraseCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
IncorrectRoundingsCheck.cpp clang-tidy/rename_check.py misc-incorrect-roundings bugprone-incorrect-roundings 2018-01-30 15:12:24 +00:00
IncorrectRoundingsCheck.h Fixed filename in a comment. NFC 2018-03-15 08:26:58 +00:00
IntegerDivisionCheck.cpp [clang-tidy] Add integer division check 2017-08-10 13:30:30 +00:00
IntegerDivisionCheck.h [clang-tidy] Add integer division check 2017-08-10 13:30:30 +00:00
LambdaFunctionNameCheck.cpp Fix up after clang r331155. 2018-04-30 05:26:07 +00:00
LambdaFunctionNameCheck.h Rename a few checks from misc- to bugprone-. 2018-02-28 14:47:20 +00:00
MacroParenthesesCheck.cpp [clang-tidy] rename_check.py {misc,bugprone}-macro-parentheses 2018-03-15 08:25:39 +00:00
MacroParenthesesCheck.h [clang-tidy] rename_check.py {misc,bugprone}-macro-parentheses 2018-03-15 08:25:39 +00:00
MacroRepeatedSideEffectsCheck.cpp Rename a few checks from misc- to bugprone-. 2018-02-28 14:47:20 +00:00
MacroRepeatedSideEffectsCheck.h Rename a few checks from misc- to bugprone-. 2018-02-28 14:47:20 +00:00
MisplacedOperatorInStrlenInAllocCheck.cpp [clang-tidy] Detect bugs in bugprone-misplaced-operator-in-strlen-in-alloc even in the case the allocation function is called using a constant function pointer 2017-11-23 13:12:25 +00:00
MisplacedOperatorInStrlenInAllocCheck.h [clang-tidy] Misplaced Operator in Strlen in Alloc 2017-11-23 12:33:12 +00:00
MisplacedWideningCastCheck.cpp Rename a few checks from misc- to bugprone-. 2018-02-28 14:47:20 +00:00
MisplacedWideningCastCheck.h Rename a few checks from misc- to bugprone-. 2018-02-28 14:47:20 +00:00
MoveForwardingReferenceCheck.cpp [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
MoveForwardingReferenceCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
MultipleStatementMacroCheck.cpp Fix up after clang r331155. 2018-04-30 05:26:07 +00:00
MultipleStatementMacroCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
ParentVirtualCallCheck.cpp [clang-tidy] Fix ParentVirtualCallCheck for old MSVS compilers 2018-04-13 08:43:47 +00:00
ParentVirtualCallCheck.h [clang-tidy] Check if grand-..parent's virtual method was called instead of overridden parent's. 2018-04-06 20:02:50 +00:00
SizeofContainerCheck.cpp [clang-tidy] rename_check.py misc-sizeof-container bugprone-sizeof-container 2018-03-15 08:26:47 +00:00
SizeofContainerCheck.h [clang-tidy] rename_check.py misc-sizeof-container bugprone-sizeof-container 2018-03-15 08:26:47 +00:00
SizeofExpressionCheck.cpp [clang-tidy] Check for sizeof that call functions 2018-04-03 15:10:24 +00:00
SizeofExpressionCheck.h [clang-tidy] Check for sizeof that call functions 2018-04-03 15:10:24 +00:00
StringConstructorCheck.cpp [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
StringConstructorCheck.h [clang-tidy] rename_check.py misc-string-constructor bugprone-string-constructor 2017-11-23 13:49:14 +00:00
StringIntegerAssignmentCheck.cpp Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
StringIntegerAssignmentCheck.h Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
StringLiteralWithEmbeddedNulCheck.cpp Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
StringLiteralWithEmbeddedNulCheck.h Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
SuspiciousEnumUsageCheck.cpp Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
SuspiciousEnumUsageCheck.h Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
SuspiciousMemsetUsageCheck.cpp
SuspiciousMemsetUsageCheck.h
SuspiciousMissingCommaCheck.cpp Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
SuspiciousMissingCommaCheck.h Rename more checks from misc- to bugprone-. 2018-02-28 23:30:29 +00:00
SuspiciousSemicolonCheck.cpp [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
SuspiciousSemicolonCheck.h [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
SuspiciousStringCompareCheck.cpp [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
SuspiciousStringCompareCheck.h [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
SwappedArgumentsCheck.cpp [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
SwappedArgumentsCheck.h [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
TerminatingContinueCheck.cpp [clang-tidy] Add terminating continue check 2018-05-14 10:10:02 +00:00
TerminatingContinueCheck.h [clang-tidy] Add terminating continue check 2018-05-14 10:10:02 +00:00
ThrowKeywordMissingCheck.cpp [clang-tidy] New checker for exceptions that are created but not thrown 2018-02-15 09:08:51 +00:00
ThrowKeywordMissingCheck.h [clang-tidy] New checker for exceptions that are created but not thrown 2018-02-15 09:08:51 +00:00
UndefinedMemoryManipulationCheck.cpp [clang-tidy] bugprone-undefined-memory-manipulation: include type into the message 2017-08-24 12:11:05 +00:00
UndefinedMemoryManipulationCheck.h
UndelegatedConstructorCheck.cpp [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
UndelegatedConstructorCheck.h [clang-tidy] Another batch of checks to rename from misc- to bugprone-. 2018-02-28 23:47:15 +00:00
UnusedRaiiCheck.cpp [clang-tidy] rename_check.py misc-unused-raii bugprone-unused-raii --check_class_name=UnusedRAIICheck 2018-03-15 08:27:42 +00:00
UnusedRaiiCheck.h [clang-tidy] rename_check.py misc-unused-raii bugprone-unused-raii --check_class_name=UnusedRAIICheck 2018-03-15 08:27:42 +00:00
UnusedReturnValueCheck.cpp [clang-tidy] Improve bugprone-unused-return-value check 2018-04-24 21:25:16 +00:00
UnusedReturnValueCheck.h [clang-tidy] New check bugprone-unused-return-value 2018-03-19 13:02:32 +00:00
UseAfterMoveCheck.cpp [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
UseAfterMoveCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00
VirtualNearMissCheck.cpp [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
VirtualNearMissCheck.h [clang-tidy] Move a few more checks from misc to bugprone. 2017-11-24 14:16:29 +00:00