llvm-project/clang-tools-extra/clang-tidy
Haojian Wu 6ccb1dd9f0 Add check for unneeded copies of locals
Summary: Extends the UnnecessaryCopyInitialization to detect copies of local variables and parameters that are unneeded.

Patch by Matt Kulukundis!

Reviewers: alexfh, hokein

Subscribers: cfe-commits

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

llvm-svn: 264146
2016-03-23 09:33:07 +00:00
..
cert Add a new check, cert-env33-c, that diagnoses uses of system(), popen(), and _popen() to execute a command processor. This check corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=2130132 2016-02-22 16:01:06 +00:00
cppcoreguidelines Fix crashes from delayed template parsing code that assumed getBody() would return non-null. 2016-03-22 13:37:44 +00:00
google [clang-tidy] update links to Google Code Style in docs 2016-02-25 14:31:10 +00:00
llvm Remove autoconf support 2016-01-26 21:31:36 +00:00
misc [clang-tidy] Fix check broken in rL263822. 2016-03-21 18:00:43 +00:00
modernize Fix crashes from delayed template parsing code that assumed getBody() would return non-null. 2016-03-22 13:37:44 +00:00
performance Add check for unneeded copies of locals 2016-03-23 09:33:07 +00:00
plugin [clang-tidy] Add "clang-tidy as a clang plugin" skeleton. 2016-03-03 08:58:12 +00:00
readability [clang-tidy] Fix redundant-string-cstr check with msvc 14 headers. 2016-03-22 18:00:13 +00:00
tool [clang-tidy] Reformatted docs + minor updates 2016-02-08 00:19:29 +00:00
utils [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
CMakeLists.txt [clang-tidy] Add "clang-tidy as a clang plugin" skeleton. 2016-03-03 08:58:12 +00:00
ClangTidy.cpp [clang-tidy] Skip reporting of not applicable fixes. 2016-03-22 17:51:27 +00:00
ClangTidy.h [docs] Clean up doxygen comments a bit. 2016-03-06 04:05:59 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database. 2016-02-26 09:19:33 +00:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Add "clang-tidy as a clang plugin" skeleton. 2016-03-03 08:58:12 +00:00
ClangTidyModule.cpp [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModule.h Revert "Apply modernize-use-default to clang-tools-extra." 2015-10-20 21:45:52 +00:00
ClangTidyModuleRegistry.h [clang-tidy] Fixed header guards using clang-tidy llvm-header-guard check. NFC. 2015-03-09 16:52:33 +00:00
ClangTidyOptions.cpp Teach clang-tidy how to upgrade warnings into errors. 2016-01-13 17:36:41 +00:00
ClangTidyOptions.h Teach clang-tidy how to upgrade warnings into errors. 2016-01-13 17:36:41 +00:00
add_new_check.py [clang-tidy] ForRangeCopyCheck that warns on and fixes unnecessary copies of loop variables. 2016-01-29 15:54:26 +00:00
rename_check.py [clang-tidy] Python script for easy check rename 2015-10-11 07:58:34 +00:00