Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 133e2d0

Browse files
committed
C++: Add a changenote for Function.{isDeclaredConstexpr,isConstexpr}()
1 parent 4bd03d5 commit 133e2d0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

change-notes/1.20/analysis-cpp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636

3737
* There is a new `Namespace.isInline()` predicate, which holds if the namespace was declared as `inline namespace`.
3838
* The `Expr.isConstant()` predicate now also holds for _address constant expressions_, which are addresses that will be constant after the program has been linked. These address constants do not have a result for `Expr.getValue()`.
39+
* There are new `Function.isDeclaredConstexpr()` and `Function.isConstexpr()` predicates. They can be used to tell whether a function was declared as `constexpr`, and whether it actually is `constexpr`.

0 commit comments

Comments
 (0)