/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/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...] |
ErrorHandling.cpp | 17 #include "llvm/ADT/Twine.h" 53 report_fatal_error(Twine(Reason)); 57 report_fatal_error(Twine(Reason)); 61 report_fatal_error(Twine(Reason)); 64 void llvm::report_fatal_error(const Twine &Reason) {
|
FileOutputBuffer.cpp | 32 sys::fs::remove(Twine(TempPath), Existed); 68 EC = sys::fs::unique_file(Twine(FilePath) + ".tmp%%%%%%%", 81 EC = sys::fs::status(Twine(TempFilePath), Stat2); 93 EC = sys::fs::permissions(Twine(TempFilePath), new_perms); 111 error_code EC = sys::fs::resize_file(Twine(TempPath), NewSmallerSize); 117 return sys::fs::rename(Twine(TempPath), Twine(FinalPath));
|
/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);
|
/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...] |
Triple.h | 13 #include "llvm/ADT/Twine.h" 145 explicit Triple(const Twine &Str); 146 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr); 147 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr, 148 const Twine &EnvironmentStr); 362 void setTriple(const Twine &Str) [all...] |
/external/llvm/include/llvm/Support/ |
PathV2.h | 20 #include "llvm/ADT/Twine.h" 132 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension); 144 void append(SmallVectorImpl<char> &path, const Twine &a, 145 const Twine &b = "", 146 const Twine &c = "", 147 const Twine &d = ""); 173 void native(const Twine &path, SmallVectorImpl<char> &result); 307 bool has_root_name(const Twine &path); 315 bool has_root_directory(const Twine &path); 323 bool has_root_path(const Twine &path) [all...] |
FileSystem.h | 33 #include "llvm/ADT/Twine.h" 164 friend error_code status(const Twine &path, file_status &result); 245 error_code copy_file(const Twine &from, const Twine &to, 254 error_code create_directories(const Twine &path, bool &existed); 262 error_code create_directory(const Twine &path, bool &existed); 270 error_code create_hard_link(const Twine &to, const Twine &from); 278 error_code create_symlink(const Twine &to, const Twine &from) [all...] |
ErrorHandling.h | 23 class Twine; 79 LLVM_ATTRIBUTE_NORETURN void report_fatal_error(const Twine &reason);
|
FileUtilities.h | 46 explicit FileRemover(const Twine& filename, bool deleteIt = true) 62 void setFile(const Twine& filename, bool deleteIt = true) {
|
/external/llvm/lib/TableGen/ |
Error.cpp | 16 #include "llvm/ADT/Twine.h" 25 const Twine &Msg) { 35 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { 39 void PrintWarning(const char *Loc, const Twine &Msg) { 43 void PrintWarning(const Twine &Msg) { 47 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { 51 void PrintError(const char *Loc, const Twine &Msg) { 55 void PrintError(const Twine &Msg) { 60 PrintError(Twine(Msg));
|
/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/ |
LLVMContext.h | 24 class Twine; 89 void emitError(unsigned LocCookie, const Twine &ErrorStr); 90 void emitError(const Instruction *I, const Twine &ErrorStr); 91 void emitError(const Twine &ErrorStr);
|
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...] |
IRBuilder.h | 20 #include "llvm/ADT/Twine.h" 39 void InsertHelper(Instruction *I, const Twine &Name, 179 Value *CreateGlobalString(StringRef Str, const Twine &Name = ""); 430 InstTy *Insert(InstTy *I, const Twine &Name = "") const { 437 Constant *Insert(Constant *C, const Twine& = "") const { 510 BasicBlock *UnwindDest, const Twine &Name = "") { 517 const Twine &Name = "") { 524 const Twine &Name = "") { 532 const Twine &Name = "") { 551 const Twine &Name [all...] |
Instructions.h | 65 const Twine &Name = "", Instruction *InsertBefore = 0); 67 const Twine &Name, BasicBlock *InsertAtEnd); 69 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = 0); 70 AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd); 73 const Twine &Name = "", Instruction *InsertBefore = 0); 75 const Twine &Name, BasicBlock *InsertAtEnd); 143 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore); 144 LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd); 145 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false, 147 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile [all...] |
/external/llvm/include/llvm/Target/ |
Mangler.h | 20 class Twine; 66 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const Twine &GVName,
|
/external/llvm/unittests/Support/ |
FileOutputBufferTest.cpp | 56 ASSERT_NO_ERROR(fs::has_magic(Twine(File1), Twine("AABBCCDDEEFFGGHHIIJJ"), 61 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); 76 ASSERT_NO_ERROR(fs::exists(Twine(File2), Exists)); 94 ASSERT_NO_ERROR(fs::has_magic(Twine(File3), Twine("AABBCCDDEEFFGGHHIIJJ"), 99 ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size)); 116 ASSERT_NO_ERROR(fs::status(Twine(File4), Status));
|
Path.cpp | 176 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); 186 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); 187 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B)); 192 fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists); 196 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2), 199 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists)); 203 ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists)); 207 ASSERT_NO_ERROR(fs::create_hard_link(Twine(TempPath), Twine(TempPath2))) [all...] |
/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/clang/include/clang/Tooling/ |
CompilationDatabase.h | 35 #include "llvm/ADT/Twine.h" 45 CompileCommand(Twine Directory, ArrayRef<std::string> CommandLine) 168 Twine Directory = "."); 172 FixedCompilationDatabase(Twine Directory, ArrayRef<std::string> CommandLine);
|