Home
last modified time | relevance | path

Searched refs:StringRef (Results 1 – 25 of 791) sorted by relevance

12345678910>>...32

/external/llvm/unittests/ADT/
DStringRefTest.cpp19 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/include/llvm/ADT/
DStringRef.h27 class StringRef; variable
30 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
33 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
42 class StringRef {
74 /*implicit*/ StringRef() : Data(0), Length(0) {} in StringRef() function
77 /*implicit*/ StringRef(const char *Str) in StringRef() function
84 /*implicit*/ StringRef(const char *data, size_t length) in StringRef() function
91 /*implicit*/ StringRef(const std::string &Str) in StringRef() function
130 bool equals(StringRef RHS) const { in equals()
136 bool equals_lower(StringRef RHS) const { in equals_lower()
[all …]
DSmallString.h31 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/
DDarwinAsmParser.cpp29 template<bool (DarwinAsmParser::*Handler)(StringRef, SMLoc)>
30 void AddDirectiveHandler(StringRef Directive) { in AddDirectiveHandler()
114 bool ParseDirectiveDesc(StringRef, SMLoc);
115 bool ParseDirectiveDumpOrLoad(StringRef, SMLoc);
116 bool ParseDirectiveLsym(StringRef, SMLoc);
117 bool ParseDirectiveSection(StringRef, SMLoc);
118 bool ParseDirectivePushSection(StringRef, SMLoc);
119 bool ParseDirectivePopSection(StringRef, SMLoc);
120 bool ParseDirectivePrevious(StringRef, SMLoc);
121 bool ParseDirectiveSecureLogReset(StringRef, SMLoc);
[all …]
DAsmLexer.cpp49 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()
184 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
208 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
219 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
[all …]
DCOFFAsmParser.cpp27 template<bool (COFFAsmParser::*Handler)(StringRef, SMLoc)>
28 void AddDirectiveHandler(StringRef Directive) { in AddDirectiveHandler()
33 bool ParseSectionSwitch(StringRef Section,
80 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
87 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
94 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
102 bool ParseDirectiveDef(StringRef, SMLoc);
103 bool ParseDirectiveScl(StringRef, SMLoc);
104 bool ParseDirectiveType(StringRef, SMLoc);
105 bool ParseDirectiveEndef(StringRef, SMLoc);
[all …]
DELFAsmParser.cpp25 template<bool (ELFAsmParser::*Handler)(StringRef, SMLoc)>
26 void AddDirectiveHandler(StringRef Directive) { in AddDirectiveHandler()
31 bool ParseSectionSwitch(StringRef Section, unsigned Type,
81 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
86 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
91 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
96 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { in ParseSectionDirectiveRoData() argument
101 bool ParseSectionDirectiveTData(StringRef, SMLoc) { in ParseSectionDirectiveTData() argument
107 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { in ParseSectionDirectiveTBSS() argument
113 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { in ParseSectionDirectiveDataRel() argument
[all …]
/external/llvm/lib/DebugInfo/
DDWARFContext.h74 virtual StringRef getInfoSection() = 0;
75 virtual StringRef getAbbrevSection() = 0;
76 virtual StringRef getARangeSection() = 0;
77 virtual StringRef getLineSection() = 0;
78 virtual StringRef getStringSection() = 0;
79 virtual StringRef getRangeSection() = 0;
98 StringRef InfoSection;
99 StringRef AbbrevSection;
100 StringRef ARangeSection;
101 StringRef LineSection;
[all …]
/external/llvm/include/llvm/Support/
DPathV2.h50 StringRef Path; ///< The entire path.
51 StringRef Component; ///< The current component. Not necessarily in Path.
55 friend const_iterator begin(StringRef path);
56 friend const_iterator end(StringRef path);
59 typedef const StringRef value_type;
83 const_iterator begin(StringRef path);
88 const_iterator end(StringRef path);
93 inline reverse_iterator rbegin(StringRef path) { in rbegin()
100 inline reverse_iterator rend(StringRef path) { in rend()
178 const StringRef root_name(StringRef path);
[all …]
/external/llvm/include/llvm/
DDIBuilder.h30 class StringRef; variable
91 void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir,
92 StringRef Producer,
93 bool isOptimized, StringRef Flags, unsigned RV);
97 DIFile createFile(StringRef Filename, StringRef Directory);
100 DIEnumerator createEnumerator(StringRef Name, uint64_t Val);
103 DIType createNullPtrType(StringRef Name);
111 DIType createBasicType(StringRef Name, uint64_t SizeInBits,
127 StringRef Name = StringRef());
139 DIType createTypedef(DIType Ty, StringRef Name, DIFile File,
[all …]
DDebugInfo.h68 StringRef getStringField(unsigned Elt) const;
166 StringRef getFilename() const;
167 StringRef getDirectory() const;
178 StringRef getFilename() const { return getStringField(3); } in getFilename()
179 StringRef getDirectory() const { return getStringField(4); } in getDirectory()
180 StringRef getProducer() const { return getStringField(5); } in getProducer()
193 StringRef getFlags() const { return getStringField(8); } in getFlags()
214 StringRef getFilename() const { return getStringField(1); } in getFilename()
215 StringRef getDirectory() const { return getStringField(2); } in getDirectory()
231 StringRef getName() const { return getStringField(1); } in getName()
[all …]
/external/clang/unittests/AST/
DCommentLexer.cpp47 StringRef getCommandName(const Token &Tok) { in getCommandName()
51 StringRef getVerbatimBlockName(const Token &Tok) { in getVerbatimBlockName()
55 StringRef getVerbatimLineName(const Token &Tok) { in getVerbatimLineName()
137 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F()
157 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F()
180 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F()
182 ASSERT_EQ(StringRef("\\"), Toks[1].getText()); in TEST_F()
186 ASSERT_EQ(StringRef(" Bbb"), Toks[3].getText()); in TEST_F()
188 ASSERT_EQ(StringRef("\\"), Toks[4].getText()); in TEST_F()
190 ASSERT_EQ(StringRef(" "), Toks[5].getText()); in TEST_F()
[all …]
/external/llvm/lib/Support/
DStringExtras.cpp22 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 …]
DStringRef.cpp22 const size_t StringRef::npos;
42 int StringRef::compare_lower(StringRef RHS) const { in compare_lower()
56 int StringRef::compare_numeric(StringRef RHS) const { in compare_numeric()
87 unsigned StringRef::edit_distance(llvm::StringRef Other, in edit_distance()
100 std::string StringRef::lower() const { in lower()
108 std::string StringRef::upper() const { in upper()
125 size_t StringRef::find(StringRef Str, size_t From) const { in find()
165 size_t StringRef::rfind(StringRef Str) const { in rfind()
181 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of()
195 StringRef::size_type StringRef::find_first_not_of(char C, size_t From) const { in find_first_not_of()
[all …]
DPathV2.cpp23 using llvm::StringRef;
34 StringRef find_first_component(StringRef path) { in find_first_component()
76 size_t filename_pos(StringRef str) { in filename_pos()
88 if (pos == StringRef::npos) in filename_pos()
92 if (pos == StringRef::npos || in filename_pos()
99 size_t root_dir_start(StringRef str) { in root_dir_start()
112 return StringRef::npos; in root_dir_start()
126 return StringRef::npos; in root_dir_start()
129 size_t parent_path_end(StringRef path) { in parent_path_end()
143 return StringRef::npos; in parent_path_end()
[all …]
DYAMLParser.cpp48 static EncodingInfo getUnicodeEncoding(StringRef Input) { in getUnicodeEncoding()
129 StringRef Range;
199 static UTF8Decoded decodeUTF8(StringRef Range) { in decodeUTF8()
200 StringRef::iterator Position= Range.begin(); in decodeUTF8()
201 StringRef::iterator End = Range.end(); in decodeUTF8()
254 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/
DCommentLexer.h98 StringRef getText() const LLVM_READONLY { in getText()
100 return StringRef(TextPtr, IntVal); in getText()
103 void setText(StringRef Text) { in setText()
109 StringRef getUnknownCommandName() const LLVM_READONLY { in getUnknownCommandName()
111 return StringRef(TextPtr, IntVal); in getUnknownCommandName()
114 void setUnknownCommandName(StringRef Name) { in setUnknownCommandName()
140 StringRef getVerbatimBlockText() const LLVM_READONLY { in getVerbatimBlockText()
142 return StringRef(TextPtr, IntVal); in getVerbatimBlockText()
145 void setVerbatimBlockText(StringRef Text) { in setVerbatimBlockText()
161 StringRef getVerbatimLineText() const LLVM_READONLY { in getVerbatimLineText()
[all …]
DCommentSema.h107 StringRef Arg);
112 StringRef Arg);
124 StringRef Arg);
138 StringRef Arg);
142 StringRef Name);
146 StringRef Text);
152 StringRef Text);
156 StringRef CloseName,
162 StringRef Text);
165 StringRef TagName);
[all …]
/external/llvm/utils/FileCheck/
DFileCheck.cpp61 StringRef FixedStr;
70 std::vector<std::pair<StringRef, unsigned> > VariableUses;
76 std::vector<std::pair<StringRef, unsigned> > VariableDefs;
82 bool ParsePattern(StringRef PatternStr, SourceMgr &SM);
90 size_t Match(StringRef Buffer, size_t &MatchLen,
91 StringMap<StringRef> &VariableTable) const;
95 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
96 const StringMap<StringRef> &VariableTable) const;
99 static void AddFixedStringToRegEx(StringRef FixedStr, std::string &TheStr);
100 bool AddRegExToRegEx(StringRef RegExStr, unsigned &CurParen, SourceMgr &SM);
[all …]
/external/clang/include/clang/ARCMigrate/
DFileRemapper.h45 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/include/llvm/MC/
DMCSubtargetInfo.h23 class StringRef; variable
42 void InitMCSubtargetInfo(StringRef TT, StringRef CPU, StringRef FS,
51 StringRef getTargetTriple() const { in getTargetTriple()
63 uint64_t ReInitMCSubtargetInfo(StringRef CPU, StringRef FS);
71 uint64_t ToggleFeature(StringRef FS);
75 const MCSchedModel *getSchedModelForCPU(StringRef CPU) const;
79 InstrItineraryData getInstrItineraryForCPU(StringRef CPU) const;
DMCSectionMachO.h37 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()
162 static std::string ParseSectionSpecifier(StringRef Spec, // In.
163 StringRef &Segment, // Out.
164 StringRef &Section, // Out.
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp29 StringRef CheckerContext::getCalleeName(const FunctionDecl *FunDecl) const { in getCalleeName()
31 return StringRef(); in getCalleeName()
34 return StringRef(); in getCalleeName()
40 StringRef Name) { in isCLibraryFunction()
45 StringRef Name, ASTContext &Context) { in isCLibraryFunction()
51 StringRef BName = Context.BuiltinInfo.GetName(BId); in isCLibraryFunction()
52 if (BName.find(Name) != StringRef::npos) in isCLibraryFunction()
62 StringRef FName = II->getName(); in isCLibraryFunction()
66 if (FName.startswith("__inline") && (FName.find(Name) != StringRef::npos)) in isCLibraryFunction()
70 FName.find(Name) != StringRef::npos) in isCLibraryFunction()
[all …]
/external/clang/include/clang/Frontend/
DFrontendActions.h29 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 …]
/external/llvm/lib/VMCore/
DModule.cpp45 Module::Module(StringRef MID, LLVMContext& C) in Module()
66 StringRef temp = DataLayout; in getEndianness()
70 std::pair<StringRef, StringRef> P = getToken(temp, "-"); in getEndianness()
72 StringRef token = P.first; in getEndianness()
87 StringRef temp = DataLayout; in getPointerSize()
91 std::pair<StringRef, StringRef> TmpP = getToken(temp, "-"); in getPointerSize()
94 StringRef token = TmpP.second, signalToken = TmpP.first; in getPointerSize()
112 GlobalValue *Module::getNamedValue(StringRef Name) const { in getNamedValue()
118 unsigned Module::getMDKindID(StringRef Name) const { in getMDKindID()
125 void Module::getMDKindNames(SmallVectorImpl<StringRef> &Result) const { in getMDKindNames()
[all …]

12345678910>>...32