llvm-project/clang/test
Eric Fiselier 8e92050794 [SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03
When -faligned-allocation is specified in C++03 libc++ defines
std::align_val_t as an unscoped enumeration type (because Clang didn't
provide scoped enumerations as an extension until 8.0).
Unfortunately Clang confuses the `align_val_t` overloads of delete with
the sized deallocation overloads which aren't enabled. This caused Clang
to call the aligned deallocation function as if it were the sized
deallocation overload.

For example: https://godbolt.org/z/xXJELh

This patch fixes the confusion.

llvm-svn: 351294
2019-01-16 02:34:36 +00:00
..
ARCMT
AST Re-order type param children of ObjC nodes 2019-01-15 23:07:30 +00:00
ASTMerge
Analysis Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
CXX DR674, PR38883, PR40238: Qualified friend lookup should look for a 2019-01-07 06:00:46 +00:00
CodeCompletion Refactor the way we handle diagnosing unused expression results. 2019-01-04 16:58:14 +00:00
CodeGen [EH] Rename llvm.x86.seh.recoverfp intrinsic to llvm.eh.recoverfp 2019-01-16 00:50:44 +00:00
CodeGenCUDA [CUDA] Treat extern global variable shadows same as regular extern vars. 2018-12-22 01:11:09 +00:00
CodeGenCXX [EH] Rename llvm.x86.seh.recoverfp intrinsic to llvm.eh.recoverfp 2019-01-16 00:50:44 +00:00
CodeGenCoroutines Revert "[CodeGenCXX] Treat 'this' as noalias in constructors" 2018-10-15 15:43:00 +00:00
CodeGenObjC [ObjCARC] Add an new attribute, objc_externally_retained 2019-01-04 18:33:06 +00:00
CodeGenObjCXX [CodeGen] Replace '@' characters in block descriptors' symbol names with 2018-12-29 17:28:30 +00:00
CodeGenOpenCL [AMDGPU] Separate feature dot-insts 2019-01-10 03:25:47 +00:00
CodeGenOpenCLCXX [OpenCL] Set generic addr space of 'this' in special class members. 2019-01-14 11:44:22 +00:00
Coverage [Frontend] Delete -print-decl-contexts 2018-10-03 03:50:44 +00:00
CoverageMapping [Coverage] Specify the Itanium ABI triple for a C++ test 2018-11-28 20:51:09 +00:00
Driver [clang-cl] Alias /Zc:alignedNew[-] to -f[no-]aligned-allocation 2019-01-15 21:24:55 +00:00
FixIt Introduce the _Clang scoped attribute token. 2018-11-09 17:19:45 +00:00
Format
Frontend Validate -add-plugin arguments. 2019-01-03 18:26:06 +00:00
Headers Revert "[X86] Make _xgetbv/_xsetbv on non-windows platforms" 2019-01-15 17:23:36 +00:00
Import [AST] Store "UsesADL" information in CallExpr. 2018-12-12 21:50:55 +00:00
Index [libclang] Fix clang_Cursor_isAnonymous 2019-01-10 09:34:44 +00:00
Integration
Layout
Lexer Implementation Feature Test Macros for P0722R3 2019-01-11 17:09:22 +00:00
Misc [Nios2] Remove Nios2 backend 2019-01-15 19:58:36 +00:00
Modules CodeGen: fix autolink emission on ELF 2019-01-05 19:27:12 +00:00
OpenMP [OpenMP] Avoid remainder operations for loop index values on a collapsed loop nest. 2019-01-09 20:45:26 +00:00
PCH Reuse code from CGDebugInfo::getOrCreateFile() when creating the file 2018-12-11 16:58:43 +00:00
Parser Add two new pragmas for controlling software pipelining optimizations. 2019-01-04 17:20:00 +00:00
Preprocessor [MSVC Compat] Fix typo correction for inclusion directives. 2019-01-15 20:08:23 +00:00
Profile
Refactor
Rewriter
Sema Fix cpu-dispatch MV regression caused by r347812 2019-01-15 17:51:09 +00:00
SemaCUDA [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors 2018-10-09 15:53:14 +00:00
SemaCXX [SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03 2019-01-16 02:34:36 +00:00
SemaObjC Improve a -Wunguarded-availability note 2019-01-14 19:17:31 +00:00
SemaObjCXX Distinguish `__block` variables that are captured by escaping blocks 2018-10-01 21:51:28 +00:00
SemaOpenCL OpenCL: Improve vector printf warnings 2018-12-01 22:16:27 +00:00
SemaOpenCLCXX [OpenCL] Set generic addr space of 'this' in special class members. 2019-01-14 11:44:22 +00:00
SemaTemplate Remember to instantiate explicit template argument lists in a friend 2019-01-11 01:59:33 +00:00
TableGen
Templight
Tooling Revert "[Tooling] Make clang-tool find libc++ dir on mac when running on a file without compilation database." 2019-01-16 00:37:39 +00:00
Unit
VFS [VFS] Implement `RedirectingFileSystem::getRealPath`. 2018-11-16 01:18:04 +00:00
clang-rename
.clang-format
CMakeLists.txt [analyzer][CrossTU][NFC] Generalize to external definitions instead of external functions 2019-01-10 17:44:04 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [analyzer][CrossTU][NFC] Generalize to external definitions instead of external functions 2019-01-10 17:44:04 +00:00
lit.site.cfg.py.in Import lit.llvm after rC341132 2018-08-31 00:24:36 +00:00
make_test_dirs.pl