/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/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/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) {
|
LLVM.h | 30 class Twine; 64 using llvm::Twine;
|
/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...] |
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/ |
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/Support/ |
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...] |
FileUtilities.h | 46 explicit FileRemover(const Twine& filename, bool deleteIt = true) 61 void setFile(const Twine& filename, bool deleteIt = true) {
|
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...] |
ErrorHandling.h | 23 class Twine; 78 LLVM_ATTRIBUTE_NORETURN void report_fatal_error(const Twine &reason,
|
/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 {
|
/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...] |
/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/include/llvm/IR/ |
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...] |
Mangler.h | 25 class Twine; 61 void getNameWithPrefix(raw_ostream &OS, const Twine &GVName, 63 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const Twine &GVName,
|
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);
|
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);
|
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...] |
DiagnosticPrinter.h | 26 class Twine; 49 virtual DiagnosticPrinter &operator<<(const Twine &Str) = 0; 79 DiagnosticPrinter &operator<<(const Twine &Str) 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/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/clang/include/clang/Tooling/ |
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);
|