Home
last modified time | relevance | path

Searched refs:MacroBody (Results 1 – 5 of 5) 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/llvm-project/clang/lib/Frontend/
DInitPreprocessor.cpp30 static bool MacroBodyEndsInBackslash(StringRef MacroBody) { in MacroBodyEndsInBackslash() argument
31 while (!MacroBody.empty() && isWhitespace(MacroBody.back())) in MacroBodyEndsInBackslash()
32 MacroBody = MacroBody.drop_back(); in MacroBodyEndsInBackslash()
33 return !MacroBody.empty() && MacroBody.back() == '\\'; in MacroBodyEndsInBackslash()
43 StringRef MacroBody = MacroPair.second; in DefineBuiltinMacro() local
46 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in DefineBuiltinMacro()
50 MacroBody = MacroBody.substr(0, End); in DefineBuiltinMacro()
54 if (MacroBodyEndsInBackslash(MacroBody)) in DefineBuiltinMacro()
55 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()
57 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dmodernize-raw-string-literal.cpp102 char const *const MacroBody = TRICK(foo\\bar); variable
/external/clang/lib/Serialization/
DASTReader.cpp469 StringRef MacroBody = MacroPair.second; in collectMacroDefinitions() local
482 MacroBody = "1"; in collectMacroDefinitions()
485 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in collectMacroDefinitions()
486 MacroBody = MacroBody.substr(0, End); in collectMacroDefinitions()
491 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions()
/external/llvm-project/clang/lib/Serialization/
DASTReader.cpp597 StringRef MacroBody = MacroPair.second; in collectMacroDefinitions() local
610 MacroBody = "1"; in collectMacroDefinitions()
613 StringRef::size_type End = MacroBody.find_first_of("\n\r"); in collectMacroDefinitions()
614 MacroBody = MacroBody.substr(0, End); in collectMacroDefinitions()
619 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions()