llvm-project/clang/test
Richard Smith d05df0ef43 Reject attempts to call non-static member functions on objects outside
their lifetime in constant expressions.

This is undefined behavior per [class.cdtor]p2.

We continue to allow this for objects whose values are not visible
within the constant evaluation, because there's no way we can tell
whether the access is defined or not, existing code relies on the
ability to make such calls, and every other compiler allows such
calls.

llvm-svn: 360499
2019-05-11 02:00:06 +00:00
..
ARCMT
AST [clang] fixing -ast-print for variadic parameter pack in lambda capture 2019-05-05 12:35:12 +00:00
ASTMerge/choose-expr [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-26 19:26:41 +00:00
Analysis [analyzer] Fix a crash when doing RVO from within blocks. 2019-05-07 22:33:13 +00:00
CXX Reject attempts to call non-static member functions on objects outside 2019-05-11 02:00:06 +00:00
CodeCompletion [CodeComplete] Add a trailing semicolons to some pattern completions 2019-05-06 13:18:00 +00:00
CodeGen [ThinLTO] Clang test changes for new CanAutoHide flag 2019-05-10 20:38:31 +00:00
CodeGenCUDA [HIP] Fix visibility of `__constant__` variables. 2019-04-26 19:31:48 +00:00
CodeGenCXX [Sema] Mark array element destructors referenced during initialization 2019-05-10 17:52:26 +00:00
CodeGenCoroutines
CodeGenObjC [CodeGen][ObjC] Emit invoke instead of call to call `objc_release` when 2019-05-10 21:54:16 +00:00
CodeGenObjCXX Specify target triple to fix the tests I committed in r360359 that are 2019-05-09 18:32:16 +00:00
CodeGenOpenCL [Sema][OpenCL] Make address space conversions a bit stricter. 2019-05-08 14:23:49 +00:00
CodeGenOpenCLCXX [OpenCL] Make global ctor init function a kernel 2019-05-09 13:55:44 +00:00
Coverage
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver [cc1as] Change -compress-debug-sections= to use -- 2019-05-11 01:14:50 +00:00
FixIt [c++20] Implement P0846R0: allow (ADL-only) calls to template-ids whose 2019-05-09 03:31:27 +00:00
Format
Frontend Add target triple to test. 2019-05-10 20:07:47 +00:00
Headers Try to restore some clang test headers lost in r360291 2019-05-08 22:30:46 +00:00
Import [ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition 2019-04-26 18:51:28 +00:00
Index Replace 'REQUIRES: not_?san' with 'UNSUPPORTED: ?san' as that better 2019-05-10 17:57:22 +00:00
Integration
Layout
Lexer Factor out repeated code parsing and concatenating header-names from 2019-03-19 01:51:19 +00:00
Misc [c++20] Implement P0846R0: allow (ADL-only) calls to template-ids whose 2019-05-09 03:31:27 +00:00
Modules Replace lit feature keyword 'non-ms-sdk' with 'ms-sdk'; eliminate 2019-05-10 13:40:17 +00:00
OpenMP [OPENMP]Fix PR41767: diagnose DSA for variables in clauses with default(none). 2019-05-09 18:44:53 +00:00
PCH [c++20] Add support for explicit(bool), as described in P0892R2. 2019-05-09 03:59:21 +00:00
Parser Remember to decay arrays to pointers before checking whether the 2019-05-09 22:22:48 +00:00
Preprocessor Fixed tests where grep was not matching the linefeed 2019-05-10 20:11:36 +00:00
Profile [PGO] Fix buildbot failure in 359215 2019-04-25 21:16:41 +00:00
Refactor
Rewriter
Sema Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration" 2019-05-07 03:20:17 +00:00
SemaCUDA Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
SemaCXX Reject attempts to call non-static member functions on objects outside 2019-05-11 02:00:06 +00:00
SemaObjC Fix for the greendragon bots. 2019-05-08 05:59:25 +00:00
SemaObjCXX Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration" 2019-05-07 03:20:17 +00:00
SemaOpenCL [Sema][OpenCL] Make address space conversions a bit stricter. 2019-05-08 14:23:49 +00:00
SemaOpenCLCXX [OpenCL] Prevent mangling kernel functions. 2019-05-07 14:22:34 +00:00
SemaTemplate Replace 'REQUIRES: not_?san' with 'UNSUPPORTED: ?san' as that better 2019-05-10 17:57:22 +00:00
TableGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Templight
Tooling Remove a bogus sed option in test. 2019-04-08 16:34:38 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS [VFS] Implement `RedirectingFileSystem::getRealPath`. 2018-11-16 01:18:04 +00:00
clang-rename
.clang-format
CMakeLists.txt Revert r359717, "Make check-clang depend on the clang-check binary always" 2019-05-01 23:32:38 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Replace lit feature keyword 'non-ms-sdk' with 'ms-sdk'; eliminate 2019-05-10 13:40:17 +00:00
lit.site.cfg.py.in Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +00:00
make_test_dirs.pl