llvm-project/clang-tools-extra/clang-tidy/modernize
Mads Ravn 7175c2ce4d [clang-tidy] modernize-pass-by-value bugfix
Modified the clang-tidy PassByValue check. It now stops adding std::move to type which is trivially copyable because that caused the clang-tidy MoveConstArg to complain and revert, thus creating a cycle.

I have also added a lit-style test to verify the bugfix.

This is the bug on bugzilla: https://llvm.org/bugs/show_bug.cgi?id=27731

This is the code review on phabricator: http://reviews.llvm.org/D20365

llvm-svn: 270565
2016-05-24 15:00:16 +00:00
..
AvoidBindCheck.cpp [clang-tidy] Adds modernize-avoid-bind check 2016-05-12 20:06:04 +00:00
AvoidBindCheck.h [clang-tidy] Adds modernize-avoid-bind check 2016-05-12 20:06:04 +00:00
CMakeLists.txt [clang-tidy] Adds modernize-avoid-bind check 2016-05-12 20:06:04 +00:00
DeprecatedHeadersCheck.cpp [clang-tidy] Another attempt to fix MSVC build 2016-02-25 00:39:11 +00:00
DeprecatedHeadersCheck.h [clang-tidy] introduce modernize-deprecated-headers check 2016-02-24 13:36:34 +00:00
LoopConvertCheck.cpp Fix another case where loop-convert wasn't handling correctly data members. 2015-11-06 09:59:14 +00:00
LoopConvertCheck.h Handle correctly containers that are data members in modernize-loop-convert. 2015-11-03 16:38:31 +00:00
LoopConvertUtils.cpp [clang-tidy] Fix "Name is not a simple identifier" assertion in `modernize-loop-convert` check. 2016-03-14 12:41:24 +00:00
LoopConvertUtils.h Handle correctly containers that are data members in modernize-loop-convert. 2015-11-03 16:38:31 +00:00
MakeSharedCheck.cpp [clang-tidy] Add modernize-make-shared check 2016-05-02 16:56:39 +00:00
MakeSharedCheck.h [clang-tidy] Add modernize-make-shared check 2016-05-02 16:56:39 +00:00
MakeSmartPtrCheck.cpp [clang-tidy] Add modernize-make-shared check 2016-05-02 16:56:39 +00:00
MakeSmartPtrCheck.h [Clang-tidy] Fix Clang-tidy modernize-use-override and some Include What You Use warnings in modernize/MakeSmartPtrCheck.h. 2016-05-03 01:13:27 +00:00
MakeUniqueCheck.cpp [clang-tidy] Add modernize-make-shared check 2016-05-02 16:56:39 +00:00
MakeUniqueCheck.h [clang-tidy] Add modernize-make-shared check 2016-05-02 16:56:39 +00:00
ModernizeTidyModule.cpp [clang-tidy] Adds modernize-avoid-bind check 2016-05-12 20:06:04 +00:00
PassByValueCheck.cpp [clang-tidy] modernize-pass-by-value bugfix 2016-05-24 15:00:16 +00:00
PassByValueCheck.h [clang-tidy] Cleanup namespace in utils folder. 2016-05-03 02:54:05 +00:00
RawStringLiteralCheck.cpp [Clang-tidy] Fix for crash in modernize-raw-string-literal check 2016-04-21 14:39:12 +00:00
RawStringLiteralCheck.h [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
RedundantVoidArgCheck.cpp [clang-tidy] Cleaning namespaces to be more consistant across checkers. 2016-05-02 18:00:29 +00:00
RedundantVoidArgCheck.h Add support for type aliases to modernize-redundant-void-arg.cpp 2016-04-14 19:28:13 +00:00
ReplaceAutoPtrCheck.cpp [clang-tidy] Cleanup namespace in utils folder. 2016-05-03 02:54:05 +00:00
ReplaceAutoPtrCheck.h [clang-tidy] Cleanup namespace in utils folder. 2016-05-03 02:54:05 +00:00
ShrinkToFitCheck.cpp [clang-tidy] Cleanup some ast-matchers and lift some to utils. 2016-04-21 16:57:56 +00:00
ShrinkToFitCheck.h [clang-tidy] Move misc-use-override and readability-shrink-to-fit to "modernize/" 2015-08-31 13:17:43 +00:00
UseAutoCheck.cpp Make a bunch of static arrays const. 2015-10-18 05:14:41 +00:00
UseAutoCheck.h [clang-tidy] Migrate UseAuto from clang-modernize to clang-tidy. 2015-08-21 15:08:51 +00:00
UseBoolLiteralsCheck.cpp [clang-tidy] Adds modernize-use-bool-literals check. 2016-05-11 11:33:16 +00:00
UseBoolLiteralsCheck.h [clang-tidy] Adds modernize-use-bool-literals check. 2016-05-11 11:33:16 +00:00
UseDefaultCheck.cpp Make modernize-use-default tolerant of delayed template parsing; this code was previously causing failed assertions because dyn_cast was being passed a null pointer due to the delay-parsed body. 2016-01-20 22:14:10 +00:00
UseDefaultCheck.h Add modernize-use-default check to clang-tidy. 2015-10-21 12:58:15 +00:00
UseNullptrCheck.cpp [clang-tidy] Lift common matchers to utils namespace 2016-05-17 19:36:09 +00:00
UseNullptrCheck.h [clang-tidy] Fix use-after-free in UseNullptrCheck. 2015-08-19 23:57:34 +00:00
UseOverrideCheck.cpp [clang-tidy] fix a couple of modernize-use-override bugs 2016-04-04 14:31:36 +00:00
UseOverrideCheck.h [clang-tidy] Move misc-use-override and readability-shrink-to-fit to "modernize/" 2015-08-31 13:17:43 +00:00