File tree Expand file tree Collapse file tree
cpp/ql/test/library-tests/constexpr_if Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ | test.cpp:3:17:13:1 | { ... } |
2+ | test.cpp:4:5:4:10 | declaration |
3+ | test.cpp:5:5:9:5 | if constexpr (...) ... |
4+ | test.cpp:5:25:7:5 | { ... } |
5+ | test.cpp:6:9:6:14 | ExprStmt |
6+ | test.cpp:7:12:9:5 | { ... } |
7+ | test.cpp:8:9:8:14 | ExprStmt |
8+ | test.cpp:10:5:12:5 | if constexpr (...) ... |
9+ | test.cpp:10:26:12:5 | { ... } |
10+ | test.cpp:11:9:11:14 | ExprStmt |
11+ | test.cpp:13:1:13:1 | return ... |
Original file line number Diff line number Diff line change 1+ import cpp
2+
3+ from Stmt s
4+ select s
Original file line number Diff line number Diff line change 1+ // semmle-extractor-options: --edg --c++20
2+
3+ void test (void ) {
4+ int x;
5+ if constexpr (true ) {
6+ x = 1 ;
7+ } else {
8+ x = 2 ;
9+ }
10+ if constexpr (false ) {
11+ x = 3 ;
12+ }
13+ }
14+
You can’t perform that action at this time.
0 commit comments