Lines Matching refs:MacroBody
33 static bool MacroBodyEndsInBackslash(StringRef MacroBody) {
34 while (!MacroBody.empty() && isWhitespace(MacroBody.back()))
35 MacroBody = MacroBody.drop_back();
36 return !MacroBody.empty() && MacroBody.back() == '\\';
46 StringRef MacroBody = MacroPair.second;
49 StringRef::size_type End = MacroBody.find_first_of("\n\r");
53 MacroBody = MacroBody.substr(0, End);
57 if (MacroBodyEndsInBackslash(MacroBody))
58 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n");
60 Builder.defineMacro(MacroName, MacroBody);