llvm-project/clang/lib/Sema
David Majnemer 61a5bbf92a [Sema] Correctly recurse when looking for [*] in function definitions
A [*] is only allowed in a declaration for a function, not in its
definition.  We didn't correctly recurse while looking for it, causing
us to crash in CodeGen instead of rejecting it.

This fixes PR23151.

llvm-svn: 234363
2015-04-07 22:08:51 +00:00
..
AnalysisBasedWarnings.cpp Move ThreadSafetyReporter into an anonymous namespace. NFC. 2015-03-19 14:23:45 +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 Teach Twine to support SmallString. 2015-03-17 09:51:17 +00:00
DeclSpec.cpp Add check for kind of UnqualifiedId in Declarator::isStaticMember() 2015-03-30 00:43:56 +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 Warn when jumping out of a __finally block via goto. 2015-03-09 04:27:56 +00:00
Makefile
MultiplexExternalSemaSource.cpp [Modules] Preserve source order for the map of late parsed templates. 2015-03-26 09:08:15 +00:00
Scope.cpp MS ABI: Implement the MSVC 2015 scheme for scope disambiguation 2015-03-19 21:54:30 +00:00
ScopeInfo.cpp SEH: Diagnose use of C++ EH and SEH in the same function 2015-02-02 22:15:31 +00:00
Sema.cpp [Modules] Make "#pragma weak" undeclared identifiers be tracked 2015-03-26 08:32:49 +00:00
SemaAccess.cpp Don't assume friended C++ method decls have qualifiers 2014-12-17 23:40:46 +00:00
SemaAttr.cpp Implement section pragma feedback on r205810 2015-03-04 23:39:17 +00:00
SemaCUDA.cpp CUDA: Add option to allow host device functions to call host functions 2015-02-24 21:45:33 +00:00
SemaCXXScopeSpec.cpp [modules] If we reach a definition of a class for which we already have a 2015-03-26 04:09:53 +00:00
SemaCast.cpp PR 17456 2015-01-28 21:31:26 +00:00
SemaChecking.cpp [Sema] Correctly recurse when looking for [*] in function definitions 2015-04-07 22:08:51 +00:00
SemaCodeComplete.cpp [libclang] Fix crash when code-completing inside constructor initializer for a builtin type. 2015-03-13 07:39:30 +00:00
SemaConsumer.cpp
SemaDecl.cpp [modules] Allow a function template definition if we have a pre-existing but not visible definition of the same template. 2015-03-27 21:57:41 +00:00
SemaDeclAttr.cpp [Sema] Don't crash when __attribute__((nonnull)) is applied to blocks 2015-04-07 06:01:53 +00:00
SemaDeclCXX.cpp Minor simplification: do typo-correction before handling inheriting 2015-04-01 19:31:06 +00:00
SemaDeclObjC.cpp [Objective-C Sema] Patch to not issue unavailbility/deprecated 2015-04-07 16:56:27 +00:00
SemaExceptionSpec.cpp [modules] Remove redundant import of lexical decls when building a lookup table 2015-03-23 03:25:59 +00:00
SemaExpr.cpp Sema: Accept pointers to any address space for builtin functions 2015-03-31 16:39:02 +00:00
SemaExprCXX.cpp Track the source location of the dot or arrow operator in a MemberExpr. 2015-03-24 15:07:53 +00:00
SemaExprMember.cpp [Objective-C patch] Patch to fix a crash in IRGen because 2015-04-06 16:56:39 +00:00
SemaExprObjC.cpp [Modules] Make Sema's map of referenced selectors have a deterministic 2015-03-27 00:55:05 +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 Fix UTF8 chars to ASCII. 2015-02-25 11:02:00 +00:00
SemaLambda.cpp Re-land "MS ABI: lambda call operators are instance methods and should use thiscall" 2015-04-01 20:22:13 +00:00
SemaLookup.cpp [modules] Allow a function to be redefined if the old definition is not visible. 2015-03-27 20:16:58 +00:00
SemaObjCProperty.cpp revert r231700 (designated initializer patch) which broke 2015-03-11 16:59:48 +00:00
SemaOpenMP.cpp [OPENMP] Fix crash on private variables not used in OpenMP region in templates. 2015-04-02 13:07:08 +00:00
SemaOverload.cpp A conversion from a scoped enumeration bitfield to an integral type is an 2015-03-28 00:31:40 +00:00
SemaPseudoObject.cpp Sema: Parenthesized bound destructor member expressions can be called 2015-02-25 17:36:15 +00:00
SemaStmt.cpp [Sema] Factor diags with %plural. No functionality change intended. 2015-03-27 17:23:14 +00:00
SemaStmtAsm.cpp Ignore device-side asm constraint errors while compiling CUDA code for host and vice versa. 2015-03-19 18:40:25 +00:00
SemaStmtAttr.cpp Allow constant expressions in pragma loop hints. 2014-10-12 20:46:07 +00:00
SemaTemplate.cpp [modules] Handle defining a class template on top of an existing imported-but-not-visible definition. 2015-03-27 00:41:57 +00:00
SemaTemplateDeduction.cpp Move private classes into anonymous namespaces 2015-03-23 12:31:05 +00:00
SemaTemplateInstantiate.cpp MS ABI: Build C++ default argument exprs for exported template classes 2015-03-17 21:51:43 +00:00
SemaTemplateInstantiateDecl.cpp Revert "Mark instantiated function decls as inline specified if any pattern is" 2015-04-07 20:46:51 +00:00
SemaTemplateVariadic.cpp [Sema] Factor diags with %plural. No functionality change intended. 2015-03-27 17:23:14 +00:00
SemaType.cpp Re-land "MS ABI: lambda call operators are instance methods and should use thiscall" 2015-04-01 20:22:13 +00:00
TreeTransform.h [OPENMP] Fix crash on private variables not used in OpenMP region in templates. 2015-04-02 13:07:08 +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