llvm-project/clang-tools-extra/clang-tidy/performance
Etienne Bergeron 2c82ebe813 [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck.
Summary:
This is the same kind of bug than [[ http://reviews.llvm.org/D18238 | D18238 ]].

Fix crashes caused by deferencing null pointer when declarations parsing may be delayed.
The body of the declarations may be null.

The crashes were observed with a Windows build of clang-tidy and the following command-line.
```
command-line switches: -fms-compatibility-version=19 -fms-compatibility
```

Reviewers: alexfh

Subscribers: kimgr, LegalizeAdulthood, cfe-commits

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

llvm-svn: 265681
2016-04-07 14:58:13 +00:00
..
CMakeLists.txt [clang-tidy] Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references. 2016-03-29 02:42:38 +00:00
FasterStringFindCheck.cpp [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder 2016-04-07 14:55:25 +00:00
FasterStringFindCheck.h [clang-tidy] Add check performance-faster-string-find 2016-02-12 19:28:14 +00:00
ForRangeCopyCheck.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
ForRangeCopyCheck.h [clang-tidy] ForRangeCopyCheck that warns on and fixes unnecessary copies of loop variables. 2016-01-29 15:54:26 +00:00
ImplicitCastInLoopCheck.cpp [clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder 2016-04-07 14:55:25 +00:00
ImplicitCastInLoopCheck.h [clang-tidy] Don't use delegating constructors, since they are not supported by MSVC 2013 2016-01-29 17:35:53 +00:00
PerformanceTidyModule.cpp [clang-tidy] Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references. 2016-03-29 02:42:38 +00:00
UnnecessaryCopyInitialization.cpp Add check for unneeded copies of locals 2016-03-23 09:33:07 +00:00
UnnecessaryCopyInitialization.h Add check for unneeded copies of locals 2016-03-23 09:33:07 +00:00
UnnecessaryValueParamCheck.cpp [clang-tidy] fix a crash with -fdelayed-template-parsing in UnnecessaryValueParamCheck. 2016-04-07 14:58:13 +00:00
UnnecessaryValueParamCheck.h [clang-tidy] Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references. 2016-03-29 02:42:38 +00:00