Lines Matching refs:Sources
42 static bool locationsInSameFile(const SourceManager &Sources, in locationsInSameFile() argument
45 Sources.getFileID(Loc1) == Sources.getFileID(Loc2); in locationsInSameFile()
49 getNamespaceNameAsWritten(SourceLocation &Loc, const SourceManager &Sources, in getNamespaceNameAsWritten() argument
59 Loc, Sources, LangOpts)) { in getNamespaceNameAsWritten()
85 const SourceManager &Sources = *Result.SourceManager; in check() local
89 !locationsInSameFile(Sources, ND->getBeginLoc(), ND->getRBraceLoc())) in check()
94 unsigned StartLine = Sources.getSpellingLineNumber(ND->getBeginLoc()); in check()
95 unsigned EndLine = Sources.getSpellingLineNumber(ND->getRBraceLoc()); in check()
101 ND->getRBraceLoc(), /*Offset=*/0, Sources, getLangOpts()); in check()
109 if (Sources.isBeforeInTranslationUnit(ND->getLocation(), EndOfNameLocation)) in check()
114 getNamespaceNameAsWritten(LBraceLoc, Sources, getLangOpts()); in check()
127 while (Lexer::getRawToken(Loc, Tok, Sources, getLangOpts()) || in check()
132 if (!locationsInSameFile(Sources, ND->getRBraceLoc(), Loc)) in check()
135 bool NextTokenIsOnSameLine = Sources.getSpellingLineNumber(Loc) == EndLine; in check()
145 StringRef Comment(Sources.getCharacterData(Loc), Tok.getLength()); in check()