Home
last modified time | relevance | path

Searched refs:PrecedingIf (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMisleadingIndentationCheck.cpp24 if (const auto *PrecedingIf = parents[0].get<IfStmt>()) { in getPrecedingIf() local
25 SourceLocation PreviousElseLoc = PrecedingIf->getElseLoc(); in getPrecedingIf()
28 return PrecedingIf; in getPrecedingIf()
47 for (auto PrecedingIf = getPrecedingIf(SM, Context, If); PrecedingIf; in danglingElseCheck() local
48 PrecedingIf = getPrecedingIf(SM, Context, PrecedingIf)) in danglingElseCheck()
49 IfLoc = PrecedingIf->getIfLoc(); in danglingElseCheck()