llvm-project/clang/lib/Sema
David Majnemer 4d2de1b03f Sema: Don't dyn_cast a null pointer in CheckUsingDeclQualifier
This code was written with the intent that a pointer could be null but
we dyn_cast'd it anyway.  Change the dyn_cast to a dyn_cast_or_null.

This fixes PR21933.

llvm-svn: 224411
2014-12-17 02:41:36 +00:00
..
AnalysisBasedWarnings.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
AttributeList.cpp Automate attribute argument count semantic checking when there are variadic or optional arguments present. With this, the only time you should have to manually check attribute argument counts is when HasCustomParsing is set to true, or when you have variadic arguments that aren't really variadic (like ownership_holds and friends). 2014-07-31 16:37:04 +00:00
CMakeLists.txt Split off CUDA-specific Sema parts to a new file 2014-09-03 15:27:03 +00:00
CodeCompleteConsumer.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
DeclSpec.cpp [OpenCL] Generic address space has been added in OpenCL v2.0. 2014-11-26 14:10:06 +00:00
DelayedDiagnostic.cpp Objective-C. Diagnose when property access is using declared 2014-06-16 17:25:41 +00:00
IdentifierResolver.cpp PR20769: Fix confusion when checking whether a prior default argument was in 2014-08-27 22:31:34 +00:00
JumpDiagnostics.cpp ms-inline-asm: Scope inline asm labels to functions 2014-09-22 02:21:54 +00:00
Makefile
MultiplexExternalSemaSource.cpp Add -Wunused-local-typedef, a warning that finds unused local typedefs. 2014-09-06 01:25:55 +00:00
Scope.cpp Revert r213437 2014-07-25 20:52:51 +00:00
ScopeInfo.cpp Objective-C ARC. Fixes a crash when checking for 'weak' propery 2014-11-21 21:12:11 +00:00
Sema.cpp Delay checking overrides for exception specifications if the overridden 2014-11-22 03:09:05 +00:00
SemaAccess.cpp Consolidate some note diagnostics 2014-05-28 12:20:14 +00:00
SemaAttr.cpp MS Compat: mark globals emitted in read-only sections const 2014-10-16 20:52:46 +00:00
SemaCUDA.cpp Consider calls from implict host device functions as valid in SemaCUDA. 2014-12-16 20:12:38 +00:00
SemaCXXScopeSpec.cpp [c++1z] Support [[deprecated]] attributes on namespaces. Note that it only applies to situations where the namespace is mentioned. Thus, use on anonymous namespaces is diagnosed. 2014-11-14 22:34:56 +00:00
SemaCast.cpp Sema: Check value dependent casts when possible 2014-12-16 00:46:30 +00:00
SemaChecking.cpp Renamed RefersToEnclosingLocal bitfield to RefersToCapturedVariable. 2014-12-16 08:01:48 +00:00
SemaCodeComplete.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
SemaConsumer.cpp
SemaDecl.cpp Try typo correction on all initialization arguments and be less 2014-12-16 23:07:00 +00:00
SemaDeclAttr.cpp Warn when attribute 'optnone' conflicts with attributes on a 2014-12-15 18:57:28 +00:00
SemaDeclCXX.cpp Sema: Don't dyn_cast a null pointer in CheckUsingDeclQualifier 2014-12-17 02:41:36 +00:00
SemaDeclObjC.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
SemaExceptionSpec.cpp Delay checking overrides for exception specifications if the overridden 2014-11-22 03:09:05 +00:00
SemaExpr.cpp Consider calls from implict host device functions as valid in SemaCUDA. 2014-12-16 20:12:38 +00:00
SemaExprCXX.cpp Look at whether TransformTypos returned a different Expr instead of looking at the number of uncorrected typos before and after. Correcting one typo may produce an expression with another TypoExpr in it, leading to matching counts even though a typo was corrected. 2014-12-16 22:02:06 +00:00
SemaExprMember.cpp Perform correct lookup when '__super' is used in class with dependent base. 2014-12-01 23:15:01 +00:00
SemaExprObjC.cpp [Objective-C]. This patch extends objc_bridge attribute to support objc_bridge(id). 2014-12-11 22:56:26 +00:00
SemaFixItUtils.cpp PR17290: Use 'false' macro in fix-it hint for initializing a variable of type 2013-09-20 00:27:40 +00:00
SemaInit.cpp Handle use of default member initializers before end of outermost class 2014-11-17 23:36:45 +00:00
SemaLambda.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
SemaLookup.cpp Add a new flag, -fspell-checking-limit=<number> to control how many times we'll do spell checking. Note that spell checking will change the produced AST, so we don't automatically change this value when someone sets -ferror-limit=. With this, merge test typo-correction-pt2.cpp into typo-correction.cpp. 2014-12-16 21:39:02 +00:00
SemaObjCProperty.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
SemaOpenMP.cpp Renamed RefersToEnclosingLocal bitfield to RefersToCapturedVariable. 2014-12-16 08:01:48 +00:00
SemaOverload.cpp Improve handling of value dependent expressions in __attribute__((enable_if)), both in the condition expression and at the call site. Fixes PR20988! 2014-12-16 06:12:01 +00:00
SemaPseudoObject.cpp Objective-C. Prevents a crash generating AST for a 2014-09-15 21:19:39 +00:00
SemaStmt.cpp Renamed RefersToEnclosingLocal bitfield to RefersToCapturedVariable. 2014-12-16 08:01:48 +00:00
SemaStmtAsm.cpp Parse: Concatenated string literals should be verified in inline asm 2014-12-11 01:00:48 +00:00
SemaStmtAttr.cpp Allow constant expressions in pragma loop hints. 2014-10-12 20:46:07 +00:00
SemaTemplate.cpp Perform correct lookup when '__super' is used in class with dependent base. 2014-12-01 23:15:01 +00:00
SemaTemplateDeduction.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
SemaTemplateInstantiate.cpp Fix crash-on-valid if a lambda-expression appears lexically directly within a 2014-11-20 22:56:34 +00:00
SemaTemplateInstantiateDecl.cpp Instantiate exception specifications when instantiating function types (other 2014-11-12 02:00:47 +00:00
SemaTemplateVariadic.cpp Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
SemaType.cpp [OpenCL] Generic address space has been added in OpenCL v2.0. 2014-11-26 14:10:06 +00:00
TreeTransform.h Handle errors in lambda prototype instantiation correctly 2014-12-15 21:07:16 +00:00
TypeLocBuilder.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
TypeLocBuilder.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00