Home
last modified time | relevance | path

Searched refs:StrRef (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Sema/
DSemaDeclAttr.cpp3874 StringRef StrRef; in CheckCallingConvAttr() local
3875 if (!checkStringLiteralArgumentAttr(attr, 0, StrRef)) { in CheckCallingConvAttr()
3879 if (StrRef == "aapcs") { in CheckCallingConvAttr()
3882 } else if (StrRef == "aapcs-vfp") { in CheckCallingConvAttr()
4619 StringRef StrRef; in handleUuidAttr() local
4621 if (!S.checkStringLiteralArgumentAttr(Attr, 0, StrRef, &LiteralLoc)) in handleUuidAttr()
4626 if (StrRef.size() == 38 && StrRef.front() == '{' && StrRef.back() == '}') in handleUuidAttr()
4627 StrRef = StrRef.drop_front().drop_back(); in handleUuidAttr()
4630 if (StrRef.size() != 36) { in handleUuidAttr()
4637 if (StrRef[i] != '-') { in handleUuidAttr()
[all …]
DSemaChecking.cpp5562 StringRef StrRef = FExpr->getString(); in CheckFormatString() local
5563 const char *Str = StrRef.data(); in CheckFormatString()
5569 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in CheckFormatString()
5574 if (TypeSize <= StrRef.size() && in CheckFormatString()
5575 StrRef.substr(0, TypeSize).find('\0') == StringRef::npos) { in CheckFormatString()
5622 StringRef StrRef = FExpr->getString(); in FormatStringHasSArg() local
5623 const char *Str = StrRef.data(); in FormatStringHasSArg()
5628 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in FormatStringHasSArg()
/external/llvm-project/clang/lib/Sema/
DSemaDeclAttr.cpp4700 StringRef StrRef; in CheckCallingConvAttr() local
4701 if (!checkStringLiteralArgumentAttr(Attrs, 0, StrRef)) { in CheckCallingConvAttr()
4705 if (StrRef == "aapcs") { in CheckCallingConvAttr()
4708 } else if (StrRef == "aapcs-vfp") { in CheckCallingConvAttr()
6152 StringRef StrRef = OrigStrRef; in handleUuidAttr() local
6153 if (StrRef.size() == 38 && StrRef.front() == '{' && StrRef.back() == '}') in handleUuidAttr()
6154 StrRef = StrRef.drop_front().drop_back(); in handleUuidAttr()
6157 if (StrRef.size() != 36) { in handleUuidAttr()
6164 if (StrRef[i] != '-') { in handleUuidAttr()
6168 } else if (!isHexDigit(StrRef[i])) { in handleUuidAttr()
[all …]
DSemaChecking.cpp9053 StringRef StrRef = FExpr->getString(); in CheckFormatString() local
9054 const char *Str = StrRef.data(); in CheckFormatString()
9060 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in CheckFormatString()
9070 if (TypeSize <= StrRef.size() && in CheckFormatString()
9071 StrRef.substr(0, TypeSize).find('\0') == StringRef::npos) { in CheckFormatString()
9117 StringRef StrRef = FExpr->getString(); in FormatStringHasSArg() local
9118 const char *Str = StrRef.data(); in FormatStringHasSArg()
9123 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in FormatStringHasSArg()