llvm-project/clang/lib/Sema
George Karpenkov 3a50a9fe74 [attributes] Extend os_returns_(not_?)_retained attributes to parameters
When applied to out-parameters, the attributes specify the expected lifetime of the written-into object.

Additionally, introduce OSReturnsRetainedOn(Non)Zero attributes, which
specify that an ownership transfer happens depending on a return code.

Differential Revision: https://reviews.llvm.org/D56292

llvm-svn: 350942
2019-01-11 18:02:08 +00:00
..
AnalysisBasedWarnings.cpp Revert "Revert r347417 "Re-Reinstate 347294 with a fix for the failures."" 2018-11-30 23:41:18 +00:00
CMakeLists.txt Fix llvm-clang-x86_64-expensive-checks-win build by setting bigobj flag. 2018-10-05 12:33:57 +00:00
CodeCompleteConsumer.cpp [CodeComplete] Set preferred type to bool on conditions 2018-12-13 15:36:32 +00:00
CoroutineStmtBuilder.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
DeclSpec.cpp Use DeclSpec for quals in DeclaratorChunk::FunctionTypeInfo. 2019-01-09 11:25:09 +00:00
DelayedDiagnostic.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
IdentifierResolver.cpp [AST] Various optimizations + refactoring in DeclarationName(Table) 2018-09-21 12:53:22 +00:00
JumpDiagnostics.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
MultiplexExternalSemaSource.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ParsedAttr.cpp Allow a double-underscore spelling of Clang attributes using double square bracket syntax. 2018-11-09 19:37:18 +00:00
Scope.cpp Revert r335019 "Update NRVO logic to support early return (Attempt 2)" 2018-06-19 05:35:30 +00:00
ScopeInfo.cpp Distinguish `__block` variables that are captured by escaping blocks 2018-10-01 21:51:28 +00:00
Sema.cpp [AST][NFC] Pass the AST context to one of the ctor of DeclRefExpr. 2018-12-21 14:10:18 +00:00
SemaAccess.cpp [CodeComplete] Fix a crash in access checks of inner classes 2018-12-05 17:38:39 +00:00
SemaAttr.cpp Add support for namespaces on #pragma clang attribute 2018-12-20 22:32:04 +00:00
SemaCUDA.cpp [AST][NFC] Pass the AST context to one of the ctor of DeclRefExpr. 2018-12-21 14:10:18 +00:00
SemaCXXScopeSpec.cpp Clean up and simplify RequireCompleteType. 2018-08-07 21:35:41 +00:00
SemaCast.cpp Revert "Revert r347417 "Re-Reinstate 347294 with a fix for the failures."" 2018-11-30 23:41:18 +00:00
SemaChecking.cpp Fix false positive unsequenced access and modification warning in array subscript expression. 2019-01-10 19:03:33 +00:00
SemaCodeComplete.cpp [Sema][NFC] Fix Wimplicit-fallthrough warning in getCursorKindForDecl 2018-12-21 17:52:13 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp [AST] Remove ASTContext from getThisType (NFC) 2019-01-11 01:54:53 +00:00
SemaDecl.cpp [Sema] If CheckPlaceholderExpr rewrites the initializer of an auto 2019-01-11 04:57:34 +00:00
SemaDeclAttr.cpp [attributes] Extend os_returns_(not_?)_retained attributes to parameters 2019-01-11 18:02:08 +00:00
SemaDeclCXX.cpp [Sema] Make canPassInRegisters return true if the CXXRecordDecl passed 2019-01-11 07:06:38 +00:00
SemaDeclObjC.cpp Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
SemaExceptionSpec.cpp Create ConstantExpr class 2018-10-31 03:48:47 +00:00
SemaExpr.cpp [AST] Remove ASTContext from getThisType (NFC) 2019-01-11 01:54:53 +00:00
SemaExprCXX.cpp [Sema] If CheckPlaceholderExpr rewrites the initializer of an auto 2019-01-11 04:57:34 +00:00
SemaExprMember.cpp [Sema/Attribute] Check for noderef attribute 2018-12-06 01:05:54 +00:00
SemaExprObjC.cpp [Sema] Call CheckPlaceholderExpr to resolve typeof or decltype 2019-01-10 20:12:16 +00:00
SemaFixItUtils.cpp [Sema] Revert r329346 because of memory sanitizer failures. 2018-04-05 22:15:42 +00:00
SemaInit.cpp [AST] Store the arguments of CXXConstructExpr in a trailing array 2018-12-22 14:39:30 +00:00
SemaLambda.cpp [Sema] If CheckPlaceholderExpr rewrites the initializer of an auto 2019-01-11 04:57:34 +00:00
SemaLookup.cpp DR674, PR38883, PR40238: Qualified friend lookup should look for a 2019-01-07 06:00:46 +00:00
SemaObjCProperty.cpp [AST][NFC] Pass the AST context to one of the ctor of DeclRefExpr. 2018-12-21 14:10:18 +00:00
SemaOpenMP.cpp [OpenMP] Avoid remainder operations for loop index values on a collapsed loop nest. 2019-01-09 20:45:26 +00:00
SemaOverload.cpp Remember to instantiate explicit template argument lists in a friend 2019-01-11 01:59:33 +00:00
SemaPseudoObject.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
SemaStmt.cpp Refactor the way we handle diagnosing unused expression results. 2019-01-04 16:58:14 +00:00
SemaStmtAsm.cpp Use "EvaluateAsRValue" instead of as a known int, because if it's not a known 2018-12-19 04:54:29 +00:00
SemaStmtAttr.cpp Add two new pragmas for controlling software pipelining optimizations. 2019-01-04 17:20:00 +00:00
SemaTemplate.cpp [AST] Remove ASTContext from getThisType (NFC) 2019-01-11 01:54:53 +00:00
SemaTemplateDeduction.cpp [Sema] Call CheckPlaceholderExpr to resolve typeof or decltype 2019-01-10 20:12:16 +00:00
SemaTemplateInstantiate.cpp [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00
SemaTemplateInstantiateDecl.cpp Remember to instantiate explicit template argument lists in a friend 2019-01-11 01:59:33 +00:00
SemaTemplateVariadic.cpp [SemaCXX] Fix ICE for unexpanded parameter pack 2019-01-07 03:25:59 +00:00
SemaType.cpp [Sema] Call CheckPlaceholderExpr to resolve typeof or decltype 2019-01-10 20:12:16 +00:00
TreeTransform.h Refactor the way we handle diagnosing unused expression results. 2019-01-04 16:58:14 +00:00
TypeLocBuilder.cpp
TypeLocBuilder.h Remove trailing space 2018-07-30 19:24:48 +00:00