/external/clang/test/CodeGenCXX/ |
H A D | constructor-convert.cpp | 4 class Twine { class 6 Twine(const char *Str) { } function in class:Twine 9 static void error(const Twine &Message) {}
|
/external/llvm/unittests/ADT/ |
H A D | 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(12 [all...] |
/external/llvm/include/llvm/TableGen/ |
H A D | 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/clang/include/clang/Basic/ |
H A D | 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) {
|
H A D | 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/lib/Support/ |
H A D | 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 [all...] |
H A D | FileOutputBuffer.cpp | 31 sys::fs::remove(Twine(TempPath)); 71 EC = sys::fs::createUniqueFile(Twine(FilePath) + ".tmp%%%%%%%", FD, 94 std::error_code EC = sys::fs::resize_file(Twine(TempPath), NewSmallerSize); 100 return sys::fs::rename(Twine(TempPath), Twine(FinalPath));
|
/external/llvm/include/llvm/ADT/ |
H A D | 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 object 81 class Twine { class in namespace:llvm 165 explicit Twine(NodeKind Kind) function in class:llvm::Twine 171 explicit Twine(const Twine &_LHS, const Twine &_RHS) function in class:llvm::Twine 179 explicit Twine(Child _LHS, NodeKind _LHSKind, function in class:llvm::Twine 258 /*implicit*/ Twine() : LHSKind(EmptyKind), RHSKind(EmptyKind) { function in class:llvm::Twine 267 /*implicit*/ Twine(const char *Str) function in class:llvm::Twine 279 /*implicit*/ Twine(const std::string &Str) function in class:llvm::Twine 286 /*implicit*/ Twine(const StringRef &Str) function in class:llvm::Twine 293 explicit Twine(char Val) function in class:llvm::Twine 299 explicit Twine(signed char Val) function in class:llvm::Twine 305 explicit Twine(unsigned char Val) function in class:llvm::Twine 311 explicit Twine(unsigned Val) function in class:llvm::Twine 317 explicit Twine(int Val) function in class:llvm::Twine 323 explicit Twine(const unsigned long &Val) function in class:llvm::Twine 329 explicit Twine(const long &Val) function in class:llvm::Twine 335 explicit Twine(const unsigned long long &Val) function in class:llvm::Twine 341 explicit Twine(const long long &Val) function in class:llvm::Twine 352 /*implicit*/ Twine(const char *_LHS, const StringRef &_RHS) function in class:llvm::Twine 360 /*implicit*/ Twine(const StringRef &_LHS, const char *_RHS) function in class:llvm::Twine [all...] |
/external/llvm/include/llvm/Support/ |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | ErrorHandling.h | 23 class Twine; 78 LLVM_ATTRIBUTE_NORETURN void report_fatal_error(const Twine &reason,
|
H A D | FileUtilities.h | 46 explicit FileRemover(const Twine& filename, bool deleteIt = true) 61 void setFile(const Twine& filename, bool deleteIt = true) {
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
H A D | 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 {
|
/external/llvm/lib/TableGen/ |
H A D | 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 [all...] |
/external/llvm/include/llvm/IR/ |
H A D | 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 [all...] |
H A D | Mangler.h | 25 class Twine; 61 void getNameWithPrefix(raw_ostream &OS, const Twine &GVName, 63 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const Twine &GVName,
|
H A D | 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 [all...] |
H A D | 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);
|
H A D | 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 [all...] |
H A D | LLVMContext.h | 26 class Twine; 156 void emitError(unsigned LocCookie, const Twine &ErrorStr); 157 void emitError(const Instruction *I, const Twine &ErrorStr); 158 void emitError(const Twine &ErrorStr);
|
/external/llvm/include/llvm/MC/MCParser/ |
H A D | 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/lib/AsmParser/ |
H A D | 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/unittests/Support/ |
H A D | 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(TempPath [all...] |
/external/llvm/lib/IR/ |
H A D | 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/clang/include/clang/Tooling/ |
H A D | CompilationDatabase.h | 34 #include "llvm/ADT/Twine.h" 45 CompileCommand(Twine Directory, std::vector<std::string> CommandLine) 182 Twine Directory = "."); 186 FixedCompilationDatabase(Twine Directory, ArrayRef<std::string> CommandLine);
|