Home
last modified time | relevance | path

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

12345678910>>...283

/external/llvm-project/clang/test/Analysis/
Dllvm-conventions.cpp34 class StringRef { class
41 /*implicit*/ StringRef() = default;
42 StringRef(std::nullptr_t) = delete;
43 /*implicit*/ StringRef(const char *Str);
44 /*implicit*/ constexpr StringRef(const char *data, size_t length);
45 /*implicit*/ StringRef(const std::string &Str);
47 static StringRef withNullAsEmpty(const char *data);
59 StringRef copy(Allocator &A) const;
60 bool equals(StringRef RHS) const;
61 bool equals_lower(StringRef RHS) const;
[all …]
/external/llvm/unittests/ADT/
DStringRefTest.cpp22 std::ostream &operator<<(std::ostream &OS, const StringRef &S) { in operator <<()
28 const std::pair<StringRef, StringRef> &P) { in operator <<() argument
37 EXPECT_EQ("", StringRef()); in TEST()
38 EXPECT_EQ("hello", StringRef("hello")); in TEST()
39 EXPECT_EQ("hello", StringRef("hello world", 5)); in TEST()
40 EXPECT_EQ("hello", StringRef(std::string("hello"))); in TEST()
44 StringRef S("hello"); in TEST()
52 EXPECT_EQ(p, StringRef(p, 0).data()); in TEST()
53 EXPECT_TRUE(StringRef().empty()); in TEST()
54 EXPECT_EQ((size_t) 5, StringRef("hello").size()); in TEST()
[all …]
/external/llvm-project/llvm/unittests/ADT/
DStringRefTest.cpp21 std::ostream &operator<<(std::ostream &OS, const StringRef &S) { in operator <<()
27 const std::pair<StringRef, StringRef> &P) { in operator <<() argument
38 !std::is_assignable<StringRef&, std::string>::value,
41 !std::is_assignable<StringRef&, std::string &&>::value,
44 std::is_assignable<StringRef&, std::string &>::value,
47 std::is_assignable<StringRef&, const char *>::value,
50 std::is_assignable<StringRef&, const char * &&>::value,
53 std::is_assignable<StringRef&, const char * &>::value,
58 EXPECT_EQ("", StringRef()); in TEST()
59 EXPECT_EQ("hello", StringRef("hello")); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DTargetParser.h23 class StringRef; variable
105 StringRef getCanonicalArchName(StringRef Arch);
108 StringRef getFPUName(unsigned FPUKind);
119 StringRef getArchName(unsigned ArchKind);
121 StringRef getCPUAttr(unsigned ArchKind);
122 StringRef getSubArch(unsigned ArchKind);
123 StringRef getArchExtName(unsigned ArchExtKind);
124 const char *getArchExtFeature(StringRef ArchExt);
125 StringRef getHWDivName(unsigned HWDivKind);
128 unsigned getDefaultFPU(StringRef CPU, unsigned ArchKind);
[all …]
DPath.h50 : public std::iterator<std::input_iterator_tag, const StringRef> {
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);
76 : public std::iterator<std::input_iterator_tag, const StringRef> {
77 StringRef Path; ///< The entire path.
78 StringRef Component; ///< The current component. Not necessarily in Path.
81 friend reverse_iterator rbegin(StringRef path);
82 friend reverse_iterator rend(StringRef path);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DARMTargetParser.h66 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
83 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
107 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
171 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
200 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
203 StringRef getCPUAttr() const { return StringRef(CPUAttrCStr, CPUAttrLength); } in getCPUAttr()
206 StringRef getSubArch() const { return StringRef(SubArchCStr, SubArchLength); } in getSubArch()
221 StringRef getFPUName(unsigned FPUKind);
227 bool getFPUFeatures(unsigned FPUKind, std::vector<StringRef> &Features);
228 bool getHWDivFeatures(unsigned HWDivKind, std::vector<StringRef> &Features);
[all …]
DScopedPrinter.h24 StringRef Name;
32 StringRef AltName;
34 EnumEntry(StringRef N, StringRef A, T V) : Name(N), AltName(A), Value(V) {} in EnumEntry()
35 EnumEntry(StringRef N, T V) : Name(N), AltName(N), Value(V) {} in EnumEntry()
84 void setPrefix(StringRef P) { Prefix = P; } in setPrefix()
95 void printEnum(StringRef Label, T Value, in printEnum()
97 StringRef Name; in printEnum()
115 void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag>> Flags,
149 template <typename T> void printFlags(StringRef Label, T Value) { in printFlags()
162 void printNumber(StringRef Label, uint64_t Value) { in printNumber()
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DARMTargetParser.h80 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
97 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
121 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
185 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
214 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
217 StringRef getCPUAttr() const { return StringRef(CPUAttrCStr, CPUAttrLength); } in getCPUAttr()
220 StringRef getSubArch() const { return StringRef(SubArchCStr, SubArchLength); } in getSubArch()
235 StringRef getFPUName(unsigned FPUKind);
241 bool getFPUFeatures(unsigned FPUKind, std::vector<StringRef> &Features);
242 bool getHWDivFeatures(uint64_t HWDivKind, std::vector<StringRef> &Features);
[all …]
DScopedPrinter.h24 StringRef Name;
32 StringRef AltName;
34 EnumEntry(StringRef N, StringRef A, T V) : Name(N), AltName(A), Value(V) {} in EnumEntry()
35 EnumEntry(StringRef N, T V) : Name(N), AltName(N), Value(V) {} in EnumEntry()
84 void setPrefix(StringRef P) { Prefix = P; } in setPrefix()
95 void printEnum(StringRef Label, T Value, in printEnum()
97 StringRef Name; in printEnum()
115 void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag>> Flags,
149 template <typename T> void printFlags(StringRef Label, T Value) { in printFlags()
162 void printNumber(StringRef Label, uint64_t Value) { in printNumber()
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
DStringRef.h38 class StringRef; variable
41 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
44 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
46 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
48 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
57 class LLVM_GSL_POINTER StringRef {
99 /*implicit*/ StringRef() = default;
103 StringRef(std::nullptr_t) = delete;
106 /*implicit*/ constexpr StringRef(const char *Str) in StringRef() function
110 /*implicit*/ constexpr StringRef(const char *data, size_t length) in StringRef() function
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DPath.h50 : public std::iterator<std::input_iterator_tag, const StringRef> {
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);
76 : public std::iterator<std::input_iterator_tag, const StringRef> {
77 StringRef Path; ///< The entire path.
78 StringRef Component; ///< The current component. Not necessarily in Path.
81 friend reverse_iterator rbegin(StringRef path);
82 friend reverse_iterator rend(StringRef path);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringRef.h35 class StringRef; variable
38 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
41 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
43 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
45 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
54 class StringRef {
96 /*implicit*/ StringRef() = default;
100 StringRef(std::nullptr_t) = delete;
103 /*implicit*/ constexpr StringRef(const char *Str) in StringRef() function
107 /*implicit*/ constexpr StringRef(const char *data, size_t length) in StringRef() function
[all …]
/external/llvm-project/lld/COFF/
DDriver.h54 std::vector<StringRef> exports;
55 std::vector<StringRef> includes;
65 llvm::opt::InputArgList parse(StringRef s) { return parse(tokenize(s)); } in parse()
70 ParsedDirectives parseDirectives(StringRef s);
76 std::vector<const char *> tokenize(StringRef s);
88 StringRef parentName);
90 void enqueuePDB(StringRef Path) { enqueuePath(Path, false, false); } in enqueuePDB()
94 void enqueuePath(StringRef path, bool wholeArchive, bool lazy);
100 Optional<StringRef> findFile(StringRef filename);
101 Optional<StringRef> findLib(StringRef filename);
[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 {
69 /*implicit*/ StringRef() : Data(nullptr), Length(0) {} in StringRef() function
72 /*implicit*/ StringRef(const char *Str) in StringRef() function
80 /*implicit*/ StringRef(const char *data, size_t length) in StringRef() function
88 /*implicit*/ StringRef(const std::string &Str) in StringRef() function
139 template <typename Allocator> StringRef copy(Allocator &A) const { in copy()
142 return StringRef(); in copy()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringRef.h28 class StringRef; variable
31 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
34 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
36 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
38 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
47 class StringRef {
74 /*implicit*/ StringRef() = default;
78 StringRef(std::nullptr_t) = delete;
82 /*implicit*/ StringRef(const char *Str) in StringRef() function
87 /*implicit*/ constexpr StringRef(const char *data, size_t length) in StringRef() function
[all …]
/external/llvm/include/llvm/DebugInfo/DWARF/
DDWARFContext.h194 virtual StringRef getAbbrevSection() = 0;
196 virtual StringRef getARangeSection() = 0;
197 virtual StringRef getDebugFrameSection() = 0;
198 virtual StringRef getEHFrameSection() = 0;
200 virtual StringRef getStringSection() = 0;
201 virtual StringRef getRangeSection() = 0;
202 virtual StringRef getMacinfoSection() = 0;
203 virtual StringRef getPubNamesSection() = 0;
204 virtual StringRef getPubTypesSection() = 0;
205 virtual StringRef getGnuPubNamesSection() = 0;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Remarks/
DBitstreamRemarkContainer.h70 constexpr StringRef MetaBlockName = StringRef("Meta", 4);
71 constexpr StringRef RemarkBlockName = StringRef("Remark", 6);
92 constexpr StringRef MetaContainerInfoName = StringRef("Container info", 14);
93 constexpr StringRef MetaRemarkVersionName = StringRef("Remark version", 14);
94 constexpr StringRef MetaStrTabName = StringRef("String table", 12);
95 constexpr StringRef MetaExternalFileName = StringRef("External File", 13);
96 constexpr StringRef RemarkHeaderName = StringRef("Remark header", 13);
97 constexpr StringRef RemarkDebugLocName = StringRef("Remark debug location", 21);
98 constexpr StringRef RemarkHotnessName = StringRef("Remark hotness", 14);
99 constexpr StringRef RemarkArgWithDebugLocName =
[all …]
/external/llvm-project/llvm/include/llvm/Remarks/
DBitstreamRemarkContainer.h70 constexpr StringRef MetaBlockName = StringRef("Meta", 4);
71 constexpr StringRef RemarkBlockName = StringRef("Remark", 6);
92 constexpr StringRef MetaContainerInfoName = StringRef("Container info", 14);
93 constexpr StringRef MetaRemarkVersionName = StringRef("Remark version", 14);
94 constexpr StringRef MetaStrTabName = StringRef("String table", 12);
95 constexpr StringRef MetaExternalFileName = StringRef("External File", 13);
96 constexpr StringRef RemarkHeaderName = StringRef("Remark header", 13);
97 constexpr StringRef RemarkDebugLocName = StringRef("Remark debug location", 21);
98 constexpr StringRef RemarkHotnessName = StringRef("Remark hotness", 14);
99 constexpr StringRef RemarkArgWithDebugLocName =
[all …]
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DAddConstTest.cpp19 ConstTransform(StringRef CheckName, ClangTidyContext *Context) in ConstTransform()
54 StringRef Snippet = "int target = 0;"; in TEST()
65 StringRef T = "typedef int MyInt;"; in TEST()
66 StringRef S = "MyInt target = 0;"; in TEST()
67 auto Cat = [&T](StringRef S) { return (T + S).str(); }; in TEST()
80 StringRef T = "typedef int* MyInt;"; in TEST()
81 StringRef S = "MyInt target = nullptr;"; in TEST()
82 auto Cat = [&T](StringRef S) { return (T + S).str(); }; in TEST()
95 StringRef T = "using MyInt = int;"; in TEST()
96 StringRef S = "MyInt target = 0;"; in TEST()
[all …]
/external/llvm-project/llvm/lib/BinaryFormat/
DDwarf.cpp21 StringRef llvm::dwarf::TagString(unsigned Tag) { in TagString()
24 return StringRef(); in TagString()
32 unsigned llvm::dwarf::getTag(StringRef TagString) { in getTag()
62 StringRef llvm::dwarf::ChildrenString(unsigned Children) { in ChildrenString()
69 return StringRef(); in ChildrenString()
72 StringRef llvm::dwarf::AttributeString(unsigned Attribute) { in AttributeString()
75 return StringRef(); in AttributeString()
105 StringRef llvm::dwarf::FormEncodingString(unsigned Encoding) { in FormEncodingString()
108 return StringRef(); in FormEncodingString()
138 StringRef llvm::dwarf::OperationEncodingString(unsigned Encoding) { in OperationEncodingString()
[all …]
/external/llvm-project/clang/include/clang/StaticAnalyzer/Frontend/
DCheckerRegistry.h119 StringRef FullName, StringRef Desc, StringRef DocsUri,
128 void addChecker(StringRef FullName, StringRef Desc, StringRef DocsUri,
139 void addDependency(StringRef FullName, StringRef Dependency);
143 void addWeakDependency(StringRef FullName, StringRef Dependency);
154 void addCheckerOption(StringRef OptionType, StringRef CheckerFullName,
155 StringRef OptionName, StringRef DefaultValStr,
156 StringRef Description, StringRef DevelopmentStatus,
160 void addPackage(StringRef FullName);
171 void addPackageOption(StringRef OptionType, StringRef PackageFullName,
172 StringRef OptionName, StringRef DefaultValStr,
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DDarwinAsmParser.cpp45 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)>
46 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler()
52 bool parseSectionSwitch(StringRef Segment, StringRef Section,
201 bool parseDirectiveAltEntry(StringRef, SMLoc);
202 bool parseDirectiveDesc(StringRef, SMLoc);
203 bool parseDirectiveIndirectSymbol(StringRef, SMLoc);
204 bool parseDirectiveDumpOrLoad(StringRef, SMLoc);
205 bool parseDirectiveLsym(StringRef, SMLoc);
206 bool parseDirectiveLinkerOption(StringRef, SMLoc);
207 bool parseDirectiveSection(StringRef, SMLoc);
[all …]
/external/llvm-project/llvm/lib/MC/MCParser/
DDarwinAsmParser.cpp45 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)>
46 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler()
52 bool parseSectionSwitch(StringRef Segment, StringRef Section,
201 bool parseDirectiveAltEntry(StringRef, SMLoc);
202 bool parseDirectiveDesc(StringRef, SMLoc);
203 bool parseDirectiveIndirectSymbol(StringRef, SMLoc);
204 bool parseDirectiveDumpOrLoad(StringRef, SMLoc);
205 bool parseDirectiveLsym(StringRef, SMLoc);
206 bool parseDirectiveLinkerOption(StringRef, SMLoc);
207 bool parseDirectiveSection(StringRef, SMLoc);
[all …]
/external/llvm/lib/MC/MCParser/
DDarwinAsmParser.cpp33 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)>
34 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler()
186 bool parseDirectiveAltEntry(StringRef, SMLoc);
187 bool parseDirectiveDesc(StringRef, SMLoc);
188 bool parseDirectiveIndirectSymbol(StringRef, SMLoc);
189 bool parseDirectiveDumpOrLoad(StringRef, SMLoc);
190 bool parseDirectiveLsym(StringRef, SMLoc);
191 bool parseDirectiveLinkerOption(StringRef, SMLoc);
192 bool parseDirectiveSection(StringRef, SMLoc);
193 bool parseDirectivePushSection(StringRef, SMLoc);
[all …]
/external/llvm/lib/Support/
DTargetParser.cpp40 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
67 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
70 StringRef getCPUAttr() const { return StringRef(CPUAttrCStr, CPUAttrLength); } in getCPUAttr()
73 StringRef getSubArch() const { return StringRef(SubArchCStr, SubArchLength); } in getSubArch()
99 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
118 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
136 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
156 StringRef llvm::ARM::getFPUName(unsigned FPUKind) { in getFPUName()
158 return StringRef(); in getFPUName()
180 unsigned llvm::ARM::getDefaultFPU(StringRef CPU, unsigned ArchKind) { in getDefaultFPU()
[all …]

12345678910>>...283