/external/llvm/unittests/ADT/ |
D | StringRefTest.cpp | 19 std::ostream &operator<<(std::ostream &OS, const StringRef &S) { in operator <<() 25 const std::pair<StringRef, StringRef> &P) { in operator <<() argument 34 EXPECT_EQ("", StringRef()); in TEST() 35 EXPECT_EQ("hello", StringRef("hello")); in TEST() 36 EXPECT_EQ("hello", StringRef("hello world", 5)); in TEST() 37 EXPECT_EQ("hello", StringRef(std::string("hello"))); in TEST() 41 StringRef S("hello"); in TEST() 49 EXPECT_EQ(p, StringRef(p, 0).data()); in TEST() 50 EXPECT_TRUE(StringRef().empty()); in TEST() 51 EXPECT_EQ((size_t) 5, StringRef("hello").size()); in TEST() [all …]
|
/external/llvm/lib/DebugInfo/ |
D | DWARFContext.h | 107 virtual StringRef getInfoSection() = 0; 108 virtual StringRef getAbbrevSection() = 0; 109 virtual StringRef getARangeSection() = 0; 110 virtual StringRef getDebugFrameSection() = 0; 111 virtual StringRef getLineSection() = 0; 112 virtual StringRef getStringSection() = 0; 113 virtual StringRef getRangeSection() = 0; 114 virtual StringRef getPubNamesSection() = 0; 117 virtual StringRef getInfoDWOSection() = 0; 118 virtual StringRef getAbbrevDWOSection() = 0; [all …]
|
D | DWARFCompileUnit.h | 22 class StringRef; variable 27 StringRef InfoSection; 28 StringRef AbbrevSection; 29 StringRef RangeSection; 30 StringRef StringSection; 31 StringRef StringOffsetSection; 32 StringRef AddrOffsetSection; 46 DWARFCompileUnit(const DWARFDebugAbbrev *DA, StringRef IS, StringRef AS, in DWARFCompileUnit() 47 StringRef RS, StringRef SS, StringRef SOS, StringRef AOS, in DWARFCompileUnit() 55 StringRef getStringSection() const { return StringSection; } in getStringSection() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | StringRef.h | 26 class StringRef; variable 29 bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 32 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result); 41 class StringRef { 73 /*implicit*/ StringRef() : Data(0), Length(0) {} in StringRef() function 76 /*implicit*/ StringRef(const char *Str) in StringRef() function 83 /*implicit*/ StringRef(const char *data, size_t length) in StringRef() function 90 /*implicit*/ StringRef(const std::string &Str) in StringRef() function 129 bool equals(StringRef RHS) const { in equals() 135 bool equals_lower(StringRef RHS) const { in equals_lower() [all …]
|
D | SmallString.h | 31 SmallString(StringRef S) : SmallVector<char, InternalLen>(S.begin(), S.end()) {} in SmallString() 60 void assign(StringRef RHS) { in assign() 87 void append(StringRef RHS) { in append() 102 bool equals(StringRef RHS) const { in equals() 107 bool equals_lower(StringRef RHS) const { in equals_lower() 113 int compare(StringRef RHS) const { in compare() 118 int compare_lower(StringRef RHS) const { in compare_lower() 124 int compare_numeric(StringRef RHS) const { in compare_numeric() 133 bool startswith(StringRef Prefix) const { in startswith() 138 bool endswith(StringRef Suffix) const { in endswith() [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | DarwinAsmParser.cpp | 29 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)> 30 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() 165 bool ParseDirectiveDesc(StringRef, SMLoc); 166 bool ParseDirectiveDumpOrLoad(StringRef, SMLoc); 167 bool ParseDirectiveLsym(StringRef, SMLoc); 168 bool ParseDirectiveLinkerOption(StringRef, SMLoc); 169 bool ParseDirectiveSection(StringRef, SMLoc); 170 bool ParseDirectivePushSection(StringRef, SMLoc); 171 bool ParseDirectivePopSection(StringRef, SMLoc); 172 bool ParseDirectivePrevious(StringRef, SMLoc); [all …]
|
D | AsmLexer.cpp | 49 return AsmToken(AsmToken::Error, StringRef(Loc, 0)); in ReturnError() 91 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral() 113 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier() 115 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier() 124 default: return AsmToken(AsmToken::Slash, StringRef(CurPtr-1, 1)); in LexSlash() 154 return AsmToken(AsmToken::Eof, StringRef(CurPtr, 0)); in LexLineComment() 155 return AsmToken(AsmToken::EndOfStatement, StringRef(CurPtr, 0)); in LexLineComment() 209 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit() 238 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit() 249 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit() [all …]
|
D | COFFAsmParser.cpp | 27 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 28 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() 34 bool ParseSectionSwitch(StringRef Section, 81 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 88 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 95 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument 103 bool ParseDirectiveDef(StringRef, SMLoc); 104 bool ParseDirectiveScl(StringRef, SMLoc); 105 bool ParseDirectiveType(StringRef, SMLoc); 106 bool ParseDirectiveEndef(StringRef, SMLoc); [all …]
|
D | ELFAsmParser.cpp | 25 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 26 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() 33 bool ParseSectionSwitch(StringRef Section, unsigned Type, 83 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 88 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 93 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument 98 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { in ParseSectionDirectiveRoData() argument 103 bool ParseSectionDirectiveTData(StringRef, SMLoc) { in ParseSectionDirectiveTData() argument 109 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { in ParseSectionDirectiveTBSS() argument 115 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { in ParseSectionDirectiveDataRel() argument [all …]
|
/external/llvm/include/llvm/Support/ |
D | PathV2.h | 51 StringRef Path; ///< The entire path. 52 StringRef Component; ///< The current component. Not necessarily in Path. 56 friend const_iterator begin(StringRef path); 57 friend const_iterator end(StringRef path); 60 typedef const StringRef value_type; 84 const_iterator begin(StringRef path); 89 const_iterator end(StringRef path); 94 inline reverse_iterator rbegin(StringRef path) { in rbegin() 101 inline reverse_iterator rend(StringRef path) { in rend() 189 const StringRef root_name(StringRef path); [all …]
|
/external/clang/unittests/AST/ |
D | CommentLexer.cpp | 48 StringRef getCommandName(const Token &Tok) { in getCommandName() 52 StringRef getVerbatimBlockName(const Token &Tok) { in getVerbatimBlockName() 56 StringRef getVerbatimLineName(const Token &Tok) { in getVerbatimLineName() 138 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F() 158 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F() 181 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F() 183 ASSERT_EQ(StringRef("\\"), Toks[1].getText()); in TEST_F() 187 ASSERT_EQ(StringRef(" Bbb"), Toks[3].getText()); in TEST_F() 189 ASSERT_EQ(StringRef("\\"), Toks[4].getText()); in TEST_F() 191 ASSERT_EQ(StringRef(" "), Toks[5].getText()); in TEST_F() [all …]
|
/external/llvm/include/llvm/ |
D | DIBuilder.h | 30 class StringRef; variable 96 void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir, 97 StringRef Producer, bool isOptimized, 98 StringRef Flags, unsigned RV, 99 StringRef SplitName = StringRef()); 103 DIFile createFile(StringRef Filename, StringRef Directory); 106 DIEnumerator createEnumerator(StringRef Name, uint64_t Val); 109 DIType createNullPtrType(StringRef Name); 117 DIBasicType createBasicType(StringRef Name, uint64_t SizeInBits, 133 uint64_t AlignInBits = 0, StringRef Name = StringRef()); [all …]
|
/external/clang/lib/Tooling/ |
D | FileMatchTrie.cpp | 27 virtual bool equivalent(StringRef FileA, StringRef FileB) const { in equivalent() 52 void insert(StringRef NewPath, unsigned ConsumedLength = 0) { in insert() 67 StringRef Element(llvm::sys::path::filename( in insert() 68 StringRef(Path).drop_back(ConsumedLength))); in insert() 71 StringRef Element(llvm::sys::path::filename( in insert() 72 StringRef(NewPath).drop_back(ConsumedLength))); in insert() 97 StringRef findEquivalent(const PathComparator& Comparator, in findEquivalent() 98 StringRef FileName, in findEquivalent() 102 if (Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent() 103 return StringRef(Path); in findEquivalent() [all …]
|
/external/llvm/lib/Support/ |
D | StringExtras.cpp | 22 StringRef::size_type llvm::StrInStrNoCase(StringRef s1, StringRef s2) { in StrInStrNoCase() 25 return StringRef::npos; in StrInStrNoCase() 29 return StringRef::npos; in StrInStrNoCase() 38 std::pair<StringRef, StringRef> llvm::getToken(StringRef Source, in getToken() 39 StringRef Delimiters) { in getToken() 41 StringRef::size_type Start = Source.find_first_not_of(Delimiters); in getToken() 44 StringRef::size_type End = Source.find_first_of(Delimiters, Start); in getToken() 51 void llvm::SplitString(StringRef Source, in SplitString() 52 SmallVectorImpl<StringRef> &OutFragments, in SplitString() 53 StringRef Delimiters) { in SplitString() [all …]
|
D | YAMLTraits.cpp | 43 Input::Input(StringRef InputContent, void *Ctxt) in Input() 257 void Input::scalarString(StringRef &S) { in scalarString() 277 StringRef KeyStr = SN->getValue(StringStorage); in createHNodes() 283 KeyStr = StringRef(Buf, Len); in createHNodes() 302 StringRef KeyStr = KeyScalar->getValue(StringStorage); in createHNodes() 308 KeyStr = StringRef(Buf, Len); in createHNodes() 324 bool Input::MapHNode::isValidKey(StringRef Key) { in isValidKey() 507 void Output::scalarString(StringRef &S) { in scalarString() 509 if (S.find('\n') == StringRef::npos) { in scalarString() 522 output(StringRef(&Base[i], j - i + 1)); in scalarString() [all …]
|
D | StringRef.cpp | 21 const size_t StringRef::npos; 41 int StringRef::compare_lower(StringRef RHS) const { in compare_lower() 55 int StringRef::compare_numeric(StringRef RHS) const { in compare_numeric() 86 unsigned StringRef::edit_distance(llvm::StringRef Other, in edit_distance() 99 std::string StringRef::lower() const { in lower() 107 std::string StringRef::upper() const { in upper() 124 size_t StringRef::find(StringRef Str, size_t From) const { in find() 164 size_t StringRef::rfind(StringRef Str) const { in rfind() 180 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() 194 StringRef::size_type StringRef::find_first_not_of(char C, size_t From) const { in find_first_not_of() [all …]
|
D | PathV2.cpp | 23 using llvm::StringRef; 34 StringRef find_first_component(StringRef path) { in find_first_component() 77 size_t filename_pos(StringRef str) { in filename_pos() 89 if (pos == StringRef::npos) in filename_pos() 93 if (pos == StringRef::npos || in filename_pos() 100 size_t root_dir_start(StringRef str) { in root_dir_start() 113 return StringRef::npos; in root_dir_start() 127 return StringRef::npos; in root_dir_start() 130 size_t parent_path_end(StringRef path) { in parent_path_end() 144 return StringRef::npos; in parent_path_end() [all …]
|
D | YAMLParser.cpp | 47 static EncodingInfo getUnicodeEncoding(StringRef Input) { in getUnicodeEncoding() 128 StringRef Range; 198 static UTF8Decoded decodeUTF8(StringRef Range) { in decodeUTF8() 199 StringRef::iterator Position= Range.begin(); in decodeUTF8() 200 StringRef::iterator End = Range.end(); in decodeUTF8() 253 Scanner(const StringRef Input, SourceMgr &SM); 267 void setError(const Twine &Message, StringRef::iterator Position) { in setError() 288 StringRef currentInput() { in currentInput() 289 return StringRef(Current, End - Current); in currentInput() 298 UTF8Decoded decodeUTF8(StringRef::iterator Position) { in decodeUTF8() [all …]
|
/external/clang/include/clang/AST/ |
D | CommentLexer.h | 99 StringRef getText() const LLVM_READONLY { in getText() 101 return StringRef(TextPtr, IntVal); in getText() 104 void setText(StringRef Text) { in setText() 110 StringRef getUnknownCommandName() const LLVM_READONLY { in getUnknownCommandName() 112 return StringRef(TextPtr, IntVal); in getUnknownCommandName() 115 void setUnknownCommandName(StringRef Name) { in setUnknownCommandName() 141 StringRef getVerbatimBlockText() const LLVM_READONLY { in getVerbatimBlockText() 143 return StringRef(TextPtr, IntVal); in getVerbatimBlockText() 146 void setVerbatimBlockText(StringRef Text) { in setVerbatimBlockText() 162 StringRef getVerbatimLineText() const LLVM_READONLY { in getVerbatimLineText() [all …]
|
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 65 StringRef FixedStr; 77 std::vector<std::pair<StringRef, unsigned> > VariableUses; 82 std::map<StringRef, unsigned> VariableDefs; 92 bool ParsePattern(StringRef PatternStr, SourceMgr &SM, unsigned LineNumber); 100 size_t Match(StringRef Buffer, size_t &MatchLen, 101 StringMap<StringRef> &VariableTable) const; 105 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 106 const StringMap<StringRef> &VariableTable) const; 109 static void AddFixedStringToRegEx(StringRef FixedStr, std::string &TheStr); 110 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM); [all …]
|
/external/clang/include/clang/ARCMigrate/ |
D | FileRemapper.h | 45 bool initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, 47 bool initFromFile(StringRef filePath, DiagnosticsEngine &Diag, 49 bool flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag); 50 bool flushToFile(StringRef outputPath, DiagnosticsEngine &Diag); 53 StringRef outputDir = StringRef()); 55 void remap(StringRef filePath, llvm::MemoryBuffer *memBuf); 56 void remap(StringRef filePath, StringRef newPath); 62 void clear(StringRef outputDir = StringRef()); 68 const FileEntry *getOriginalFile(StringRef filePath); 73 std::string getRemapInfoFile(StringRef outputDir);
|
/external/llvm/tools/llvm-mcmarkup/ |
D | llvm-mcmarkup.cpp | 32 static StringRef ToolName; 37 StringRef::const_iterator Start; 38 StringRef::const_iterator CurPtr; 39 StringRef::const_iterator End; 41 MarkupLexer(StringRef Source) in MarkupLexer() 53 StringRef::const_iterator getPosition() const { return CurPtr; } in getPosition() 58 StringRef Name; 59 StringRef Modifiers; 62 MarkupTag(StringRef n, StringRef m, SMLoc Loc) in MarkupTag() 64 StringRef getName() const { return Name; } in getName() [all …]
|
/external/llvm/include/llvm/MC/ |
D | MCSectionMachO.h | 37 MCSectionMachO(StringRef Segment, StringRef Section, 135 StringRef getSegmentName() const { in getSegmentName() 138 return StringRef(SegmentName, 16); in getSegmentName() 139 return StringRef(SegmentName); in getSegmentName() 141 StringRef getSectionName() const { in getSectionName() 144 return StringRef(SectionName, 16); in getSectionName() 145 return StringRef(SectionName); in getSectionName() 149 return StringRef(getSegmentName().str() + getSectionName().str() + "_begin"); in getLabelBeginName() 153 return StringRef(getSegmentName().str() + getSectionName().str() + "_end"); in getLabelEndName() 170 static std::string ParseSectionSpecifier(StringRef Spec, // In. [all …]
|
D | MCContext.h | 36 class StringRef; variable 111 std::map<unsigned, SmallVector<StringRef, 4> > MCDwarfDirsCUMap; 136 StringRef DwarfDebugFlags; 140 StringRef DwarfDebugProducer; 163 MCSymbol *CreateSymbol(StringRef Name); 214 MCSymbol *GetOrCreateSymbol(StringRef Name); 218 MCSymbol *LookupSymbol(StringRef Name) const; 236 const MCSectionMachO *getMachOSection(StringRef Segment, 237 StringRef Section, 241 const MCSectionMachO *getMachOSection(StringRef Segment, in getMachOSection() [all …]
|
/external/clang/include/clang/Frontend/ |
D | FrontendActions.h | 29 StringRef InFile); 44 StringRef InFile); 50 StringRef InFile); 56 StringRef InFile); 62 StringRef InFile); 68 StringRef InFile); 74 StringRef InFile); 80 StringRef InFile); 94 StringRef InFile, 105 StringRef InFile); [all …]
|