llvm-project/clang/lib
Akira Hatanaka cae83f78aa [Sema] Issue diagnostics if a new/delete expression generates a call to
a c++17 aligned allocation/deallocation function that is unavailable in
the standard library on Apple platforms.

The aligned functions are implemented only in the following versions or
later versions of the OSes, so clang issues diagnostics if the deployment
target being targeted is older than these:

macosx: 10.13
ios: 11.0
tvos: 11.0
watchos: 4.0

The diagnostics are issued whenever the aligned functions are selected
except when the selected function has a definition in the same file.
If there is a user-defined function available somewhere else, option
-Wno-aligned-allocation-unavailable can be used to silence the
diagnostics.

rdar://problem/32664169

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

llvm-svn: 306722
2017-06-29 18:48:40 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST [Sema] Issue diagnostics if a new/delete expression generates a call to 2017-06-29 18:48:40 +00:00
ASTMatchers [ASTMatchers] Fix use after free. 2017-06-09 17:55:42 +00:00
Analysis Changed wording in comment 2017-06-21 05:41:39 +00:00
Basic [Clang][X86][Goldmont]Adding new target-cpu: Goldmont 2017-06-29 13:41:04 +00:00
CodeGen CodeGen: Fix invalid bitcast for coerced function argument 2017-06-29 18:47:45 +00:00
Driver [Sema] Issue diagnostics if a new/delete expression generates a call to 2017-06-29 18:48:40 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format [clang-format] Fix parsing of msg{field}-style proto options 2017-06-29 13:30:41 +00:00
Frontend [Sema] Issue diagnostics if a new/delete expression generates a call to 2017-06-29 18:48:40 +00:00
FrontendTool Add -frewrite-imports flag. 2017-06-09 21:24:02 +00:00
Headers [DOXYGEN] Corrected several typos and incorrect parameters description that Sony's techinical writer found during review. 2017-06-06 22:58:01 +00:00
Index [index] Add the "SpecializationOf" relation to the forward declarations 2017-06-22 11:20:07 +00:00
Lex Track the set of module maps read while building a .pcm file and reload those when preprocessing from that .pcm file. 2017-06-29 02:19:42 +00:00
Parse [Sema] Fix a crash-on-invalid when a template parameter list has a class 2017-06-26 18:46:12 +00:00
Rewrite Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:29:40 +00:00
Sema [Sema] Issue diagnostics if a new/delete expression generates a call to 2017-06-29 18:48:40 +00:00
Serialization Track the set of module maps read while building a .pcm file and reload those when preprocessing from that .pcm file. 2017-06-29 02:19:42 +00:00
StaticAnalyzer [analyzer] Move zero-size allocation checks to optin.portability. 2017-06-27 11:14:39 +00:00
Tooling [Tooling] FixedCompilationDatabase should be able to strip positional 2017-06-29 10:43:44 +00:00
CMakeLists.txt