Lines Matching defs:SM

18 getPreviousTokenAndStart(SourceLocation Location, const SourceManager &SM,
21 Lexer::findPreviousToken(Location, SM, LangOpts, !SkipComments);
24 return {*Tok, Lexer::GetBeginningOfToken(Tok->getLocation(), SM, LangOpts)};
32 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
35 getPreviousTokenAndStart(Location, SM, LangOpts, SkipComments);
40 const SourceManager &SM,
49 return Lexer::GetBeginningOfToken(BeforeStart, SM, LangOpts);
53 const SourceManager &SM,
60 SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts);
65 if (Lexer::getRawToken(L, T, SM, LangOpts, /*IgnoreWhiteSpace=*/true))
75 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
77 return findNextAnyTokenKind(Start, SM, LangOpts, tok::comma, tok::semi);
81 findNextTokenSkippingComments(SourceLocation Start, const SourceManager &SM,
85 Lexer::findNextToken(Start, SM, LangOpts);
96 const SourceManager &SM,
105 std::optional<Token> Tok = Lexer::findNextToken(Loc, SM, LangOpts);
122 const SourceManager &SM) {
126 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Range.getBegin());
127 StringRef File = SM.getBufferData(LocInfo.first);
128 Lexer RawLexer(SM.getLocForStartOfFile(LocInfo.first), Context.getLangOpts(),
136 !SM.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation())) {
139 StringRef(SM.getCharacterData(Tok.getLocation()), Tok.getLength()));
170 const SourceManager &SM,
179 const SourceLocation SpellingLoc = SM.getSpellingLoc(EndLoc);
181 findNextTokenSkippingComments(SpellingLoc, SM, LangOpts);
197 findNextTokenSkippingComments(EndLoc, SM, LangOpts);
206 SourceLocation getUnifiedEndLoc(const Stmt &S, const SourceManager &SM,
217 return getSemicolonAfterStmtEndLoc(S.getEndLoc(), SM, LangOpts);
223 const SourceManager &SM) {
234 while (!Lexer::getRawToken(CurrentLocation, CurrentToken, SM, LangOpts,
252 NoexceptLoc, tok::r_paren, SM, LangOpts,