Home
last modified time | relevance | path

Searched refs:MacroBody (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Frontend/
DInitPreprocessor.cpp33 static bool MacroBodyEndsInBackslash(StringRef MacroBody) { in MacroBodyEndsInBackslash() argument
34 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() local
49 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()
/external/clang/lib/Serialization/
DASTReader.cpp463 StringRef MacroBody = MacroPair.second; in collectMacroDefinitions() local
476 MacroBody = "1"; in collectMacroDefinitions()
479 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in collectMacroDefinitions()
480 MacroBody = MacroBody.substr(0, End); in collectMacroDefinitions()
485 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions()