diff options
author | Corentin Jabot <corentin.jabot@gmail.com> | 2021-10-05 08:02:53 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2021-10-05 08:04:14 -0400 |
commit | 424733c12aacc227a28114deba72061153f8dff2 (patch) | |
tree | c1d226c79ba125ab6f0e9234411f2eac41745c35 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | b5a11a991e17982bb9915d295797410186aa9894 (diff) | |
download | llvm-424733c12aacc227a28114deba72061153f8dff2.zip llvm-424733c12aacc227a28114deba72061153f8dff2.tar.gz llvm-424733c12aacc227a28114deba72061153f8dff2.tar.bz2 |
Implement if consteval (P1938)
Modify the IfStmt node to suppoort constant evaluated expressions.
Add a new ExpressionEvaluationContext::ImmediateFunctionContext to
keep track of immediate function contexts.
This proved easier/better/probably more efficient than walking the AST
backward as it allows diagnosing nested if consteval statements.
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions