llvm-project/clang-tools-extra/clang-tidy/utils
Felix Berger adfdc14832 [clang-tidy] Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references.
Summary:
Move code shared between UnnecessaryCopyInitialization and ForRangeCopyCheck into utilities files.
Add more test cases for UnnecessaryCopyInitialization and disable fixes inside of macros.

Reviewers: alexfh

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D17488

llvm-svn: 262781
2016-03-05 21:17:58 +00:00
..
CMakeLists.txt [clang-tidy] Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references. 2016-03-05 21:17:58 +00:00
DeclRefExprUtils.cpp [clang-tidy] Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references. 2016-03-05 21:17:58 +00:00
DeclRefExprUtils.h [clang-tidy] Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references. 2016-03-05 21:17:58 +00:00
FixItHintUtils.cpp [clang-tidy] Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references. 2016-03-05 21:17:58 +00:00
FixItHintUtils.h [clang-tidy] Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references. 2016-03-05 21:17:58 +00:00
HeaderFileExtensionsUtils.cpp [clang-tdiy] Add header file extension configuration support. 2016-02-05 11:23:59 +00:00
HeaderFileExtensionsUtils.h [clang-tdiy] Add header file extension configuration support. 2016-02-05 11:23:59 +00:00
HeaderGuard.cpp [clang-tidy] Don't duplicate the leading slash. 2015-07-27 13:07:50 +00:00
HeaderGuard.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
IncludeInserter.cpp [clang-tidy] Fix an assertion failure of "SLocEntry::getExpansion()" when IncludeInserter handles macro header file. 2016-03-02 14:12:17 +00:00
IncludeInserter.h [clang-tidy] Move IncludeSorter.* and IncludeInserter.* to clang-tidy/utils/ 2015-08-14 14:31:31 +00:00
IncludeSorter.cpp [clang-tidy] Sort includes case-sensitively. 2015-12-10 12:24:19 +00:00
IncludeSorter.h Improved the misc-move-constructor-init check to identify arguments that are passed by value but copy assigned to class data members when the non-deleted move constructor is a better fit. 2015-10-06 16:27:03 +00:00
LexerUtils.cpp [clang-tidy] Add UnnecessaryCopyInitialization check to new "performance" module in ClangTidy 2015-12-30 10:24:40 +00:00
LexerUtils.h [clang-tidy] Add UnnecessaryCopyInitialization check to new "performance" module in ClangTidy 2015-12-30 10:24:40 +00:00
Matchers.h Replace the custom AST matcher for nothrow functions with the canonical AST matcher from r254516. 2015-12-02 15:24:47 +00:00
TypeTraits.cpp Make isExpensiveToCopy() tri-state. 2015-10-23 10:00:50 +00:00
TypeTraits.h Make isExpensiveToCopy() tri-state. 2015-10-23 10:00:50 +00:00