/external/llvm/unittests/ADT/ |
TwineTest.cpp | 1 //===- TwineTest.cpp - Twine unit tests -----------------------------------===// 10 #include "llvm/ADT/Twine.h" 18 std::string repr(const Twine &Value) { 26 EXPECT_EQ("", Twine().str()); 27 EXPECT_EQ("hi", Twine("hi").str()); 28 EXPECT_EQ("hi", Twine(std::string("hi")).str()); 29 EXPECT_EQ("hi", Twine(StringRef("hi")).str()); 30 EXPECT_EQ("hi", Twine(StringRef(std::string("hi"))).str()); 31 EXPECT_EQ("hi", Twine(StringRef("hithere", 2)).str()); 35 EXPECT_EQ("123", Twine(123U).str()) [all...] |
/external/clang/test/CodeGenCXX/ |
constructor-convert.cpp | 4 class Twine { 6 Twine(const char *Str) { } 9 static void error(const Twine &Message) {}
|
/external/llvm/lib/Support/ |
Twine.cpp | 1 //===-- Twine.cpp - Fast Temporary String Concatenation -------------------===// 10 #include "llvm/ADT/Twine.h" 16 std::string Twine::str() const { 26 void Twine::toVector(SmallVectorImpl<char> &Out) const { 31 StringRef Twine::toStringRef(SmallVectorImpl<char> &Out) const { 38 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { 58 void Twine::printOneChild(raw_ostream &OS, Child Ptr, 61 case Twine::NullKind: break; 62 case Twine::EmptyKind: break; 63 case Twine::TwineKind [all...] |
Path.cpp | 170 static std::error_code createUniqueEntity(const Twine &Model, int &ResultFD, 179 if (!sys::path::is_absolute(Twine(ModelStorage))) { 183 sys::path::append(TDir, Twine(ModelStorage)); 206 sys::fs::openFileForWrite(Twine(ResultPath.begin()), ResultFD, 439 void append(SmallVectorImpl<char> &path, const Twine &a, 440 const Twine &b, 441 const Twine &c, 442 const Twine &d) { 500 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension) { 518 void native(const Twine &path, SmallVectorImpl<char> &result) [all...] |
/external/llvm/include/llvm/ADT/ |
Twine.h | 1 //===-- Twine.h - Fast Temporary String Concatenation -----------*- C++ -*-===// 25 /// Twine - A lightweight data structure for efficiently representing the 28 /// A Twine is a kind of rope, it represents a concatenated string using a 30 /// Twine can be efficiently rendered into a buffer when its result is used, 32 /// results -- particularly in cases when the Twine result is never 37 /// A Twine is not intended for use directly and should not be stored, its 49 /// Given the nature of a Twine, it is not possible for the Twine's 51 /// represented inside the returned value. For this reason a Twine object 53 /// concatenation. We also have nullary Twine objects, which are effectivel 135 const Twine *twine; member in union:llvm::Twine::Child [all...] |
/external/llvm/include/llvm/TableGen/ |
Error.h | 22 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 23 void PrintWarning(const char *Loc, const Twine &Msg); 24 void PrintWarning(const Twine &Msg); 26 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 27 void PrintError(const char *Loc, const Twine &Msg); 28 void PrintError(const Twine &Msg); 30 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(const Twine &Msg); 32 const Twine &Msg);
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
ByteStreamer.h | 29 virtual void EmitInt8(uint8_t Byte, const Twine &Comment = "") = 0; 30 virtual void EmitSLEB128(uint64_t DWord, const Twine &Comment = "") = 0; 31 virtual void EmitULEB128(uint64_t DWord, const Twine &Comment = "") = 0; 40 void EmitInt8(uint8_t Byte, const Twine &Comment) override { 44 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { 48 void EmitULEB128(uint64_t DWord, const Twine &Comment) override { 59 void EmitInt8(uint8_t Byte, const Twine &Comment) override { 62 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { 65 void EmitULEB128(uint64_t DWord, const Twine &Comment) override {
|
/frameworks/compile/mclinker/lib/LD/ |
Diagnostic.cpp | 12 #include <llvm/ADT/Twine.h> 107 llvm::report_fatal_error(llvm::Twine("Mismatched {} in the diagnostic: ") + 108 llvm::Twine(getID())); 115 llvm::report_fatal_error(llvm::Twine("In diagnostic: ") + 116 llvm::Twine(getID()) + llvm::Twine(": ") + 117 llvm::Twine(pBegin) + 118 llvm::Twine("\nNo given arugment number:\n")); 128 llvm::report_fatal_error(llvm::Twine("In diagnostic: ") + 129 llvm::Twine(getID()) [all...] |
/external/llvm/lib/TableGen/ |
Error.cpp | 16 #include "llvm/ADT/Twine.h" 26 const Twine &Msg) { 41 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { 45 void PrintWarning(const char *Loc, const Twine &Msg) { 49 void PrintWarning(const Twine &Msg) { 53 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { 57 void PrintError(const char *Loc, const Twine &Msg) { 61 void PrintError(const Twine &Msg) { 65 void PrintFatalError(const Twine &Msg) { 70 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) [all...] |
/external/llvm/include/llvm/IR/ |
IRBuilder.h | 20 #include "llvm/ADT/Twine.h" 41 void InsertHelper(Instruction *I, const Twine &Name, 248 Value *CreateGlobalString(StringRef Str, const Twine &Name = ""); 492 InstTy *Insert(InstTy *I, const Twine &Name = "") const { 499 Constant *Insert(Constant *C, const Twine& = "") const { 572 BasicBlock *UnwindDest, const Twine &Name = "") { 579 const Twine &Name = "") { 586 const Twine &Name = "") { 594 const Twine &Name = "") { 613 const Twine &Name [all...] |
GlobalAlias.h | 18 #include "llvm/ADT/Twine.h" 37 const Twine &Name, Constant *Aliasee, Module *Parent); 48 LinkageTypes Linkage, const Twine &Name, 53 LinkageTypes Linkage, const Twine &Name, 58 LinkageTypes Linkage, const Twine &Name, 62 static GlobalAlias *create(LinkageTypes Linkage, const Twine &Name, 66 static GlobalAlias *create(const Twine &Name, GlobalValue *Aliasee);
|
DiagnosticInfo.h | 30 class Twine; 104 const Twine &MsgStr; 112 DiagnosticInfoInlineAsm(const Twine &MsgStr, 121 DiagnosticInfoInlineAsm(unsigned LocCookie, const Twine &MsgStr, 131 DiagnosticInfoInlineAsm(const Instruction &I, const Twine &MsgStr, 135 const Twine &getMsgStr() const { return MsgStr; } 205 const Twine &Msg, 209 DiagnosticInfoSampleProfile(const char *FileName, const Twine &Msg, 213 DiagnosticInfoSampleProfile(const Twine &Msg, 227 const Twine &getMsg() const { return Msg; [all...] |
InstrTypes.h | 19 #include "llvm/ADT/Twine.h" 143 const Twine &Name, Instruction *InsertBefore); 145 const Twine &Name, BasicBlock *InsertAtEnd); 162 const Twine &Name = Twine(), 170 const Twine &Name, BasicBlock *InsertAtEnd); 177 const Twine &Name = "") {\ 183 const Twine &Name, BasicBlock *BB) {\ 189 const Twine &Name, Instruction *I) {\ 195 const Twine &Name = "") [all...] |
/external/llvm/unittests/Support/ |
Path.cpp | 289 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); 290 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); 300 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); 304 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); 308 ASSERT_NO_ERROR(fs::create_link(Twine(TempPath), Twine(TempPath2))); 310 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D2)); 338 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); 349 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); 350 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B)) [all...] |
FileOutputBufferTest.cpp | 53 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); 69 ASSERT_NO_ERROR(fs::exists(Twine(File2), Exists)); 89 ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size)); 107 ASSERT_NO_ERROR(fs::status(Twine(File4), Status));
|
/external/clang/include/clang/Basic/ |
MacroBuilder.h | 19 #include "llvm/ADT/Twine.h" 30 void defineMacro(const Twine &Name, const Twine &Value = "1") { 36 void undefineMacro(const Twine &Name) { 41 void append(const Twine &Str) {
|
VirtualFileSystem.h | 92 virtual std::error_code getBuffer(const Twine &Name, 164 recursive_directory_iterator(FileSystem &FS, const Twine &Path, 189 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 191 virtual std::error_code openFileForRead(const Twine &Path, 196 std::error_code getBufferForFile(const Twine &Name, 204 virtual directory_iterator dir_begin(const Twine &Dir, 233 llvm::ErrorOr<Status> status(const Twine &Path) override; 234 std::error_code openFileForRead(const Twine &Path, 236 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
|
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmParserExtension.h | 18 class Twine; 59 bool Warning(SMLoc L, const Twine &Msg) { 62 bool Error(SMLoc L, const Twine &Msg) { 65 bool TokError(const Twine &Msg) {
|
/external/llvm/include/llvm/Support/ |
FileSystem.h | 32 #include "llvm/ADT/Twine.h" 293 std::error_code create_directories(const Twine &path, 302 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true); 315 std::error_code create_link(const Twine &to, const Twine &from); 330 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true); 336 std::error_code rename(const Twine &from, const Twine &to); 342 std::error_code copy_file(const Twine &From, const Twine &To) [all...] |
Path.h | 20 #include "llvm/ADT/Twine.h" 133 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension); 145 void append(SmallVectorImpl<char> &path, const Twine &a, 146 const Twine &b = "", 147 const Twine &c = "", 148 const Twine &d = ""); 174 void native(const Twine &path, SmallVectorImpl<char> &result); 326 bool has_root_name(const Twine &path); 334 bool has_root_directory(const Twine &path); 342 bool has_root_path(const Twine &path) [all...] |
SourceMgr.h | 21 #include "llvm/ADT/Twine.h" 30 class Twine; 156 const Twine &Msg, 162 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg, 179 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg, 200 // FIXME: Twine.str() is not very efficient. 201 SMFixIt(SMLoc Loc, const Twine &Insertion) 206 // FIXME: Twine.str() is not very efficient. 207 SMFixIt(SMRange R, const Twine &Replacement)
|
/external/clang/lib/Frontend/ |
InitPreprocessor.cpp | 57 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); 70 Builder.append(Twine("#include \"") + 77 Builder.append(Twine("#__include_macros \"") + 162 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); 164 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); 165 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); 168 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); 170 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); 171 Builder.defineMacro(DefPrefix + "MAX_EXP__", Twine(MaxExp)); 172 Builder.defineMacro(DefPrefix + "MAX__", Twine(Max)+Ext) [all...] |
/external/llvm/lib/AsmParser/ |
LLLexer.h | 64 bool Error(LocTy L, const Twine &Msg) const; 65 bool Error(const Twine &Msg) const { return Error(getLoc(), Msg); } 67 void Warning(LocTy WarningLoc, const Twine &Msg) const; 68 void Warning(const Twine &Msg) const { return Warning(getLoc(), Msg); }
|
/external/llvm/lib/IR/ |
DiagnosticInfo.cpp | 16 #include "llvm/ADT/Twine.h" 95 const Twine &MsgStr, 149 return Twine(Filename + ":" + Twine(Line) + ":" + Twine(Column)).str(); 173 const Twine &Msg) { 180 const Twine &Msg) { 188 const Twine &Msg) {
|
/external/llvm/lib/MC/MCParser/ |
MCAsmParser.cpp | 11 #include "llvm/ADT/Twine.h" 36 bool MCAsmParser::TokError(const Twine &Msg, ArrayRef<SMRange> Ranges) {
|