Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A 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()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp623 StringRef MacroBody = MacroPair.second; in collectMacroDefinitions() local
636 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()