Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisleadingIndentationCheck.cpp93 SourceLocation NextLoc = NextStmt->getBeginLoc(); in missingBracesCheck() local
95 if (NextLoc.isInvalid() || NextLoc.isMacroID()) in missingBracesCheck()
99 SM.getExpansionColumnNumber(NextLoc)) { in missingBracesCheck()
100 diag(NextLoc, "misleading indentation: statement is indented too deeply"); in missingBracesCheck()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp76 SourceLocation NextLoc = S->getEndLoc(); in VisitSwitchStmt() local
81 CaseInfo(Curr, SourceRange(Curr->getBeginLoc(), NextLoc))); in VisitSwitchStmt()
82 NextLoc = Curr->getBeginLoc(); in VisitSwitchStmt()
/llvm-project-15.0.7/llvm/lib/Object/
H A DArchive.cpp432 const char *NextLoc = in getNextChildLoc() local
435 if (NextLoc == Parent->getMemoryBufferRef().getBufferEnd()) in getNextChildLoc()
438 return NextLoc; in getNextChildLoc()
589 const char *NextLoc = *NextLocOrErr; in getNext() local
592 if (NextLoc == nullptr) in getNext()
596 if (NextLoc > Parent->Data.getBufferEnd()) { in getNext()
609 Child Ret(Parent, NextLoc, &Err); in getNext()
/llvm-project-15.0.7/clang/lib/Lex/
H A DTokenLexer.cpp1007 SourceLocation NextLoc = NextTok->getLocation(); in updateConsecutiveMacroArgTokens() local
1008 if (CurLoc.isFileID() != NextLoc.isFileID()) in updateConsecutiveMacroArgTokens()
1012 if (!SM.isInSameSLocAddrSpace(CurLoc, NextLoc, &RelOffs)) in updateConsecutiveMacroArgTokens()
1019 if (CurLoc.isMacroID() && !SM.isWrittenInSameFile(CurLoc, NextLoc)) in updateConsecutiveMacroArgTokens()
1022 CurLoc = NextLoc; in updateConsecutiveMacroArgTokens()
H A DPPMacroExpansion.cpp1526 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() local
1527 while (NextLoc.isValid()) { in ExpandBuiltinMacro()
1528 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro()
1532 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeFixer.cpp347 SourceLocation NextLoc = SM.getTopMacroCallerLoc(Loc); in qualifiedByUnresolved() local
348 while (auto CCTok = Lexer::findNextToken(NextLoc, SM, LangOpts)) { in qualifiedByUnresolved()
355 NextLoc = IDTok->getLocation(); in qualifiedByUnresolved()
/llvm-project-15.0.7/clang/lib/AST/
H A DTypeLoc.cpp110 class NextLoc : public TypeLocVisitor<NextLoc, TypeLoc> { class
125 return NextLoc().Visit(TL); in getNextTypeLocImpl()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceManager.cpp1115 SourceLocation NextLoc = Loc.getLocWithOffset(1); in isAtEndOfImmediateMacroExpansion() local
1116 if (isInFileID(NextLoc, FID)) in isAtEndOfImmediateMacroExpansion()