summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/readability-misleading-indentation.cpp
blob: 8b2301017087a640b4fd0e4101366746494653fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void f()
{
}

void foo() {
  if (1)
    if (0)
      f();
  else
    f();
}

void foo2() {
  constexpr bool a = true;
  if constexpr (a) {
    f();
  } else {
    f();
  }
}