llvm-project/clang-tools-extra/clang-tidy
Idriss Riouak deb8c7d396 [clang-tidy: modernize] Fix modernize-use-equals-default with {} brackets list initialization: patch
Summary:
Hello, i would like to suggest a fix for one of the checks in clang-tidy. 
The bug was reported in https://bugs.llvm.org/show_bug.cgi?id=38039 where you can find more information.

```
struct UOB{
	UOB(const UOB &Other):j{Other.j}{}
	int j;
};
```
In this case the check modernize-use-equals-default does not detect copy constructors that can be defaulted; that should be:

```
struct UOB{
	UOB(const UOB &Other) = default;
	int j;
};
```

Reviewers: aaron.ballman, hokein, alexfh

Reviewed By: aaron.ballman

Subscribers: cfe-commits

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

llvm-svn: 337286
2018-07-17 14:35:15 +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] 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] 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