llvm-project/clang-tools-extra/clang-tidy
Jonas Toth ad2524f9fc [clang-tidy] fix PR36489 - respect deduced pointer types from auto as well
Summary:
The cppcoreguidelines-pro-bounds-pointer-arithmetic warns on all occassion where
pointer arithmetic is used, but does not check values where the pointer types
is deduced via `auto`. This patch adjusts this behaviour and solved
PR36489.
I accidentally commited a wrong patch, this Differential is meant to have a
correct revision description and code attached to it.
Because the patch was accepted by aaron.ballman already, i will just commit
it.
See https://reviews.llvm.org/D48717 for the old differntial (contains wrong
code from the mixup)

Subscribers: nemanjai, xazax.hun, kbarton, cfe-commits

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

llvm-svn: 337716
2018-07-23 17:46:17 +00:00
..
abseil [clang-tidy] Improve string type matcher for abseil-string-find-starts-with check. 2018-06-08 08:19:22 +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] Exception Escape Checker 2018-07-13 13:09:40 +00:00
cert Add the cert-msc51-cpp and cert-msc32-c checks. 2018-07-05 01:16:31 +00:00
cppcoreguidelines [clang-tidy] fix PR36489 - respect deduced pointer types from auto as well 2018-07-23 17:46:17 +00:00
fuchsia [clang-tidy] remove private decltypeType in TrailingReturnType 2018-07-23 16:30:13 +00:00
google [clang-tidy] Remove the google-readability-redundant-smartptr-get alias 2018-06-21 16:14:27 +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 [clang-tidy] Fix http://llvm.org/PR38055 2018-07-04 15:19:49 +00:00
modernize [clang-tidy: modernize] Fix modernize-use-equals-default with {} brackets list initialization: patch 2018-07-17 14:35:15 +00:00
mpi modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00
objc [clang-tidy/ObjC] Add SQL to list of acronyms 2018-07-12 17:32:55 +00:00
performance Use ExprMutationAnalyzer in performance-for-range-copy 2018-07-10 22:51:06 +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] readability-inconsistent-declaration-parameter-name: accept approximate name matches. 2018-07-13 11:41:56 +00:00
tool [clang-tidy] Store checks profiling info as JSON files 2018-06-06 15:07:51 +00:00
utils [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is mutated within a statement. 2018-06-27 14:30:55 +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] Store checks profiling info as JSON files 2018-06-06 15:07:51 +00:00
ClangTidy.h [clang-tidy] Store checks profiling info as JSON files 2018-06-06 15:07:51 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Store checks profiling info as JSON files 2018-06-06 15:07:51 +00:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Store checks profiling info as JSON files 2018-06-06 15:07:51 +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] Store checks profiling info as JSON files 2018-06-06 15:07:51 +00:00
ClangTidyProfiling.h [clang-tidy] Store checks profiling info as JSON files 2018-06-06 15:07:51 +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