Home
last modified time | relevance | path

Searched refs:SmallString (Results 1 – 25 of 1463) sorted by relevance

12345678910>>...59

/external/llvm/unittests/ADT/
DSmallStringTest.cpp27 typedef SmallString<40> StringType;
174 EXPECT_EQ(-1, SmallString<10>("aab").compare("aad")); in TEST()
175 EXPECT_EQ( 0, SmallString<10>("aab").compare("aab")); in TEST()
176 EXPECT_EQ( 1, SmallString<10>("aab").compare("aaa")); in TEST()
177 EXPECT_EQ(-1, SmallString<10>("aab").compare("aabb")); in TEST()
178 EXPECT_EQ( 1, SmallString<10>("aab").compare("aa")); in TEST()
179 EXPECT_EQ( 1, SmallString<10>("\xFF").compare("\1")); in TEST()
181 EXPECT_EQ(-1, SmallString<10>("AaB").compare_lower("aAd")); in TEST()
182 EXPECT_EQ( 0, SmallString<10>("AaB").compare_lower("aab")); in TEST()
183 EXPECT_EQ( 1, SmallString<10>("AaB").compare_lower("AAA")); in TEST()
[all …]
DTwineTest.cpp32 EXPECT_EQ("hi", Twine(SmallString<4>("hi")).str()); in TEST()
67 repr(Twine().concat(Twine(SmallString<5>("hi"))))); in TEST()
69 repr(Twine(SmallString<7>("hey")).concat(Twine("there")))); in TEST()
81 repr(Twine("a").concat(Twine(SmallString<3>("b")).concat(Twine("c"))))); in TEST()
85 SmallString<8> storage; in TEST()
89 EXPECT_EQ(0, *Twine(SmallString<11>("hello")) in TEST()
/external/llvm-project/llvm/unittests/ADT/
DSmallStringTest.cpp26 typedef SmallString<40> StringType;
111 SmallString<4> Pqr("pqr"); in TEST_F()
206 EXPECT_EQ(-1, SmallString<10>("aab").compare("aad")); in TEST_F()
207 EXPECT_EQ( 0, SmallString<10>("aab").compare("aab")); in TEST_F()
208 EXPECT_EQ( 1, SmallString<10>("aab").compare("aaa")); in TEST_F()
209 EXPECT_EQ(-1, SmallString<10>("aab").compare("aabb")); in TEST_F()
210 EXPECT_EQ( 1, SmallString<10>("aab").compare("aa")); in TEST_F()
211 EXPECT_EQ( 1, SmallString<10>("\xFF").compare("\1")); in TEST_F()
213 EXPECT_EQ(-1, SmallString<10>("AaB").compare_lower("aAd")); in TEST_F()
214 EXPECT_EQ( 0, SmallString<10>("AaB").compare_lower("aab")); in TEST_F()
[all …]
DTwineTest.cpp33 EXPECT_EQ("hi", Twine(SmallString<4>("hi")).str()); in TEST()
69 repr(Twine().concat(Twine(SmallString<5>("hi"))))); in TEST()
75 repr(Twine(SmallString<7>("hey")).concat(Twine("there")))); in TEST()
87 repr(Twine("a").concat(Twine(SmallString<3>("b")).concat(Twine("c"))))); in TEST()
91 SmallString<8> storage; in TEST()
95 EXPECT_EQ(0, *Twine(SmallString<11>("hello")) in TEST()
/external/llvm-project/lldb/unittests/Interpreter/
DTestCompletion.cpp38 SmallString<128> BaseDir;
43 static SmallString<128> OriginalWorkingDir;
45 SmallString<128> DirFoo;
46 SmallString<128> DirFooA;
47 SmallString<128> DirFooB;
48 SmallString<128> DirFooC;
49 SmallString<128> DirBar;
50 SmallString<128> DirBaz;
51 SmallString<128> DirTestFolder;
52 SmallString<128> DirNested;
[all …]
/external/llvm-project/clang/lib/Driver/ToolChains/
DROCm.h30 SmallString<0> On;
31 SmallString<0> Off;
43 llvm::SmallString<0> Path;
76 SmallString<0> InstallPath;
77 SmallString<0> BinPath;
78 SmallString<0> LibPath;
79 SmallString<0> LibDevicePath;
80 SmallString<0> IncludePath;
84 SmallString<0> OCML;
85 SmallString<0> OCKL;
[all …]
/external/llvm-project/clang-tools-extra/clang-doc/
DYAMLGenerator.cpp26 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::SmallString<16>)
63 template <unsigned U> struct ScalarTraits<SmallString<U>> {
65 static void output(const SmallString<U> &S, void *, llvm::raw_ostream &OS) { in output()
70 static StringRef input(StringRef Scalar, void *, SmallString<U> &Value) { in input()
111 IO.mapOptional("Name", I.Name, SmallString<16>()); in FieldTypeInfoMapping()
116 IO.mapOptional("Name", I.Name, SmallString<16>()); in InfoMapping()
117 IO.mapOptional("Path", I.Path, SmallString<128>()); in InfoMapping()
142 IO.mapOptional("Kind", I.Kind, SmallString<16>()); in CommentInfoMapping()
143 IO.mapOptional("Text", I.Text, SmallString<64>()); in CommentInfoMapping()
144 IO.mapOptional("Name", I.Name, SmallString<16>()); in CommentInfoMapping()
[all …]
DRepresentation.h91 SmallString<16>
97 SmallString<64> Text; // Text of the comment.
98 SmallString<16> Name; // Name of the comment (for Verbatim and HTML).
99 SmallString<8> Direction; // Parameter direction (for (T)ParamCommand).
100 SmallString<16> ParamName; // Parameter name (for (T)ParamCommand).
101 SmallString<16> CloseName; // Closing tag name (for VerbatimBlock).
105 llvm::SmallVector<SmallString<16>, 4>
107 llvm::SmallVector<SmallString<16>, 4>
109 llvm::SmallVector<SmallString<16>, 4>
139 llvm::SmallString<64> getRelativeFilePath(const StringRef &CurrentPath) const;
[all …]
DRepresentation.cpp117 static llvm::SmallString<64>
120 llvm::SmallString<64> FilePath; in calculateRelativeFilePath()
139 llvm::SmallString<64>
144 llvm::SmallString<16> Reference::getFileBaseName() const { in getFileBaseName()
146 return llvm::SmallString<16>("index"); in getFileBaseName()
151 llvm::SmallString<64>
156 llvm::SmallString<16> Info::getFileBaseName() const { in getFileBaseName()
158 return llvm::SmallString<16>("index"); in getFileBaseName()
264 llvm::SmallString<16> Info::extractName() const { in extractName()
275 return llvm::SmallString<16>("@GlobalNamespace"); in extractName()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Testing/Support/
DSupportHelpers.cpp16 static std::pair<bool, SmallString<128>> findSrcDirMap(StringRef Argv0) { in findSrcDirMap()
17 SmallString<128> BaseDir = llvm::sys::path::parent_path(Argv0); in findSrcDirMap()
21 SmallString<128> PathInSameDir = BaseDir; in findSrcDirMap()
27 SmallString<128> PathInParentDir = llvm::sys::path::parent_path(BaseDir); in findSrcDirMap()
33 return std::pair<bool, SmallString<128>>(false, {}); in findSrcDirMap()
36 SmallString<128> llvm::unittest::getInputFileDirectory(const char *Argv0) { in getInputFileDirectory()
38 SmallString<128> InputFilePath; in getInputFileDirectory()
/external/llvm-project/llvm/lib/Testing/Support/
DSupportHelpers.cpp16 static std::pair<bool, SmallString<128>> findSrcDirMap(StringRef Argv0) { in findSrcDirMap()
17 SmallString<128> BaseDir = llvm::sys::path::parent_path(Argv0); in findSrcDirMap()
21 SmallString<128> PathInSameDir = BaseDir; in findSrcDirMap()
27 SmallString<128> PathInParentDir = llvm::sys::path::parent_path(BaseDir); in findSrcDirMap()
33 return std::pair<bool, SmallString<128>>(false, {}); in findSrcDirMap()
36 SmallString<128> llvm::unittest::getInputFileDirectory(const char *Argv0) { in getInputFileDirectory()
38 SmallString<128> InputFilePath; in getInputFileDirectory()
/external/llvm/unittests/Support/
DLockFileManagerTest.cpp21 SmallString<64> TmpDir; in TEST()
26 SmallString<64> LockedFile(TmpDir); in TEST()
48 SmallString<64> TmpDir; in TEST()
53 SmallString<64> LockedFile(TmpDir); in TEST()
56 SmallString<64> FileLocK(TmpDir); in TEST()
59 SmallString<64> TmpFileLock(TmpDir); in TEST()
91 SmallString<64> TmpDir; in TEST()
101 SmallString<64> LockedFile("inner"); in TEST()
104 SmallString<64> FileLock(LockedFile); in TEST()
DPath.cpp34 SmallString<128> MessageStorage; \
140 SmallString<128> temp_store; in TEST()
156 SmallString<32> Relative("foo.cpp"); in TEST()
163 SmallString<64> Path(StringRef("c/d/e/foo.txt")); in TEST()
183 SmallString<64> Path(StringRef(".c/.d/../.")); in TEST()
203 SmallString<64> Path(StringRef("/c/d/e/foo.txt")); in TEST()
226 SmallString<64> Path(StringRef("/.c/.d/../.")); in TEST()
250 SmallString<64> Path(StringRef("c:\\c\\e\\foo.txt")); in TEST()
319 SmallString<128> HomeDir; in TEST()
327 SmallString<13> CacheDir; in TEST()
[all …]
/external/llvm-project/llvm/unittests/Support/
DReplaceFileTest.cpp30 std::error_code CreateFileWithContent(const SmallString<128> &FilePath, in CreateFileWithContent()
72 SmallString<128> TestDirectory; in TEST()
77 SmallString<128> SourceFileName(TestDirectory); in TEST()
80 SmallString<128> TargetFileName(TestDirectory); in TEST()
121 SmallString<128> TestDirectory; in TEST()
125 SmallString<128> SourceFileName(TestDirectory); in TEST()
128 SmallString<128> TargetFileName(TestDirectory); in TEST()
131 SmallString<128> TargetTmp0FileName(TestDirectory); in TEST()
134 SmallString<128> TargetTmp1FileName(TestDirectory); in TEST()
DLockFileManagerTest.cpp24 SmallString<64> LockedFile(TmpDir.path()); in TEST()
45 SmallString<64> LockedFile(LockFileManagerTestDir.path()); in TEST()
48 SmallString<64> FileLocK(LockFileManagerTestDir.path()); in TEST()
51 SmallString<64> TmpFileLock(LockFileManagerTestDir.path()); in TEST()
87 SmallString<64> LockedFile(inner.path()); in TEST()
90 SmallString<64> FileLock(LockedFile); in TEST()
DFileOutputBufferTest.cpp23 SmallString<128> MessageStorage; \
35 SmallString<128> TestDirectory; in TEST()
42 SmallString<128> File1(TestDirectory); in TEST()
64 SmallString<128> File2(TestDirectory); in TEST()
81 SmallString<128> File3(TestDirectory); in TEST()
102 SmallString<128> File4(TestDirectory); in TEST()
122 SmallString<128> File5(TestDirectory); in TEST()
145 SmallString<128> File6(TestDirectory); in TEST()
DPath.cpp47 SmallString<128> MessageStorage; \
58 SmallString<128> MessageStorage; \
202 SmallString<128> temp_store; in TEST()
219 SmallString<32> Relative("foo.cpp"); in TEST()
226 SmallString<32> Relative("foo.cpp"); in TEST()
446 SmallString<128> HomeDir; in TEST()
463 SmallString<128> HomeDir; in TEST()
471 SmallString<128> ConfigDir; in TEST()
479 SmallString<128> Fallback; in TEST()
483 SmallString<128> CacheDir; in TEST()
[all …]
/external/llvm-project/llvm/unittests/Bitstream/
DBitstreamWriterTest.cpp19 SmallString<64> Buffer; in TEST()
26 SmallString<64> Buffer; in TEST()
31 SmallString<64> Expected; in TEST()
45 SmallString<64> Buffer; in TEST()
52 SmallString<64> Buffer; in TEST()
/external/llvm/unittests/Bitcode/
DBitstreamWriterTest.cpp20 SmallString<64> Buffer; in TEST()
27 SmallString<64> Buffer; in TEST()
32 SmallString<64> Expected; in TEST()
46 SmallString<64> Buffer; in TEST()
53 SmallString<64> Buffer; in TEST()
/external/clang/lib/Frontend/
DModuleDependencyCollector.cpp72 SmallString<128> AltHeaderFilename; in moduleMapAddUmbrellaHeader()
92 SmallString<256> RPath(CanonicalPath); in real_path()
111 SmallString<256> TmpDest = Path, UpperDest, RealDest; in isCaseSensitivePath()
147 SmallString<256> YAMLPath = VFSDir; in writeFileMap()
160 SmallString<256> RealPath; in getRealPath()
185 SmallString<256> AbsoluteSrc = Src; in copyToRoot()
193 SmallString<256> CanonicalPath = AbsoluteSrc; in copyToRoot()
199 SmallString<256> RealPath; in copyToRoot()
202 SmallString<256> Dest = getDest(); in copyToRoot()
/external/llvm-project/clang-tools-extra/unittests/clang-doc/
DMergeTest.cpp83 One.DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); in TEST()
105 Two.Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); in TEST()
124 Expected->DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); in TEST()
125 Expected->Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); in TEST()
158 One.DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); in TEST()
159 One.Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); in TEST()
179 Two.Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); in TEST()
203 Expected->DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); in TEST()
204 Expected->Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); in TEST()
233 One.DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); in TEST()
[all …]
DSerializeTest.cpp103 F.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
144 ExpectedE.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
153 EConstructor.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
169 Method.Loc.emplace_back(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
183 ExpectedF.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
192 TemplateMethod.Loc.emplace_back(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
211 llvm::SmallString<16>{"test.cpp"}); in TEST()
227 ExpectedG.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
242 E.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
253 G.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); in TEST()
[all …]
/external/llvm-project/clang/lib/Frontend/
DModuleDependencyCollector.cpp90 SmallString<128> AltHeaderFilename; in moduleMapAddUmbrellaHeader()
113 SmallString<256> TmpDest = Path, UpperDest, RealDest; in isCaseSensitivePath()
149 SmallString<256> YAMLPath = VFSDir; in writeFileMap()
162 SmallString<256> RealPath; in getRealPath()
188 SmallString<256> AbsoluteSrc = Src; in copyToRoot()
196 SmallString<256> VirtualPath = AbsoluteSrc; in copyToRoot()
202 SmallString<256> CopyFrom; in copyToRoot()
205 SmallString<256> CacheDst = getDest(); in copyToRoot()
/external/llvm/include/llvm/MC/
DMCFragment.h379 SmallString<8> Contents;
394 SmallString<8> &getContents() { return Contents; }
395 const SmallString<8> &getContents() const { return Contents; }
414 SmallString<8> Contents;
431 SmallString<8> &getContents() { return Contents; }
432 const SmallString<8> &getContents() const { return Contents; }
447 SmallString<8> Contents;
460 SmallString<8> &getContents() { return Contents; }
461 const SmallString<8> &getContents() const { return Contents; }
499 SmallString<8> Contents;
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
DSmallString.h25 class SmallString : public SmallVector<char, InternalLen> {
28 SmallString() = default;
31 SmallString(StringRef S) : SmallVector<char, InternalLen>(S.begin(), S.end()) {} in SmallString() function
34 SmallString(std::initializer_list<StringRef> Refs) in SmallString() function
41 SmallString(ItTy S, ItTy E) : SmallVector<char, InternalLen>(S, E) {} in SmallString() function
309 SmallString &operator=(StringRef RHS) {
314 SmallString &operator+=(StringRef RHS) {
318 SmallString &operator+=(char C) {

12345678910>>...59