Lines Matching refs:SM
19 static const IfStmt *getPrecedingIf(const SourceManager &SM, in getPrecedingIf() argument
26 if (SM.getExpansionLineNumber(PreviousElseLoc) == in getPrecedingIf()
27 SM.getExpansionLineNumber(If->getIfLoc())) in getPrecedingIf()
33 void MisleadingIndentationCheck::danglingElseCheck(const SourceManager &SM, in danglingElseCheck() argument
42 if (SM.getExpansionLineNumber(If->getThen()->getEndLoc()) == in danglingElseCheck()
43 SM.getExpansionLineNumber(ElseLoc)) in danglingElseCheck()
47 for (auto PrecedingIf = getPrecedingIf(SM, Context, If); PrecedingIf; in danglingElseCheck()
48 PrecedingIf = getPrecedingIf(SM, Context, PrecedingIf)) in danglingElseCheck()
51 if (SM.getExpansionColumnNumber(IfLoc) != in danglingElseCheck()
52 SM.getExpansionColumnNumber(ElseLoc)) in danglingElseCheck()
56 void MisleadingIndentationCheck::missingBracesCheck(const SourceManager &SM, in missingBracesCheck() argument
88 if (SM.getExpansionLineNumber(InnerLoc) == in missingBracesCheck()
89 SM.getExpansionLineNumber(OuterLoc)) in missingBracesCheck()
98 if (SM.getExpansionColumnNumber(InnerLoc) == in missingBracesCheck()
99 SM.getExpansionColumnNumber(NextLoc)) { in missingBracesCheck()