| /llvm-project/compiler-rt/utils/ |
| H A D | generate_netbsd_ioctls.awk | 473 function pcmd(string) 475 print string | cmd 478 function get_type(string) 480 if (string == "int") { 482 } else if (string == "unsigned int" || string == "u_int" || string == "uint") { 484 } else if (string == "long") { 486 } else if (string == "unsigned long" || string == "u_long") { 488 } else if (string == "short") { 490 } else if (string == "unsigned short") { 492 } else if (string == "char") { [all …]
|
| /llvm-project/clang-tools-extra/unittests/clang-change-namespace/ |
| H A D | ChangeNamespaceTests.cpp | 34 std::string runChangeNamespaceOnCode(llvm::StringRef Code) { in runChangeNamespaceOnCode() 38 std::map<std::string, tooling::Replacements> FileToReplacements; in runChangeNamespaceOnCode() 53 std::string format(llvm::StringRef Code) { in format() 66 std::string FileName = "input.cc"; 67 std::string OldNamespace = "na::nb"; 68 std::string NewNamespace = "x::y"; 69 std::string FilePattern = "input.cc"; 73 std::string Code = "namespace na {\n" in TEST_F() 78 std::string Expected = "namespace na {\n" in TEST_F() 87 std::string Code = "namespace na {\n" in TEST_F() [all …]
|
| /llvm-project/llvm/tools/bugpoint/ |
| H A D | ToolRunner.h | 38 std::string CCPath; // The path to the cc executable. 39 std::string RemoteClientPath; // The path to the rsh / ssh executable. 40 std::vector<std::string> ccArgs; // CC-specific arguments. 42 const std::vector<std::string> *CCArgs) in CC() 43 : CCPath(std::string(ccPath)), RemoteClientPath(std::string(RemotePath)) { in CC() 51 static CC *create(const char *Argv0, std::string &Message, 52 const std::string &CCBinary, 53 const std::vector<std::string> *Args); 63 const std::string &ProgramFile, const std::vector<std::string> &Args, 64 FileType fileType, const std::string &InputFile, [all …]
|
| H A D | ToolRunner.cpp | 34 cl::opt<std::string> 38 cl::opt<std::string> RemoteHost("remote-host", 41 cl::opt<std::string> RemotePort("remote-port", 44 cl::opt<std::string> RemoteUser("remote-user", 47 cl::opt<std::string> 60 std::string *ErrMsg = nullptr) { in RunProgramWithTimeout() 91 std::string StdOutFileName = StdOutFile.str(); in RunProgramRemotelyWithTimeout() 145 std::string LLIPath; // The path to the LLI executable 146 std::vector<std::string> ToolArgs; // Args to pass to LLI 148 LLI(const std::string &Path, const std::vector<std::string> *Args) in LLI() [all …]
|
| /llvm-project/clang/unittests/Rename/ |
| H A D | RenameFunctionTest.cpp | |
| H A D | RenameClassTest.cpp | |
| /llvm-project/libc/test/src/string/ |
| H A D | CMakeLists.txt | 1 add_custom_target(libc-string-tests) 14 libc-string-tests 18 libc.src.string.memccpy 24 libc-string-tests 28 libc.src.string.mempcpy 34 libc-string-tests 38 libc.src.string.memmem 44 libc-string-tests 48 libc.src.string.memchr 54 libc-string [all...] |
| /llvm-project/clang/unittests/Tooling/ |
| H A D | HeaderIncludesTest.cpp | 23 std::string insert(llvm::StringRef Code, llvm::StringRef Header, in insert() 30 return std::string(Code); in insert() 36 std::string remove(llvm::StringRef Code, llvm::StringRef Header) { in remove() 46 std::string FileName = "fix.cpp"; 51 std::string Code = "int main() {}"; in TEST_F() 52 std::string Expected = "#include \"a.h\"\n" in TEST_F() 58 std::string Code; in TEST_F() 62 std::string Expected = Code + "#include \"a2.h\"\n"; in TEST_F() 67 std::string Code = "#include \"a.h\"\n"; in TEST_F() 68 std::string Expected = Code + "#import \"a.h\"\n"; in TEST_F() [all …]
|
| H A D | TransformerTest.cpp | 73 static std::string format(StringRef Code) { in format() 81 return std::string(); in format() 87 const std::optional<std::string> &MaybeActual) { in compareSnippets() 90 std::string HL = "#include \"header.h\"\n"; in compareSnippets() 92 if (I != std::string::npos) in compareSnippets() 103 FileContents.emplace_back(std::string(Filename), std::string(Content)); in addFile() 106 std::optional<std::string> rewrite(StringRef Input) { in rewrite() 107 std::string Code = ("#include \"header.h\"\n" + Input).str(); in rewrite() 110 Factory->create(), Code, std::vector<std::string>(), "input.cc", in rewrite() 145 return [this](Expected<TransformerResult<std::string>> C) { in consumerWithStringMetadata() [all …]
|
| /llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIO.h | 18 long GetEpoch(const std::string &Path); 20 Unit FileToVector(const std::string &Path, size_t MaxSize = 0, 23 std::string FileToString(const std::string &Path); 25 void CopyFileToErr(const std::string &Path); 27 void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path); 29 void WriteToFile(const std::string &Data, const std::string &Path); 30 void WriteToFile(const Unit &U, const std::string &Path); 32 void AppendToFile(const uint8_t *Data, size_t Size, const std::string &Path); 33 void AppendToFile(const std::string &Data, const std::string &Path); 37 std::vector<std::string> *VPaths = 0); [all …]
|
| /llvm-project/libc/AOR_v20.02/string/ |
| H A D | Dir.mk | 7 S := $(srcdir)/string 8 B := build/string 11 all-string check-string install-string clean-string: 16 string-lib-srcs := $(wildcard $(S)/$(ARCH)/*.[cS]) 17 string-test-srcs := $(wildcard $(S)/test/*.c) 19 string-includes := $(patsubst $(S)/%,build/%,$(wildcard $(S)/include/*.h)) 21 string-libs := \ 25 string-tools := \ 41 string-lib-objs := $(patsubst $(S)/%,$(B)/%.o,$(basename $(string-lib-srcs))) 42 string-test-objs := $(patsubst $(S)/%,$(B)/%.o,$(basename $(string-test-srcs))) [all …]
|
| /llvm-project/clang/include/clang/Basic/ |
| H A D | CodeGenOptions.h | 29 #include <string> 124 std::string BBSections; 130 std::string BinutilsVersion; 174 std::string CodeModel; 183 std::string CoverageDataFile; 186 std::string CoverageNotesFile; 189 std::string ProfileFilterFiles; 192 std::string ProfileExcludeFiles; 194 /// The version string to put into coverage files. 198 std::string DebugPas [all...] |
| /llvm-project/libcxx/test/std/re/re.traits/ |
| H A D | lookup_collatename.pass.cpp | 47 test("NUL", std::string("\x00", 1)); in main() 48 test("alert", std::string("\x07")); in main() 49 test("backspace", std::string("\x08")); in main() 50 test("tab", std::string("\x09")); in main() 51 test("carriage-return", std::string("\x0D")); in main() 52 test("newline", std::string("\x0A")); in main() 53 test("vertical-tab", std::string("\x0B")); in main() 54 test("form-feed", std::string("\x0C")); in main() 55 test("space", std::string(" ")); in main() 56 test("exclamation-mark", std::string("!")); in main() [all …]
|
| /llvm-project/llvm/test/TableGen/ |
| H A D | name-resolution-consistency.td | 5 // CHECK: string e = "B0"; 9 // CHECK: string a = "B0b"; 10 // CHECK: string b = "B0"; 14 // CHECK: string f = "B0b"; 15 // CHECK: string g = "B0"; 19 // CHECK: string a = "B0cz"; 20 // CHECK: string b = "B0"; 24 // CHECK: string f = "B0cz"; 25 // CHECK: string g = "B0"; 29 // CHECK: string a = "C0"; [all …]
|
| H A D | cast-string.td | 4 // This file tests the !cast bang operator with the result type string. 9 // CHECK: string str3 = "a string here" 12 string str = "a string"; 13 string str2 = !cast<string>(str); 14 string str3 = !cast<string>(str # " here"); 18 // CHECK: string str = "42 -108" 23 string str = !cast<string>(int1) # " " # !cast<string>(int2); 27 // CHECK: string str = "0, 1" 32 string str = !cast<string>(bit1) # ", " # !cast<string>(bit2); 36 // CHECK: string str = "5 and 37" [all …]
|
| /llvm-project/libc/src/__support/CPP/ |
| H A D | string.h | 1 //===-- A simple implementation of the string class -------------*- C++ -*-===// 18 #include "src/string/memory_utils/inline_memcpy.h" 19 #include "src/string/memory_utils/inline_memset.h" 20 #include "src/string/string_utils.h" // string_length 27 // This class mimics std::string but does not intend to be a full fledged 30 class string { in get_empty_string() 54 LIBC_INLINE constexpr string() {} in string() 55 LIBC_INLINE string(const string &other) { this->operator+=(other); } in string() 56 LIBC_INLINE constexpr string(strin in string() 51 LIBC_INLINE constexpr string() {} string() function 52 LIBC_INLINE string(const string &other) { this->operator+=(other); } string() function 53 LIBC_INLINE constexpr string(string &&other) string() function 57 LIBC_INLINE string(const char *cstr, size_t count) { string() function 61 LIBC_INLINE string(const string_view &view) string() function 63 LIBC_INLINE string(const char *cstr) string() function 65 LIBC_INLINE string(size_t size_, char value) { string() function [all...] |
| /llvm-project/mlir/unittests/TableGen/ |
| H A D | FormatTest.cpp | 18 std::string result = std::string(tgfmt("", &ctx)); in TEST() 25 std::string result = std::string(tgfmt("", &ctx, "a", "b", "c")); in TEST() 33 std::string result = std::string(tgfmt("", &ctx)); in TEST() 39 std::string result = std::string(tgfmt("void foo {}", &ctx)); in TEST() 46 std::string result = std::string(tgfmt("$", &ctx)); in TEST() 53 std::string result = std::string(tgfmt("foo bar baz$", &ctx)); in TEST() 60 std::string result = in TEST() 61 std::string(tgfmt("$$ $$$$ $$$0 $$$_self", &ctx.withSelf("self"), "-0")); in TEST() 67 std::string b = "b"; in TEST() 70 std::string result = in TEST() [all …]
|
| /llvm-project/clang/test/Analysis/Inputs/expected-plists/ |
| H A D | malloc-plist.c.plist | 3 <key>kind</key><string>control</string> 37 <key>kind</key><string>event</string> 61 <string>Assuming 'in' is > 5</string> 63 <string>Assuming 'in' is > 5</string> 66 <key>kind</key><string>control</string> 100 <key>kind</key><string>event</string> 124 <string>Memory is allocated</string> 126 <string>Memory is allocated</string> 129 <key>kind</key><string>control</string> 163 <key>kind</key><string>control</string> [all …]
|
| /llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 27 class SValExplainer : public FullSValVisitor<SValExplainer, std::string> { 31 std::string printStmt(const Stmt *S) { in printStmt() 32 std::string Str; in printStmt() 60 std::string VisitUnknownVal(UnknownVal V) { in VisitUnknownVal() 64 std::string VisitUndefinedVal(UndefinedVal V) { in VisitUndefinedVal() 68 std::string VisitMemRegionVal(loc::MemRegionVal V) { in VisitMemRegionVal() 79 std::string VisitConcreteInt(loc::ConcreteInt V) { in VisitConcreteInt() 81 std::string Str; in VisitConcreteInt() 87 std::string VisitSymbolVal(nonloc::SymbolVal V) { in VisitSymbolVal() 91 std::string VisitConcreteInt(nonloc::ConcreteInt V) { in VisitConcreteInt() [all …]
|
| /llvm-project/clang-tools-extra/clangd/unittests/tweaks/ |
| H A D | ExtractFunctionTests.cpp | 57 std::string ParameterCheckInput = R"cpp( in TEST_F() 68 std::string ParameterCheckOutput = R"cpp( in TEST_F() 85 std::string ConstCheckInput = R"cpp( in TEST_F() 89 std::string ConstCheckOutput = R"cpp( in TEST_F() 99 std::string ConstNamespaceCheckInput = R"cpp( in TEST_F() 104 std::string ConstNamespaceCheckOutput = R"cpp( in TEST_F() 117 std::string MethodInput = R"cpp( in TEST_F() 124 std::string MethodCheckOutput = R"cpp( in TEST_F() 136 std::string OutOfLineMethodInput = R"cpp( in TEST_F() 145 std::string OutOfLineMethodCheckOutpu in TEST_F() [all...] |
| /llvm-project/llvm/unittests/BinaryFormat/ |
| H A D | MsgPackWriterTest.cpp | 17 std::string Buffer; 41 std::string Output = OStream.str(); in TEST_F() 69 EXPECT_EQ(OStream.str(), std::string("\xcd\x01\x00", 3)); in TEST_F() 87 EXPECT_EQ(OStream.str(), std::string("\xce\x00\x01\x00\x00", 5)); in TEST_F() 106 std::string("\xcf\x00\x00\x00\x01\x00\x00\x00\x00", 9)); in TEST_F() 129 std::string Output = OStream.str(); in TEST_F() 169 EXPECT_EQ(OStream.str(), std::string("\xd1\x80\x00", 3)); in TEST_F() 187 EXPECT_EQ(OStream.str(), std::string("\xd2\x80\x00\x00\x00", 5)); in TEST_F() 206 std::string("\xd3\x80\x00\x00\x00\x00\x00\x00\x00", 9)); in TEST_F() 222 std::string s; in TEST_F() [all …]
|
| /llvm-project/clang/test/SemaObjC/ |
| H A D | format-strings-utf8.m | 15 // CHECK: <string>invalid conversion specifier '\u25b9'</string> 16 // CHECK: <string>invalid conversion specifier '\u25b9'</string> 17 // CHECK: <string>invalid conversion specifier '\U00010348'</string> 18 // CHECK: <string>invalid conversion specifier '\U00010348'</string> 19 // CHECK: <string>invalid conversion specifier '\xe2'</string> 20 // CHECK: <string>invalid conversion specifier '\u25b9'</string> 21 // CHECK: <string>invalid conversion specifier '\u25b9'</string> 22 // CHECK: <string>invalid conversion specifier '\U00010348'</string> 23 // CHECK: <string>invalid conversion specifier '\U00010348'</string> 24 // CHECK: <string>invalid conversion specifier '\xe2'</string> [all …]
|
| /llvm-project/clang/unittests/Format/ |
| H A D | CleanupTest.cpp | 25 std::string cleanup(StringRef Code, const std::vector<tooling::Range> &Ranges, in cleanup() 35 std::string cleanupAroundOffsets(ArrayRef<unsigned> Offsets, StringRef Code, in cleanupAroundOffsets() 45 std::string Code = "namespace A {\n" in TEST_F() 53 std::string Expected = "\n\n\n\n\nnamespace C {\n" in TEST_F() 60 std::string Code = "namespace A {\n" in TEST_F() 67 std::string Expected = "namespace A {\n" in TEST_F() 76 std::string Code = "namespace A {\n\n" in TEST_F() 80 std::string Expected = "namespace A {\n\n" in TEST_F() 87 std::string Code = "namespace A {\n" in TEST_F() 94 std::string Expected = "\n\n\n\n\n\n"; in TEST_F() [all …]
|
| /llvm-project/lldb/unittests/Expression/ |
| H A D | CppModuleConfigurationTest.cpp | 40 FileSpecList makeFiles(llvm::ArrayRef<std::string> paths) { in makeFiles() 42 for (const std::string &path : paths) { in makeFiles() 53 static std::string ResourceInc() { in ResourceInc() 57 return std::string(resource_dir); in ResourceInc() 63 std::string usr = "/usr/include"; in TEST_F() 64 std::string libcpp = "/usr/include/c++/v1"; in TEST_F() 65 std::vector<std::string> files = {// C library in TEST_F() 79 std::string usr = "/usr/include"; in TEST_F() 80 std::string usr_target = "/usr/include/x86_64-linux-gnu"; in TEST_F() 81 std::string libcpp = "/usr/include/c++/v1"; in TEST_F() [all …]
|
| /llvm-project/libcxx/src/ |
| H A D | string.cpp | 15 #include <string> 54 template string operator+ <char, char_traits<char>, allocator<char>>(char const*, string const&); 58 inline void throw_from_string_out_of_range(const string& func) { in throw_from_string_out_of_range() 62 inline void throw_from_string_invalid_arg(const string& func) { in throw_from_string_invalid_arg() 69 inline V as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) { in as_integer_helper() 86 inline V as_integer(const string& func, const S& s, size_t* idx, int base); 88 // string 90 inline int as_integer(const string& func, const string [all...] |