llvm-project/clang/lib/Sema
Argyrios Kyrtzidis 26444c5243 Have Sema::ActOnStartOfFunctionDef return the declaration that was passed it.
This fixes the missing warning here:

struct S {
    template <typename T>
    void meth() {
        char arr[3];
        arr[4] = 0; // warning: array index 4 is past the end of the array
    }
};

template <typename T>
void func() {
    char arr[3];
    arr[4] = 0; // no warning
}

llvm-svn: 170180
2012-12-14 06:54:03 +00:00
..
AnalysisBasedWarnings.cpp Fix analysis based warnings so that all warnings are emitted when compiling 2012-12-07 22:53:48 +00:00
AttributeList.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
CMakeLists.txt From Vassil Vassilev: enable Sema to deal with multiple ExternalSemaSources. 2012-10-18 19:05:02 +00:00
CodeCompleteConsumer.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
DeclSpec.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
DelayedDiagnostic.cpp objective-C: when diagnosing deprecated/unavailable usage of 2012-09-21 20:46:37 +00:00
IdentifierResolver.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
JumpDiagnostics.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
MultiplexExternalSemaSource.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
Scope.cpp Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
ScopeInfo.cpp -Warc-repeated-use-of-weak: fix a use-of-uninitialized and add a test case. 2012-10-11 17:02:00 +00:00
Sema.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaAccess.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaAttr.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaCXXScopeSpec.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaCast.cpp objc: DOn't complain if a (SEL) expression is typecast 2012-12-13 00:42:06 +00:00
SemaChecking.cpp Format strings: offer a cast to 'unichar' for %C in Objective-C contexts. 2012-12-05 18:44:49 +00:00
SemaCodeComplete.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaConsumer.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:48:34 +00:00
SemaDecl.cpp Have Sema::ActOnStartOfFunctionDef return the declaration that was passed it. 2012-12-14 06:54:03 +00:00
SemaDeclAttr.cpp Virtual method overrides can no longer have mismatched calling conventions. This fixes PR14339. 2012-12-09 17:45:41 +00:00
SemaDeclCXX.cpp PR14558: Compute triviality of special members (etc) at the end of the class 2012-12-11 01:14:52 +00:00
SemaDeclObjC.cpp Don't complain about incomplete implementations for methods that are 2012-12-11 18:53:07 +00:00
SemaExceptionSpec.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaExpr.cpp Sema: Don't emit a warning when __func__ is used in a lambda outside of a function. 2012-12-06 15:42:21 +00:00
SemaExprCXX.cpp Add missing check for error return from DefaultLvalueConversion. Fixes <rdar://problem/12857416>. 2012-12-13 00:37:17 +00:00
SemaExprMember.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaExprObjC.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaFixItUtils.cpp Drop the ASTContext.h include from Stmt.h and fix up transitive users. 2012-07-04 17:04:04 +00:00
SemaInit.cpp Implement C++03 [dcl.init]p5's checking for value-initialization of references 2012-12-08 02:01:17 +00:00
SemaLambda.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaLookup.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaObjCProperty.cpp [objc] For the ARC error that is emitted when a synthesized property implementation 2012-12-12 22:48:25 +00:00
SemaOverload.cpp Fix overload resolution for the initialization of a multi-dimensional 2012-12-09 06:48:56 +00:00
SemaPseudoObject.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaStmt.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaStmtAsm.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaStmtAttr.cpp Improve C++11 attribute parsing. 2012-10-03 01:56:22 +00:00
SemaTemplate.cpp Remove code from Sema::ActOnStartOfFunctionTemplateDef that duplicates what 2012-12-14 06:53:58 +00:00
SemaTemplateDeduction.cpp Fix http://stackoverflow.com/questions/13521163 2012-12-06 06:44:44 +00:00
SemaTemplateInstantiate.cpp Add a FIXME. 2012-12-08 02:13:02 +00:00
SemaTemplateInstantiateDecl.cpp PR14558: Compute triviality of special members (etc) at the end of the class 2012-12-11 01:14:52 +00:00
SemaTemplateVariadic.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
SemaType.cpp Properly compute triviality for explicitly-defaulted or deleted special members. 2012-12-08 02:53:02 +00:00
TargetAttributesSema.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
TargetAttributesSema.h Remove Sema.h's dependency on DeclCXX.h. 2010-08-25 07:42:41 +00:00
TreeTransform.h Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
TypeLocBuilder.h Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00