Lines Matching defs:SM
6880 unsigned ByteNo, const SourceManager &SM, const LangOptions &Features,
6883 return FExpr->getLocationOfByte(ByteNo + Offset, SM, Features, Target,
9631 static bool isArgumentExpandedFromMacro(SourceManager &SM,
9635 return SM.getFileID(CallLoc) != SM.getFileID(ArgLoc);
9637 return SM.getFileID(SM.getImmediateMacroCallerLoc(CallLoc)) !=
9638 SM.getFileID(SM.getImmediateMacroCallerLoc(ArgLoc));
9656 SourceManager &SM = S.getSourceManager();
9658 !isArgumentExpandedFromMacro(SM, CallLoc, SizeArg->getExprLoc())) {
9666 CallLoc, SM, S.getLangOpts()) == "bzero")) {
9779 SourceManager &SM = getSourceManager();
9781 if (SM.isMacroArgExpansion(SL)) {
9782 ReadableName = Lexer::getImmediateMacroName(SL, SM, LangOpts);
9783 SL = SM.getSpellingLoc(SL);
9784 DSR = SourceRange(SM.getSpellingLoc(DSR.getBegin()),
9785 SM.getSpellingLoc(DSR.getEnd()));
9786 SSR = SourceRange(SM.getSpellingLoc(SSR.getBegin()),
9787 SM.getSpellingLoc(SSR.getEnd()));
10055 SourceManager &SM = getSourceManager();
10058 if (SM.isMacroArgExpansion(SL)) {
10059 SL = SM.getSpellingLoc(SL);
10060 SR = SourceRange(SM.getSpellingLoc(SR.getBegin()),
10061 SM.getSpellingLoc(SR.getEnd()));
12294 static bool IsInAnyMacroBody(const SourceManager &SM, SourceLocation Loc) {
12299 if (SM.isMacroBodyExpansion(Loc))
12301 Loc = SM.getImmediateMacroCallerLoc(Loc);
12321 const SourceManager &SM = getSourceManager();
12322 if (IsInAnyMacroBody(SM, E->getExprLoc()) ||
12323 IsInAnyMacroBody(SM, Range.getBegin()))