Lines Matching defs:SourceMgr
55 SourceMgr(Diags, FileMgr),
65 SourceMgr.setMainFileID(SourceMgr.createFileID(std::move(Buf)));
68 HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
70 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
98 SourceMgr, LangOpts, &Invalid);
108 SourceManager SourceMgr;
291 macroPair = SourceMgr.getExpansionRange(lsqrLoc);
295 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
297 EXPECT_FALSE(Lexer::isAtStartOfMacroExpansion(idLoc, SourceMgr, LangOpts));
298 EXPECT_FALSE(Lexer::isAtEndOfMacroExpansion(idLoc, SourceMgr, LangOpts));
299 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc));
303 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts);
306 SourceMgr, LangOpts);
309 SourceMgr, LangOpts);
317 SourceMgr, LangOpts);
323 SourceLocation fileLsqrLoc = SourceMgr.getSpellingLoc(macroLsqrLoc);
324 SourceLocation fileIdLoc = SourceMgr.getSpellingLoc(macroIdLoc);
325 SourceLocation fileRsqrLoc = SourceMgr.getSpellingLoc(macroRsqrLoc);
329 SourceMgr, LangOpts);
334 SourceMgr, LangOpts);
338 macroPair = SourceMgr.getExpansionRange(macroLsqrLoc);
341 SourceMgr, LangOpts);
347 SourceMgr, LangOpts);
355 EXPECT_EQ("INN", Lexer::getImmediateMacroName(idLoc1, SourceMgr, LangOpts));
356 EXPECT_EQ("INN", Lexer::getImmediateMacroName(idLoc2, SourceMgr, LangOpts));
357 EXPECT_EQ("NOF2", Lexer::getImmediateMacroName(idLoc3, SourceMgr, LangOpts));
358 EXPECT_EQ("N", Lexer::getImmediateMacroName(idLoc4, SourceMgr, LangOpts));