llvm-project/clang-tools-extra/clang-tidy
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
..
abseil [clang-tidy] fix header guard 2018-03-09 11:47:37 +00:00
android [clang-tidy] Add a `android-comparison-in-temp-failure-retry` check 2018-04-10 21:22:22 +00:00
boost [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
bugprone [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
cert [clang-tidy] Fix link error in clang-tidy after the recent check renames. 2017-11-27 15:17:13 +00:00
cppcoreguidelines [clang-tidy] new cppcoreguidelines-narrowing-conversions check. 2018-05-23 07:58:41 +00:00
fuchsia Reland "[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module" 2018-05-11 21:08:59 +00:00
google [clang-tidy/google-readability-casting] Disable check for Objective-C++ 2018-05-16 20:07:19 +00:00
hicpp [clang-tidy] add missing assignment operations in hicpp-signed-bitwise 2018-04-11 09:53:08 +00:00
llvm Reland "[tools] Updating PPCallbacks::InclusionDirective calls" 2018-05-10 19:13:14 +00:00
misc Do not warn on unused parameters for functions with empty bodies. 2018-05-09 13:20:03 +00:00
modernize Reland "[tools] Updating PPCallbacks::InclusionDirective calls" 2018-05-10 19:13:14 +00:00
mpi modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00
objc add AR to acronyms of clang-tidy property check 2018-05-15 18:13:51 +00:00
performance Update to match clang r331428. 2018-05-03 03:59:50 +00:00
plugin [clang-tidy] Add check: replace string::find(...) == 0 with absl::StartsWith 2018-03-09 10:47:14 +00:00
portability [clang-tidy] Add "portability" module and rename readability-simd-intrinsics to portability-simd-intrinsics 2018-03-07 16:57:42 +00:00
readability [clang-tidy] SimplifyBoolenExpr doesn't add parens if unary negotiation is of ExprWithCleanups type 2018-05-22 17:24:28 +00:00
tool [clang-tidy] Add a flag to enable alpha checkers 2018-05-17 14:04:27 +00:00
utils Reland "[tools] Updating PPCallbacks::InclusionDirective calls" 2018-05-10 19:13:14 +00:00
zircon [clang-tidy] Add Zircon module to clang-tidy 2018-03-14 23:47:50 +00:00
CMakeLists.txt [clang-tidy] Profile is a per-AST (per-TU) data. 2018-05-08 13:14:21 +00:00
ClangTidy.cpp [clang-tidy] Add a flag to enable alpha checkers 2018-05-17 14:04:27 +00:00
ClangTidy.h [clang-tidy] Add a flag to enable alpha checkers 2018-05-17 14:04:27 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Add a flag to enable alpha checkers 2018-05-17 14:04:27 +00:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Add a flag to enable alpha checkers 2018-05-17 14:04:27 +00:00
ClangTidyModule.cpp Change getChecksFilter() interface to hide implementation details. 2017-05-17 14:39:47 +00:00
ClangTidyModule.h [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ClangTidyModuleRegistry.h Reapply r276973 "Adjust Registry interface to not require plugins to export a registry" 2016-08-05 11:01:08 +00:00
ClangTidyOptions.cpp [clang-tools-extra] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 16:37:45 +00:00
ClangTidyOptions.h [clang-tidy] Remove AnalyzeTemporaryDtors option. 2018-05-03 14:40:37 +00:00
ClangTidyProfiling.cpp [clang-tidy] Profile is a per-AST (per-TU) data. 2018-05-08 13:14:21 +00:00
ClangTidyProfiling.h [clang-tidy] Profile is a per-AST (per-TU) data. 2018-05-08 13:14:21 +00:00
add_new_check.py Add a trailing period in release notes. 2018-05-03 15:59:39 +00:00
rename_check.py [clang-tidy] Use :doc: for check links in Release Notes. 2018-03-21 17:06:13 +00:00