Home
last modified time | relevance | path

Searched refs:quote (Results 1 – 25 of 61) sorted by relevance

123

/llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.nonmem/
H A Dquoted.pass.cpp81 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() function
145 std::wstring quote ( const wchar_t *p, wchar_t delim='"', wchar_t escape='\\' ) { in quote() function
184 assert ( quote ( "Hi", '!' ) == "!Hi!" ); in main()
185 assert ( quote ( "Hi!", '!' ) == R"(!Hi\!!)" ); in main()
192 assert ( quote ( L"Hi", '!' ) == L"!Hi!" ); in main()
193 assert ( quote ( L"Hi!", '!' ) == LR"(!Hi\!!)" ); in main()
204 assert ( quote ( "" ) == "\"\"" ); in main()
205 assert ( quote ( "a" ) == "\"a\"" ); in main()
207 assert ( quote ( L"" ) == L"\"\"" ); in main()
208 assert ( quote ( L"a" ) == L"\"a\"" ); in main()
/llvm-project-15.0.7/clang/test/Modules/Inputs/macro-ambiguity/
H A Dmodule.modulemap2 header "Inputs/macro-ambiguity/a/quote/a_quote.h"
7 header "Inputs/macro-ambiguity/b/quote/b_quote.h"
12 header "Inputs/macro-ambiguity/c/quote/c_quote.h"
17 header "Inputs/macro-ambiguity/d/quote/d_quote.h"
22 textual header "Inputs/macro-ambiguity/e/quote/e_quote.h"
/llvm-project-15.0.7/libcxx/test/std/input.output/iostream.format/quoted.manip/
H A Dquoted.pass.cpp89 std::basic_string<CharT, Traits> quote ( const CharT *p, char delim='"', char escape='\\' ) { in quote() function
146 assert ( quote ( "Hi", '!' ) == "!Hi!" ); in main()
147 assert ( quote ( "Hi!", '!' ) == R"(!Hi\!!)" ); in main()
154 assert ( quote ( L"Hi", '!' ) == L"!Hi!" ); in main()
155 assert ( quote ( L"Hi!", '!' ) == LR"(!Hi\!!)" ); in main()
165 assert ( quote ( "" ) == "\"\"" ); in main()
166 assert ( quote ( "a" ) == "\"a\"" ); in main()
168 assert ( quote ( L"" ) == L"\"\"" ); in main()
169 assert ( quote ( L"a" ) == L"\"a\"" ); in main()
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DArgs.h42 char quote;
48 ArgEntry(llvm::StringRef str, char quote);
54 bool IsQuoted() const { return quote != '\0'; }
55 char GetQuoteChar() const { return quote; }
393 : value(entry.ref()), quote(entry.quote) {}
395 return lldb_private::Args::ArgEntry(value, quote);
398 uint8_t quote;
/llvm-project-15.0.7/lldb/source/Utility/
H A DArgs.cpp160 Args::ArgEntry::ArgEntry(llvm::StringRef str, char quote) : quote(quote) { in ArgEntry() argument
231 if (m_entries[i].quote) { in GetQuotedCommandString()
232 command += m_entries[i].quote; in GetQuotedCommandString()
234 command += m_entries[i].quote; in GetQuotedCommandString()
249 char quote; in SetCommandString() local
252 m_entries.emplace_back(arg, quote); in SetCommandString()
360 char quote = in SetArguments() local
365 m_entries[i] = ArgEntry(args[i], quote); in SetArguments()
634 char quote; in SetFromString() local
653 Args::ArgEntry entry(arg, quote); in SetFromString()
[all …]
/llvm-project-15.0.7/flang/runtime/
H A Dformat-implementation.h282 CharType quote{ch}; in CueUpNextDataEdit()
284 while (offset_ < formatLength_ && format_[offset_] != quote) { in CueUpNextDataEdit()
296 if (offset_ < formatLength_ && format_[offset_] == quote) { in CueUpNextDataEdit()
380 if (auto quote{static_cast<char>(PeekNext())}; in GetNextDataEdit()
381 quote == '\'' || quote == '"') { in GetNextDataEdit()
386 if (ch == quote && in GetNextDataEdit()
388 static_cast<char>(format_[offset_]) != quote)) { in GetNextDataEdit()
395 if (ch == quote) { in GetNextDataEdit()
/llvm-project-15.0.7/lld/MachO/
H A DDriverUtils.cpp141 os << quote(rewriteInputPath(arg->getValue())) << "\n"; in createResponseFile()
144 os << "-o " << quote(path::filename(arg->getValue())) << "\n"; in createResponseFile()
149 os << quote(rewriteInputPath(path)) << "\n"; in createResponseFile()
155 << quote(rewriteInputPath(arg->getValue())) << "\n"; in createResponseFile()
165 os << arg->getSpelling() << " " << quote(rewritePath(arg->getValue())) in createResponseFile()
169 os << arg->getSpelling() << " " << quote(arg->getValue(0)) << " " in createResponseFile()
170 << quote(arg->getValue(1)) << " " in createResponseFile()
171 << quote(rewritePath(arg->getValue(2))) << "\n"; in createResponseFile()
/llvm-project-15.0.7/llvm/test/Assembler/
H A D2008-10-14-QuoteInName.ll1 ; RUN: llvm-as < %s | llvm-dis | grep "quote"
4 @"a\22quote" = global i32 0
/llvm-project-15.0.7/lld/ELF/
H A DDriverUtils.cpp169 os << quote(rewritePath(arg->getValue())) << "\n"; in createResponseFile()
176 os << "-o " << quote(path::filename(arg->getValue())) << "\n"; in createResponseFile()
179 os << arg->getSpelling() << quote(rewritePath(arg->getValue())) << "\n"; in createResponseFile()
192 os << arg->getSpelling() << " " << quote(rewritePath(arg->getValue())) in createResponseFile()
/llvm-project-15.0.7/lld/Common/
H A DReproduce.cpp45 std::string lld::quote(StringRef s) { in quote() function in lld
61 v += quote(arg.getValue(i)); in toString()
/llvm-project-15.0.7/clang/utils/
H A Dmodule-deps-to-rsp.py39 def quote(str): function
63 print(" ".join(map(quote, cmd)))
/llvm-project-15.0.7/clang/test/utils/update_cc_test_checks/
H A Dlit.local.cfg8 from shlex import quote as shell_quote
10 from pipes import quote as shell_quote
/llvm-project-15.0.7/libcxx/utils/libcxx/test/
H A Dconfig.py434 def quote(self, s): member in Configuration
437 return pipes.quote(s)
441 sub.append(('%{cxx}', self.quote(self.cxx.path)))
444 sub.append(('%{flags}', ' '.join(map(self.quote, flags))))
445 sub.append(('%{compile_flags}', ' '.join(map(self.quote, compile_flags))))
446 sub.append(('%{link_flags}', ' '.join(map(self.quote, self.cxx.link_flags))))
449 env_vars = ' '.join('%s=%s' % (k, self.quote(v)) for (k, v) in self.exec_env.items())
/llvm-project-15.0.7/llvm/utils/lit/lit/
H A DBooleanExpression.py67 def quote(self, token): member in BooleanExpression
86 (self.quote(t), self.quote(self.token)))
116 self.quote(self.token))
/llvm-project-15.0.7/llvm/test/tools/UpdateTestChecks/
H A Dlit.local.cfg8 from shlex import quote as shell_quote
10 from pipes import quote as shell_quote
/llvm-project-15.0.7/flang/lib/Parser/
H A Dtoken-parsers.h248 template <char quote> struct CharLiteral {
256 } else if (ch->first == quote) { in Parse()
257 static constexpr auto doubled{attempt(AnyOfChars{SetOfChars{quote}})}; in Parse()
308 char quote = **at; in Parse() local
309 if (quote != '\'' && quote != '"') { in Parse()
319 if (**at == quote) { in Parse()
H A Dprescan.cpp646 char quote{*at_}; in QuotedCharacterLiteral() local
678 if (*at_ == quote && !isEscaped) { in QuotedCharacterLiteral()
682 EmitChar(tokens, quote); in QuotedCharacterLiteral()
688 if (*at_ != quote) { in QuotedCharacterLiteral()
813 char quote{*p}; in FortranInclude() local
816 if (*p == quote) { in FortranInclude()
817 if (p[1] != quote) { in FortranInclude()
824 if (*p != quote) { in FortranInclude()
/llvm-project-15.0.7/compiler-rt/test/memprof/
H A Dlit.cfg.py13 sh_quote = shlex.quote
16 sh_quote = pipes.quote
/llvm-project-15.0.7/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A Dpxssh.py37 from shlex import quote
41 def quote(s): function
355 tunnel = quote(str(tunnel))
/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/shtest-shell/
H A Derror-1.txt3 # RUN: echo "missing quote
/llvm-project-15.0.7/libcxx/test/libcxx/
H A Dlit.local.cfg3 config.substitutions.append(('%{python}', pipes.quote(sys.executable)))
/llvm-project-15.0.7/lld/test/ELF/
H A Dvs-diagnostics-versionscript.s5 # CHECK: [[SCRIPT]](1): error: [[SCRIPT]]:1: unclosed quote
/llvm-project-15.0.7/lld/include/lld/Common/
H A DReproduce.h28 std::string quote(StringRef s);
/llvm-project-15.0.7/llvm/utils/git/
H A Dpre-push.py38 from shlex import quote
87 quoted_cmd = [quote(arg) for arg in cmd]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flag_parser.cpp102 char quote = buf_[pos_++]; in parse_flag() local
103 while (buf_[pos_] != 0 && buf_[pos_] != quote) ++pos_; in parse_flag()

123