Searched refs:MacroBody (Results 1 – 2 of 2) sorted by relevance
32 static bool MacroBodyEndsInBackslash(StringRef MacroBody) { in MacroBodyEndsInBackslash() argument33 while (!MacroBody.empty() && isWhitespace(MacroBody.back())) in MacroBodyEndsInBackslash()34 MacroBody = MacroBody.drop_back(); in MacroBodyEndsInBackslash()35 return !MacroBody.empty() && MacroBody.back() == '\\'; in MacroBodyEndsInBackslash()45 StringRef MacroBody = MacroPair.second; in DefineBuiltinMacro() local48 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in DefineBuiltinMacro()52 MacroBody = MacroBody.substr(0, End); in DefineBuiltinMacro()56 if (MacroBodyEndsInBackslash(MacroBody)) in DefineBuiltinMacro()57 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()59 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
623 StringRef MacroBody = MacroPair.second; in collectMacroDefinitions() local636 MacroBody = "1"; in collectMacroDefinitions()639 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in collectMacroDefinitions()640 MacroBody = MacroBody.substr(0, End); in collectMacroDefinitions()645 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions()