aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorCorentin Jabot <corentin.jabot@gmail.com>2021-10-05 08:02:53 -0400
committerAaron Ballman <aaron@aaronballman.com>2021-10-05 08:04:14 -0400
commit424733c12aacc227a28114deba72061153f8dff2 (patch)
treec1d226c79ba125ab6f0e9234411f2eac41745c35 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentb5a11a991e17982bb9915d295797410186aa9894 (diff)
downloadllvm-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