llvm-project/clang/test
Gauthier Harnisch 796ed03b84 [C++20] add Basic consteval specifier
Summary:
this revision adds Lexing, Parsing and Basic Semantic for the consteval specifier as specified by http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1073r3.html

with this patch, the consteval specifier is treated as constexpr but can only be applied to function declaration.

Changes:
 - add the consteval keyword.
 - add parsing of consteval specifier for normal declarations and lambdas expressions.
 - add the whether a declaration is constexpr is now represented by and enum everywhere except for variable because they can't be consteval.
 - adapt diagnostic about constexpr to print constexpr or consteval depending on the case.
 - add tests for basic semantic.

Reviewers: rsmith, martong, shafik

Reviewed By: rsmith

Subscribers: eraman, efriedma, rnkovacs, cfe-commits

Tags: #clang

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

llvm-svn: 363362
2019-06-14 08:56:20 +00:00
..
ARCMT
AST For DR712: store on a DeclRefExpr whether it constitutes an odr-use. 2019-06-11 17:50:32 +00:00
ASTMerge Fix ASTMerge/namespace/test.cpp after r360701 2019-05-14 20:01:03 +00:00
Analysis Revert 363295, it caused PR42276. Also revert follow-ups 363337, 363340. 2019-06-14 04:05:17 +00:00
CXX Revert 363295, it caused PR42276. Also revert follow-ups 363337, 363340. 2019-06-14 04:05:17 +00:00
ClangScanDeps [clang-scan-deps] initial outline of the tool that runs preprocessor to find 2019-06-12 21:32:49 +00:00
CodeCompletion Re-land "[CodeComplete] Improve overload handling for C++ qualified and ref-qualified methods." 2019-06-10 15:17:52 +00:00
CodeGen [Targets] Move soft-float-abi filtering to `initFeatureMap` 2019-06-14 00:35:17 +00:00
CodeGenCUDA LLVM IR: Generate new-style byval-with-Type from Clang 2019-06-05 21:12:14 +00:00
CodeGenCXX Revert 363295, it caused PR42276. Also revert follow-ups 363337, 363340. 2019-06-14 04:05:17 +00:00
CodeGenCoroutines
CodeGenObjC Revert r361811: 'Re-commit r357452 (take 2): "SimplifyCFG SinkCommonCodeFromPredecessors ...' 2019-06-13 02:04:45 +00:00
CodeGenObjCXX [Clang] Disable new PM for tests that use optimization level -O1, -O2 and -O3 2019-06-05 03:17:11 +00:00
CodeGenOpenCL [AMDGPU] gfx1011/gfx1012 clang support 2019-06-14 00:33:59 +00:00
CodeGenOpenCLCXX Introduce Value::stripPointerCastsSameRepresentation 2019-06-04 20:21:46 +00:00
Coverage Re-check in clang support gun asm goto after fixing tests. 2019-06-03 15:57:25 +00:00
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver [AMDGPU] gfx1011/gfx1012 clang support 2019-06-14 00:33:59 +00:00
FixIt [c++20] P0780R2: Support pack-expansion of init-captures. 2019-05-21 20:10:50 +00:00
Format
Frontend Add clang source minimizer that reduces source to directives 2019-06-03 22:59:17 +00:00
Headers [PowerPC] [Clang] Port SSE2 intrinsics to PowerPC 2019-06-12 05:25:40 +00:00
Import [ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition 2019-04-26 18:51:28 +00:00
Index [libclang] Allow skipping warnings from all included files 2019-06-11 14:14:24 +00:00
Integration
Layout
Lexer Add clang source minimizer that reduces source to directives 2019-06-03 22:59:17 +00:00
Misc DebugInfo: Add support for 'nodebug' attribute on typedefs and alias templates 2019-06-08 00:01:21 +00:00
Modules Fix r361428 for Windows buildbots/mangling 2019-05-22 21:58:17 +00:00
OpenMP LLVM IR: Generate new-style byval-with-Type from Clang 2019-06-05 21:12:14 +00:00
PCH For DR712: store on a DeclRefExpr whether it constitutes an odr-use. 2019-06-11 17:50:32 +00:00
Parser Re-check in clang support gun asm goto after fixing tests. 2019-06-03 15:57:25 +00:00
Preprocessor [CUDA] Fix grep pattern in cuda-types.cu 2019-06-10 22:28:20 +00:00
Profile [clang][NewPM] Fix broken profile test 2019-06-13 17:25:36 +00:00
Refactor
Rewriter
Sema [RISCV][NFC] Add missing test files for D54091 2019-06-11 12:49:15 +00:00
SemaCUDA Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
SemaCXX [C++20] add Basic consteval specifier 2019-06-14 08:56:20 +00:00
SemaObjC Add the `objc_class_stub` attribute. 2019-05-30 04:09:01 +00:00
SemaObjCXX If capturing a variable fails, add a capture anyway (and mark it 2019-05-28 23:09:44 +00:00
SemaOpenCL [OpenCL] Undefine cl_intel_planar_yuv extension 2019-06-03 13:02:43 +00:00
SemaOpenCLCXX [OpenCL][PR42031] Prevent deducing addr space in type alias. 2019-06-05 14:50:01 +00:00
SemaTemplate Mark declarations as referenced by a default argument in a 2019-06-11 23:51:46 +00:00
TableGen
Templight
Tooling [lit] Disable test on darwin when building shared libs. 2019-06-13 19:08:49 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS
clang-rename
.clang-format
CMakeLists.txt [clang-scan-deps] initial outline of the tool that runs preprocessor to find 2019-06-12 21:32:49 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [Analysis] Only run plugins tests if plugins are actually enabled 2019-05-17 06:07:37 +00:00
lit.site.cfg.py.in [Analysis] Only run plugins tests if plugins are actually enabled 2019-05-17 06:07:37 +00:00
make_test_dirs.pl