Home
last modified time | relevance | path

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

/external/clang/lib/Frontend/
DInitPreprocessor.cpp32 static bool MacroBodyEndsInBackslash(StringRef MacroBody) { in MacroBodyEndsInBackslash() argument
33 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() local
48 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()
/external/clang/lib/Serialization/
DASTReader.cpp445 StringRef MacroBody = MacroPair.second; in collectMacroDefinitions() local
458 MacroBody = "1"; in collectMacroDefinitions()
461 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in collectMacroDefinitions()
462 MacroBody = MacroBody.substr(0, End); in collectMacroDefinitions()
467 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions()