llvm-project/clang/test
Tyker 008e7bf923 [C++20] Add consteval-specific semantic for functions
Summary:
Changes:
 - Calls to consteval function are now evaluated in constant context but IR is still generated for them.
 - Add diagnostic for taking address of a consteval function in non-constexpr context.
 - Add diagnostic for address of consteval function accessible at runtime.
 - Add tests

Reviewers: rsmith, aaron.ballman

Reviewed By: rsmith

Subscribers: mgrang, riccibruno, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63960
2020-02-04 20:38:32 +01:00
..
ARCMT
AST [Concepts] Placeholder constraints and abbreviated templates 2020-01-23 19:39:43 +02:00
ASTMerge
Analysis [analyzer] Suppress linker invocation in scan-build tests. 2020-02-04 00:12:24 +03:00
CXX Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
ClangScanDeps [clang][clang-scan-deps] Aggregate the full dependency information. 2020-01-23 16:58:50 -08:00
CodeCompletion [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
CodeGen Separately track input and output denormal mode 2020-02-04 12:59:21 -05:00
CodeGenCUDA Separately track input and output denormal mode 2020-02-04 12:59:21 -05:00
CodeGenCXX Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
CodeGenCoroutines Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
CodeGenHIP Don't dump IR output from this test to stdout. 2020-01-16 19:19:45 -08:00
CodeGenObjC [objc_direct] fix codegen for mismatched Decl/Impl return types 2020-01-30 18:17:45 -08:00
CodeGenObjCXX Debug Info: Strengthen the synthesized-property-cleanup.mm test, NFC 2019-12-10 13:39:22 -08:00
CodeGenOpenCL Corrected clang amdgpu-features.cl test for 6d614a82a4 (AMDGPU MFMA built-ins) 2020-01-28 05:41:42 -05:00
CodeGenOpenCLCXX [OpenCL] Add ExtVectorElementExpr constant evaluation (PR42387) 2019-12-17 11:10:06 +00:00
Coverage
CoverageMapping
Driver Separately track input and output denormal mode 2020-02-04 12:59:21 -05:00
FixIt Revert "[objc_direct] Small updates to help with adoption." 2020-01-30 18:21:25 -08:00
Format
Frontend [clang][test][NFC] Use more widely supported sanitizer for file dependency tests 2020-01-14 12:55:11 -08:00
Headers Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
Import
Index [OpenCL] Pretty print __private addr space 2019-12-27 13:42:07 +00:00
Integration
InterfaceStubs [clang][IFS][test] Temporary work around for in-process cc1 ASAN issues. 2020-01-21 22:56:20 -05:00
Layout
Lexer Detect source location overflow due includes 2020-01-24 23:56:47 +00:00
Misc [Sema] Remove a -Wrange warning from -Wall 2020-02-01 18:44:27 +01:00
Modules Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
OpenMP Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
PCH Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
Parser [Driver] Change -fmax-tokens $arg to -fmax-tokens=$arg 2020-02-04 09:39:48 -08:00
Preprocessor clang: Only define OBJC_NEW_PROPERTIES when -x objective-c 2020-01-24 14:55:12 -08:00
Profile
Refactor
Rewriter
Sema [clang] detect switch fallthrough marked by a comment (PR43465) 2020-02-03 19:33:05 +01:00
SemaCUDA
SemaCXX [C++20] Add consteval-specific semantic for functions 2020-02-04 20:38:32 +01:00
SemaObjC Revert "[objc_direct] Small updates to help with adoption." 2020-01-30 18:21:25 -08:00
SemaObjCXX Clean up and slightly generalize implementation of composite pointer 2020-01-10 16:12:00 -08:00
SemaOpenCL Add missing clang tests for 6d614a82a4 (AMDGPU MFMA built-ins) 2020-01-28 04:41:21 -05:00
SemaOpenCLCXX Make address-space-lambda.cl pass on 32-bit Windows 2020-01-24 20:35:25 +01:00
SemaSYCL
SemaTemplate [Concepts] Instantiate invented template type parameter type-constraint along with function parameters 2020-02-03 16:51:49 +02:00
TableGen
Templight
Tooling
Unit
VFS Fix external-names.c test when separator is \\ 2019-12-31 11:15:46 +00:00
clang-rename
.clang-format
CMakeLists.txt [Clang][Driver] Re-use the calling process instead of creating a new process for the cc1 invocation 2020-01-13 10:40:18 -05:00
TestRunner.sh
cxx-sections.data
lit.cfg.py
lit.site.cfg.py.in build: reduce CMake handling for zlib 2020-01-02 11:19:12 -08:00
make_test_dirs.pl