Lines Matching refs:OtherMI
2792 const MacroInfo *OtherMI = getMacroInfo(MacroNameTok.getIdentifierInfo()); in HandleDefineDirective() local
2793 if (!OtherMI || !MI->isIdenticalTo(*OtherMI, *this, in HandleDefineDirective()
2804 if (const MacroInfo *OtherMI=getMacroInfo(MacroNameTok.getIdentifierInfo())) { in HandleDefineDirective() local
2815 SourceMgr.getFileID(OtherMI->getDefinitionLoc()) in HandleDefineDirective()
2821 !MI->isIdenticalTo(*OtherMI, *this, in HandleDefineDirective()
2825 assert(!OtherMI->isWarnIfUnused()); in HandleDefineDirective()
2834 if (!OtherMI->isUsed() && OtherMI->isWarnIfUnused()) in HandleDefineDirective()
2835 Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleDefineDirective()
2839 if (OtherMI->isBuiltinMacro()) in HandleDefineDirective()
2843 else if (!OtherMI->isAllowRedefinitionsWithoutWarning() && in HandleDefineDirective()
2844 !MI->isIdenticalTo(*OtherMI, *this, /*Syntactic=*/LangOpts.MicrosoftExt)) { in HandleDefineDirective()
2847 Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition); in HandleDefineDirective()
2850 if (OtherMI->isWarnIfUnused()) in HandleDefineDirective()
2851 WarnUnusedMacroLocs.erase(OtherMI->getDefinitionLoc()); in HandleDefineDirective()