llvm-project/clang/lib/Sema
Richard Smith 351241c83e Replace Sema-level implementation of -fassume-sane-operator-new with a
CodeGen-level implementation. Instead of adding an attribute to clang's
FunctionDecl, add the IR attribute directly. This means a module built with
this flag is now compatible with code built without it and vice versa.

This change also results in the 'noalias' attribute no longer being added to
calls to operator new in the IR; it's now only added to the declaration. It
also fixes a bug where we failed to add the attribute to the 'nothrow' versions
(because we didn't implicitly declare them, there was no good time to inject a
fake attribute).

llvm-svn: 265728
2016-04-07 21:46:12 +00:00
..
AnalysisBasedWarnings.cpp P0188R1: add support for standard [[fallthrough]] attribute. This is almost 2016-03-08 00:32:55 +00:00
AttributeList.cpp P0188R1: add support for standard [[fallthrough]] attribute. This is almost 2016-03-08 00:32:55 +00:00
CMakeLists.txt [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
CodeCompleteConsumer.cpp Silence some MSVC false positive warnings about integer zexts and falling off the end of a covered switch 2016-02-10 19:09:15 +00:00
DeclSpec.cpp Move LocInfoType from Sema to AST. 2016-02-01 17:42:01 +00:00
DelayedDiagnostic.cpp Addressing review comments for r261163. 2016-02-22 04:47:24 +00:00
IdentifierResolver.cpp [modules] Separately track whether an identifier's preprocessor information and 2016-02-05 19:03:40 +00:00
JumpDiagnostics.cpp Some minor ARC diagnostic improvements. 2015-10-21 18:06:38 +00:00
MultiplexExternalSemaSource.cpp Store list of undefined-but-used objects in a deterministic order to fix 2016-03-25 21:49:43 +00:00
Scope.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 19:38:18 +00:00
ScopeInfo.cpp [Objective-c] Do not set IsExact to true when the receiver is a class. 2016-03-22 05:00:21 +00:00
Sema.cpp Store list of undefined-but-used objects in a deterministic order to fix 2016-03-25 21:49:43 +00:00
SemaAccess.cpp Make SemaAccess smarter about determining when a dependent class might 2016-03-23 20:39:06 +00:00
SemaAttr.cpp Implement support for [[maybe_unused]] in C++1z that is based off existing support for unused, and treat it as an extension pre-C++1z. This also means extending the existing unused attribute so that it can be placed on an enum and enumerator, in addition to the other subjects. 2016-03-09 16:48:08 +00:00
SemaCUDA.cpp [CUDA] Make unattributed constexpr functions implicitly host+device. 2016-03-30 23:30:21 +00:00
SemaCXXScopeSpec.cpp [typo-correction] Apply name specifier corrections when forming a NNS 2016-02-16 19:16:20 +00:00
SemaCast.cpp [MS ABI] Assign an inheritance model for the dest of a member pointer upcast 2016-03-22 16:44:39 +00:00
SemaChecking.cpp Fix -Wdynamic-class-memaccess to skip invalid classes. 2016-03-31 04:18:07 +00:00
SemaCodeComplete.cpp [Parse] Code complete expressions in bracket declarators. 2016-02-18 15:30:24 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp [coroutines] Build a CoroutineBodyStmt when finishing parsing a coroutine, and form the initial_suspend, final_suspend, and get_return_object calls. 2015-11-24 02:34:39 +00:00
SemaDecl.cpp [OPENMP] Parsing and Sema support for 'omp declare target' directive 2016-04-06 11:38:59 +00:00
SemaDeclAttr.cpp [Objective-C] Introduce objc_runtime_visible attribute. 2016-04-01 23:23:52 +00:00
SemaDeclCXX.cpp Diagnose template alias declarations in local classes. 2016-04-06 17:38:58 +00:00
SemaDeclObjC.cpp [ObjC kindof] Use type bound to filter out the candidate methods. 2016-04-07 19:32:24 +00:00
SemaExceptionSpec.cpp Wire a SourceLocation into IsDerivedFrom and move the RequireCompleteType call 2015-12-18 21:45:41 +00:00
SemaExpr.cpp [OPENMP] Parsing and Sema support for 'omp declare target' directive 2016-04-06 11:38:59 +00:00
SemaExprCXX.cpp Replace Sema-level implementation of -fassume-sane-operator-new with a 2016-04-07 21:46:12 +00:00
SemaExprMember.cpp [OPENMP 4.5] Codegen for data members in 'reduction' clause. 2016-03-02 04:57:40 +00:00
SemaExprObjC.cpp [ObjC kindof] Use type bound to filter out the candidate methods. 2016-04-07 19:32:24 +00:00
SemaFixItUtils.cpp Wire a SourceLocation into IsDerivedFrom and move the RequireCompleteType call 2015-12-18 21:45:41 +00:00
SemaInit.cpp P0138R2: Allow direct-list-initialization of an enumeration from an integral 2016-03-28 06:08:37 +00:00
SemaLambda.cpp [Cxx1z-constexpr-lambda-P0170R1] Support parsing of constexpr specifier (and its inference) on lambda expressions 2016-03-26 16:11:37 +00:00
SemaLookup.cpp Change ADL to produce lookup results in a deterministic order. This fixes some 2016-03-24 19:12:22 +00:00
SemaObjCProperty.cpp ObjC: add getter/setter for class properties to global pool. 2016-03-23 21:39:31 +00:00
SemaOpenMP.cpp [OPENMP 4.0] Parsing/sema analysis for 'simdlen' clause in 'declare simd' 2016-04-07 12:45:37 +00:00
SemaOverload.cpp NFC: simplify code in BuildInstanceMessage. 2016-04-07 19:30:20 +00:00
SemaPseudoObject.cpp Class Property: class property and instance property can have the same name. 2016-01-28 18:49:28 +00:00
SemaStmt.cpp P0184R0: Allow types of 'begin' and 'end' expressions in range-based for loops to differ. 2016-03-20 10:33:40 +00:00
SemaStmtAsm.cpp Avoid using LookupResult's implicit copy ctor and assignment operator to avoid warnings 2016-03-16 09:56:58 +00:00
SemaStmtAttr.cpp [OpenCL] Added nosvm attribute for OpenCL v2.0. 2016-03-31 11:07:22 +00:00
SemaTemplate.cpp Fix a crash on invalid with template handling 2016-04-05 21:13:54 +00:00
SemaTemplateDeduction.cpp [Sema] Make type deduction work with some overloadable functions 2016-03-19 21:51:45 +00:00
SemaTemplateInstantiate.cpp Make sure to perform dependent access checks when instantiating a 2016-03-23 20:07:07 +00:00
SemaTemplateInstantiateDecl.cpp [OPENMP 4.0] Parsing/sema analysis for 'simdlen' clause in 'declare simd' 2016-04-07 12:45:37 +00:00
SemaTemplateVariadic.cpp Implement P0036R0: remove support for empty unary folds of +, *, |, &. 2016-03-04 21:27:21 +00:00
SemaType.cpp Add attributes for preserve_mostcc/preserve_allcc calling conventions to the C/C++ front-end 2016-03-16 18:00:46 +00:00
TreeTransform.h [Cxx1z-constexpr-lambda-P0170R1] Support parsing of constexpr specifier (and its inference) on lambda expressions 2016-03-26 16:11:37 +00:00
TypeLocBuilder.cpp [Sema] Fix bug in TypeLocBuilder::pushImpl 2016-02-18 21:05:09 +00:00
TypeLocBuilder.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00