Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisleadingIndentationCheck.cpp27 SM.getExpansionLineNumber(If->getIfLoc())) in getPrecedingIf()
36 SourceLocation IfLoc = If->getIfLoc(); in danglingElseCheck()
49 IfLoc = PrecedingIf->getIfLoc(); in danglingElseCheck()
H A DElseAfterReturnCheck.cpp273 SourceRange(If->getIfLoc()), in check()
284 tooling::fixit::getText(If->getIfLoc(), *Result.Context)) in check()
286 Diag << tooling::fixit::createReplacement(SourceRange(If->getIfLoc()), in check()
308 SourceRange(If->getIfLoc()), in check()
311 tooling::fixit::getText(If->getIfLoc(), *Result.Context)) in check()
H A DFunctionCognitiveComplexityCheck.cpp266 CC.account(Node->getIfLoc(), CurrentNestingLevel, Reasons); in TraverseIfStmt()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h2099 SourceLocation getIfLoc() const { return IfStmtBits.IfLoc; } in getIfLoc() function
2145 SourceLocation getBeginLoc() const { return getIfLoc(); } in getBeginLoc()
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp1463 Builder.markChildToken(S->getIfLoc(), syntax::NodeRole::IntroducerKeyword); in WalkUpFromIfStmt()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterStmt.cpp157 Record.AddSourceLocation(S->getIfLoc()); in VisitIfStmt()
/llvm-project-15.0.7/clang/lib/Sema/
H A DTreeTransform.h7478 S->getIfLoc(), S->getConditionVariable(), S->getCond(), in TransformIfStmt()
7516 S->getIfLoc(), S->getStatementKind(), S->getLParenLoc(), Cond, in TransformIfStmt()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTImporter.cpp6441 auto ToIfLoc = importChecked(Err, S->getIfLoc()); in VisitIfStmt()