Searched refs:MacroBody (Results 1 – 2 of 2) sorted by relevance
33 static bool MacroBodyEndsInBackslash(StringRef MacroBody) { in MacroBodyEndsInBackslash() argument34 while (!MacroBody.empty() && isWhitespace(MacroBody.back())) in MacroBodyEndsInBackslash()35 MacroBody = MacroBody.drop_back(); in MacroBodyEndsInBackslash()36 return !MacroBody.empty() && MacroBody.back() == '\\'; in MacroBodyEndsInBackslash()46 StringRef MacroBody = MacroPair.second; in DefineBuiltinMacro() local49 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in DefineBuiltinMacro()53 MacroBody = MacroBody.substr(0, End); in DefineBuiltinMacro()57 if (MacroBodyEndsInBackslash(MacroBody)) in DefineBuiltinMacro()58 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()60 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
469 StringRef MacroBody = MacroPair.second; in collectMacroDefinitions() local482 MacroBody = "1"; in collectMacroDefinitions()485 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in collectMacroDefinitions()486 MacroBody = MacroBody.substr(0, End); in collectMacroDefinitions()491 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions()