rsmith added a comment.
Thanks for working on this!
Comments on the general approach:
- We should only evaluate each immediate invocation once (this will become
essential once we start supporting reflection -- and particularly operations
that mutate the AST -- inside `consteval` functions).
-
efriedma added a comment.
"complex" in this context is the C99 `_Complex`, which is supported in C++ as
an extension, using the same syntax as C. You can just declare a variable with
type `_Complex float`. If you need to manipulate the real and imaginary parts
of a variable, you can use the gc
martong resigned from this revision.
martong added a comment.
Herald added a subscriber: rnkovacs.
ASTImporter.cpp looks good to me.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61790/new/
https://reviews.llvm.org/D61790
__
Tyker created this revision.
Tyker added a reviewer: rsmith.
Herald added a reviewer: martong.
Herald added a reviewer: shafik.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
this revision adds the consteval specifier as specified by
http://www.open-std.org/jtc1/sc22/wg21/