llvm-project/clang/lib/Sema
Nico Weber ccec40d9b7 Add -Wstring-plus-int, which warns on "str" + int and int + "str".
It doesn't warn if the integer is known at compile time and within
the bounds of the string.

Discussion: http://comments.gmane.org/gmane.comp.compilers.clang.scm/47203
llvm-svn: 151943
2012-03-02 22:01:22 +00:00
..
AnalysisBasedWarnings.cpp When overload resolution picks an implicitly-deleted special member 2012-02-15 19:33:52 +00:00
AttributeList.cpp Accept __has_feature(__feature__) as a synonym for __has_feature(feature) (and 2012-02-25 10:41:10 +00:00
CMakeLists.txt Represent C++ direct initializers as ParenListExprs before semantic analysis 2012-02-11 23:51:47 +00:00
CodeCompleteConsumer.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
DeclSpec.cpp __decltype is a GNU extension, not a C++11 extension. 2012-02-24 18:10:23 +00:00
DelayedDiagnostic.cpp objc: When issue diagnostic about deprecated method, also 2012-03-02 21:50:02 +00:00
IdentifierResolver.cpp Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
JumpDiagnostics.cpp ArrayRef-icize the function arguments. 2012-02-22 09:38:11 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
Scope.cpp Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
Sema.cpp Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
SemaAccess.cpp Introduce a new initialization entity for lambda captures, and 2012-02-15 16:57:26 +00:00
SemaAttr.cpp Reject mismatched "#pragma GCC visibility push" and "#pragma GCC visibility pop". 2012-02-01 23:24:59 +00:00
SemaCXXScopeSpec.cpp Added source location for the template keyword in DependentTemplateSpecializationTypeLoc nodes (DTSTLoc). 2012-02-06 22:45:07 +00:00
SemaCast.cpp ArrayRef'ize various functions in the AST/Parser/Sema. 2012-02-25 11:00:22 +00:00
SemaChecking.cpp Fix a couple bugs in the way we handle array indexes in array bounds checking. Specifically, make sure we don't ignore explicit casts in indexes, and make sure we use unsigned extension/comparisons on indexes. Fixes <rdar://problem/10916006>. 2012-02-27 21:21:40 +00:00
SemaCodeComplete.cpp ArrayRef'ize various functions in the AST/Parser/Sema. 2012-02-25 11:00:22 +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 Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
SemaDeclAttr.cpp objc: When issue diagnostic about deprecated method, also 2012-03-02 21:50:02 +00:00
SemaDeclCXX.cpp Implement "optimization" for lambda-to-block conversion which inlines the generated block literal for lambdas which are immediately converted to block pointer type. This simplifies the AST, avoids an unnecessary copy of the lambda and makes it much easier to avoid copying the result onto the heap. 2012-03-01 04:01:32 +00:00
SemaDeclObjC.cpp [Sema] Fix crash-on-invalid-code issue: 2012-03-02 19:14:29 +00:00
SemaExceptionSpec.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
SemaExpr.cpp Add -Wstring-plus-int, which warns on "str" + int and int + "str". 2012-03-02 22:01:22 +00:00
SemaExprCXX.cpp Implement "optimization" for lambda-to-block conversion which inlines the generated block literal for lambdas which are immediately converted to block pointer type. This simplifies the AST, avoids an unnecessary copy of the lambda and makes it much easier to avoid copying the result onto the heap. 2012-03-01 04:01:32 +00:00
SemaExprMember.cpp Fix r151443 to only apply C++11's exception for non-static data member access 2012-02-25 10:20:59 +00:00
SemaExprObjC.cpp After numerous requests, have Objective-C 'method declared here' notes mention the actual method. This looks better within an IDE, where text isn't always regurgitated in the presentation of a warning. Fixes radar 10914035. 2012-02-27 22:55:11 +00:00
SemaFixItUtils.cpp Refactor for clarity. 2012-01-13 19:34:55 +00:00
SemaInit.cpp Tentatively fix PR12117. The test case from the bug now passes, and all existing tests still pass, but there may still be corner cases. 2012-02-29 12:47:43 +00:00
SemaLambda.cpp Implement "optimization" for lambda-to-block conversion which inlines the generated block literal for lambdas which are immediately converted to block pointer type. This simplifies the AST, avoids an unnecessary copy of the lambda and makes it much easier to avoid copying the result onto the heap. 2012-03-01 04:01:32 +00:00
SemaLookup.cpp ArrayRef'ize various functions in the AST/Parser/Sema. 2012-02-25 11:00:22 +00:00
SemaObjCProperty.cpp objective-c: provide fixit hint when atomic property does not 2012-02-29 22:18:55 +00:00
SemaOverload.cpp Single- and zero-element initializer lists to scalars are list-initializations. Fixes PR12118. 2012-02-28 23:36:38 +00:00
SemaPseudoObject.cpp Pull the OpaqueValueExpr's source expression into its constructor, so 2012-02-23 22:17:26 +00:00
SemaStmt.cpp Doug's review comments. 2012-02-22 17:38:04 +00:00
SemaTemplate.cpp Two fixes to how we compute visibility: 2012-02-23 04:17:32 +00:00
SemaTemplateDeduction.cpp ArrayRef'ize various functions in the AST/Parser/Sema. 2012-02-25 11:00:22 +00:00
SemaTemplateInstantiate.cpp Introduce support for template instantiation of lambda 2012-02-13 22:00:16 +00:00
SemaTemplateInstantiateDecl.cpp Lambda closure types are always considered to be like "local" classes, 2012-02-16 21:36:18 +00:00
SemaTemplateVariadic.cpp Fix the isReferenced bit on parameters in a couple of edge cases. PR12153. 2012-03-01 21:32:56 +00:00
SemaType.cpp Make helper static. 2012-02-24 22:19:42 +00:00
TargetAttributesSema.cpp Fix compiler warning about && in ||. 2011-09-30 20:32:22 +00:00
TargetAttributesSema.h Remove Sema.h's dependency on DeclCXX.h. 2010-08-25 07:42:41 +00:00
TreeTransform.h A couple minor bug-fixes for template instantiation for expressions which are sometimes potentially evaluated. 2012-02-29 04:03:55 +00:00
TypeLocBuilder.h Remove more unnecessary #include <llvm/ADT/SmallVector.h> 2011-06-20 06:11:46 +00:00