llvm-project/clang/lib/Sema
Ismail Pazarbasi 7ff1836471 MismatchingNewDeleteDetector uses incorrect field, and finds no initializer
Summary:
In `MismatchingNewDeleteDetector::analyzeInClassInitializer`, if
`Field`'s initializer expression is null, lookup the field in
implicit instantiation, and use found field's the initializer.

Reviewers: rsmith, rtrieu

Subscribers: cfe-commits

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

llvm-svn: 251335
2015-10-26 19:20:24 +00:00
..
AnalysisBasedWarnings.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
AttributeList.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
CodeCompleteConsumer.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
DeclSpec.cpp Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid(). 2015-10-03 05:15:57 +00:00
DelayedDiagnostic.cpp Add -Wpartial-availability. 2015-03-19 19:18:22 +00:00
IdentifierResolver.cpp [modules] Remove redundant import of lexical decls when building a lookup table 2015-03-23 03:25:59 +00:00
JumpDiagnostics.cpp Some minor ARC diagnostic improvements. 2015-10-21 18:06:38 +00:00
Makefile
MultiplexExternalSemaSource.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
Scope.cpp MS ABI: Implement the MSVC 2015 scheme for scope disambiguation 2015-03-19 21:54:30 +00:00
ScopeInfo.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
Sema.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
SemaAccess.cpp -Wdeprecated: SavedInstanceContext is returned by value but isn't really copyable, but it can be made movable 2015-08-12 22:58:10 +00:00
SemaAttr.cpp Implement section pragma feedback on r205810 2015-03-04 23:39:17 +00:00
SemaCUDA.cpp [CUDA] Allow function overloads in CUDA based on host/device attributes. 2015-09-22 17:22:59 +00:00
SemaCXXScopeSpec.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
SemaCast.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaChecking.cpp Skip NonNull sema checks in unevaluated contexts. 2015-10-09 00:17:57 +00:00
SemaCodeComplete.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
SemaDecl.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaDeclAttr.cpp Amending r249721 to properly handle pathological attribute-related names like __ and ____. 2015-10-09 13:53:24 +00:00
SemaDeclCXX.cpp [Sema] Remove an unreachable llvm_unreachable 2015-10-21 19:48:47 +00:00
SemaDeclObjC.cpp Convert ActOnForwardProtocolDeclaration to take an ArrayRef and use a range-based for loop. NFC 2015-10-22 05:00:01 +00:00
SemaExceptionSpec.cpp [-fms-extensions] Allow missing exception specifications in redeclarations as an extension 2015-10-20 20:49:21 +00:00
SemaExpr.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaExprCXX.cpp MismatchingNewDeleteDetector uses incorrect field, and finds no initializer 2015-10-26 19:20:24 +00:00
SemaExprMember.cpp Look through using decls when classifying implicit member access 2015-10-20 18:12:08 +00:00
SemaExprObjC.cpp Be slightly more permissive when checking for type-erased blocks. 2015-10-02 01:05:29 +00:00
SemaFixItUtils.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
SemaInit.cpp [Sema] Make `&function_with_enable_if_attrs` an error 2015-10-12 19:57:04 +00:00
SemaLambda.cpp Perform Objective-C lifetime adjustments before comparing deduced lambda result types. 2015-10-01 20:20:47 +00:00
SemaLookup.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
SemaObjCProperty.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaOpenMP.cpp [coroutines] Add overloaded unary 'operator co_await'. 2015-10-22 05:12:22 +00:00
SemaOverload.cpp [coroutines] Add overloaded unary 'operator co_await'. 2015-10-22 05:12:22 +00:00
SemaPseudoObject.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
SemaStmt.cpp [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
SemaStmtAsm.cpp Use ArrayRef and MutableArrayRef instead of a pointer and size. NFC 2015-10-21 02:34:10 +00:00
SemaStmtAttr.cpp Add new llvm.loop.unroll.enable metadata for use with "#pragma unroll". 2015-08-10 17:29:39 +00:00
SemaTemplate.cpp PR24921: checking explicitly-specified template arguments when matching a 2015-10-02 00:49:37 +00:00
SemaTemplateDeduction.cpp Convert a few classes over to use the new TrailingObjects helper. 2015-08-06 20:26:32 +00:00
SemaTemplateInstantiate.cpp Revert r107690 (for PR7417) and add a testcase that it breaks. The approach of 2015-10-05 20:05:21 +00:00
SemaTemplateInstantiateDecl.cpp [MSVC Compat] Try to treat an implicit, fixed enum as an unfixed enum 2015-10-08 10:04:46 +00:00
SemaTemplateVariadic.cpp PR14858: Initial support for proper sizeof... handling within alias templates. 2015-09-23 21:41:42 +00:00
SemaType.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
TreeTransform.h [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
TypeLocBuilder.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
TypeLocBuilder.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00