Home
last modified time | relevance | path

Searched refs:Qualifiers (Results 1 – 25 of 101) sorted by relevance

12345

/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DQualifiersTest.java30 Qualifiers qualifiers = Qualifiers.fromParentDir(xmlFile.getParent()); in configFrom()
40 assertThat(Qualifiers.addPlatformVersion("", 21)).isEqualTo("v21"); in addPlatformVersion()
41 assertThat(Qualifiers.addPlatformVersion("v23", 21)).isEqualTo("v23"); in addPlatformVersion()
42 assertThat(Qualifiers.addPlatformVersion("foo-v14", 21)).isEqualTo("foo-v14"); in addPlatformVersion()
46 assertThat(Qualifiers.addSmallestScreenWidth("", 320)).isEqualTo("sw320dp"); in addSmallestScreenWidth()
47 assertThat(Qualifiers.addSmallestScreenWidth("sw160dp", 320)).isEqualTo("sw160dp"); in addSmallestScreenWidth()
48 assertThat(Qualifiers.addSmallestScreenWidth("sw480dp", 320)).isEqualTo("sw480dp"); in addSmallestScreenWidth()
49 …assertThat(Qualifiers.addSmallestScreenWidth("en-v23", 320)).isEqualTo("en-v23-sw320dp"); // todo:… in addSmallestScreenWidth()
50 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw160dp-v23", 320)).isEqualTo("en-sw160dp-v23"); in addSmallestScreenWidth()
51 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw480dp-v23", 320)).isEqualTo("en-sw480dp-v23"); in addSmallestScreenWidth()
[all …]
DStaxValueLoaderTest.java62 Qualifiers qualifiers = Qualifiers.fromParentDir(fsFile.getParent()); in parse()
/external/clang/test/SemaCXX/
Daddr-of-overloaded-function.cpp210 struct Qualifiers { struct
223 void (Qualifiers::*X)(); in QualifierTest()
224 …X = &Qualifiers::C; // expected-error-re {{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest() argument
225 …X = &Qualifiers::V; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attribu… in QualifierTest()
226 …X = &Qualifiers::R; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attribu… in QualifierTest()
227 …X = &Qualifiers::CV; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest()
228 …X = &Qualifiers::CR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest()
229 …X = &Qualifiers::VR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attrib… in QualifierTest()
230 …X = &Qualifiers::CVR; // expected-error-re{{assigning to 'void (test1::Qualifiers::*)(){{( __attri… in QualifierTest()
237 …void (Qualifiers::*X)() = &Dummy::N; // expected-error-re{{cannot initialize a variable of type 'v…
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DQualifiers.java11 public class Qualifiers { class
24 public static Qualifiers parse(String qualifiers) { in parse()
28 public static Qualifiers parse(String qualifiers, boolean applyVersionForCompat) { in parse()
36 return new Qualifiers(qualifiers, config); in parse()
39 protected Qualifiers(String qualifiers, ResTable_config config) { in Qualifiers() method in Qualifiers
53 public static Qualifiers fromParentDir(FsFile parentDir) { in fromParentDir()
100 int versionQualifierApiLevel = Qualifiers.getPlatformVersion(qualifiers); in addPlatformVersion()
118 int qualifiersSmallestScreenWidth = Qualifiers.getSmallestScreenWidth(qualifiers); in addSmallestScreenWidth()
148 int qualifiersScreenWidth = Qualifiers.getScreenWidth(qualifiers); in addScreenWidth()
DXmlContext.java8 private final Qualifiers qualifiers;
10 public XmlContext(String packageName, FsFile xmlFile, Qualifiers qualifiers) { in XmlContext()
24 public Qualifiers getQualifiers() { in getQualifiers()
DDocumentLoader.java39 Qualifiers qualifiers; in loadFile()
41 qualifiers = Qualifiers.fromParentDir(dir); in loadFile()
DRawResourceLoader.java31 Qualifiers qualifiers; in loadRawFiles()
33 qualifiers = Qualifiers.fromParentDir(rawDir); in loadRawFiles()
DDrawableResourceLoader.java36 Qualifiers qualifiers = null; in listDrawableResources()
38 qualifiers = Qualifiers.fromParentDir(dir); in listDrawableResources()
/external/clang/include/clang/AST/
DType.h117 class Qualifiers {
166 Qualifiers() : Mask(0) {}
170 static Qualifiers removeCommonQualifiers(Qualifiers &L, Qualifiers &R) {
173 Qualifiers Q;
180 Qualifiers Q;
206 static Qualifiers fromFastMask(unsigned Mask) {
207 Qualifiers Qs;
212 static Qualifiers fromCVRMask(unsigned CVR) {
213 Qualifiers Qs;
218 static Qualifiers fromCVRUMask(unsigned CVRU) {
[all …]
DASTContext.h986 QualType getExtQualType(const Type *Base, Qualifiers Quals) const;
1004 QualType getObjCGCQualType(QualType T, Qualifiers::GC gcAttr) const;
1012 return T.withFastQualifiers(Qualifiers::Restrict); in getRestrictType()
1021 return T.withFastQualifiers(Qualifiers::Volatile); in getVolatileType()
1113 Qualifiers::ObjCLifetime &Lifetime,
1689 return getQualifiedType(T, Qualifiers::fromCVRMask(CVR)); in getCVRQualifiedType()
1698 QualType getQualifiedType(QualType T, Qualifiers Qs) const { in getQualifiedType()
1707 QualType getQualifiedType(const Type *T, Qualifiers Qs) const { in getQualifiedType()
1717 Qualifiers::ObjCLifetime lifetime) { in getLifetimeQualifiedType()
1718 assert(type.getObjCLifetime() == Qualifiers::OCL_None); in getLifetimeQualifiedType()
[all …]
/external/clang/lib/CodeGen/
DCGValue.h177 Qualifiers Quals;
220 void Initialize(QualType Type, Qualifiers Quals,
255 return Quals.getCVRQualifiers() & ~Qualifiers::Const; in getVRQualifiers()
260 Qualifiers::ObjCLifetime getObjCLifetime() const { in getObjCLifetime()
289 return Quals.getObjCGCAttr() == Qualifiers::Weak; in isObjCWeak()
292 return Quals.getObjCGCAttr() == Qualifiers::Strong; in isObjCStrong()
311 const Qualifiers &getQuals() const { return Quals; } in getQuals()
312 Qualifiers &getQuals() { return Quals; } in getQuals()
375 Qualifiers qs = type.getQualifiers();
446 Qualifiers Quals;
[all …]
DCGDecl.cpp538 Qualifiers::ObjCLifetime lifetime) { in EmitAutoVarWithLifetime()
540 case Qualifiers::OCL_None: in EmitAutoVarWithLifetime()
543 case Qualifiers::OCL_ExplicitNone: in EmitAutoVarWithLifetime()
547 case Qualifiers::OCL_Strong: { in EmitAutoVarWithLifetime()
558 case Qualifiers::OCL_Autoreleasing: in EmitAutoVarWithLifetime()
562 case Qualifiers::OCL_Weak: in EmitAutoVarWithLifetime()
621 if (srcExpr->getType().getObjCLifetime() != Qualifiers::OCL_Weak) in tryEmitARCCopyWeakInit()
662 Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime(); in EmitScalarInit()
687 if (lifetime != Qualifiers::OCL_ExplicitNone) in EmitScalarInit()
704 if (lifetime == Qualifiers::OCL_Weak) in EmitScalarInit()
[all …]
DCGBlocks.cpp194 Qualifiers::ObjCLifetime Lifetime;
199 Qualifiers::ObjCLifetime lifetime, in BlockLayoutChunk()
226 if (chunk.Lifetime == Qualifiers::OCL_Strong) in operator <()
228 if (chunk.Lifetime == Qualifiers::OCL_Weak) in operator <()
360 Qualifiers::OCL_None, in computeBlockInfo()
377 Qualifiers::OCL_None, &CI, in computeBlockInfo()
391 Qualifiers::ObjCLifetime lifetime = in computeBlockInfo()
395 case Qualifiers::OCL_None: llvm_unreachable("impossible"); in computeBlockInfo()
396 case Qualifiers::OCL_ExplicitNone: in computeBlockInfo()
397 case Qualifiers::OCL_Autoreleasing: in computeBlockInfo()
[all …]
DCGObjCRuntime.cpp289 case Qualifiers::OCL_Strong: in EmitInitOfCatchParam()
293 case Qualifiers::OCL_None: in EmitInitOfCatchParam()
294 case Qualifiers::OCL_ExplicitNone: in EmitInitOfCatchParam()
295 case Qualifiers::OCL_Autoreleasing: in EmitInitOfCatchParam()
299 case Qualifiers::OCL_Weak: in EmitInitOfCatchParam()
/external/clang/lib/AST/
DTypePrinter.cpp93 void print(const Type *ty, Qualifiers qs, raw_ostream &OS,
101 void printBefore(const Type *ty, Qualifiers qs, raw_ostream &OS);
103 void printAfter(const Type *ty, Qualifiers qs, raw_ostream &OS);
118 if (TypeQuals & Qualifiers::Const) { in AppendTypeQualList()
122 if (TypeQuals & Qualifiers::Volatile) { in AppendTypeQualList()
127 if (TypeQuals & Qualifiers::Restrict) { in AppendTypeQualList()
147 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS, in print()
243 Qualifiers Quals = Split.Quals; in printBefore()
253 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) { in printBefore()
306 void TypePrinter::printAfter(const Type *T, Qualifiers Quals, raw_ostream &OS) { in printAfter()
[all …]
DMicrosoftMangle.cpp322 void mangleQualifiers(Qualifiers Quals, bool IsMember);
324 void manglePointerCVQualifiers(Qualifiers Quals);
325 void manglePointerExtQualifiers(Qualifiers Quals, QualType PointeeType);
340 Qualifiers Quals, \
1341 void MicrosoftCXXNameMangler::mangleQualifiers(Qualifiers Quals, in mangleQualifiers()
1441 void MicrosoftCXXNameMangler::manglePointerExtQualifiers(Qualifiers Quals, in manglePointerExtQualifiers()
1456 void MicrosoftCXXNameMangler::manglePointerCVQualifiers(Qualifiers Quals) { in manglePointerCVQualifiers()
1552 Qualifiers Quals = T.getLocalQualifiers(); in mangleType()
1613 void MicrosoftCXXNameMangler::mangleType(const BuiltinType *T, Qualifiers, in mangleType() argument
1774 void MicrosoftCXXNameMangler::mangleType(const FunctionProtoType *T, Qualifiers, in mangleType() argument
[all …]
DType.cpp32 bool Qualifiers::isStrictSupersetOf(Qualifiers Other) const { in isStrictSupersetOf()
263 Qualifiers quals = split.Quals; in getSplitUnqualifiedTypeImpl()
1990 case Qualifiers::OCL_ExplicitNone: in isCXX98PODType()
1993 case Qualifiers::OCL_Strong: in isCXX98PODType()
1994 case Qualifiers::OCL_Weak: in isCXX98PODType()
1995 case Qualifiers::OCL_Autoreleasing: in isCXX98PODType()
1998 case Qualifiers::OCL_None: in isCXX98PODType()
2052 case Qualifiers::OCL_ExplicitNone: in isTrivialType()
2055 case Qualifiers::OCL_Strong: in isTrivialType()
2056 case Qualifiers::OCL_Weak: in isTrivialType()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypeChecker.cpp80 QualType::print(DynamicType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
83 QualType::print(StaticType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
124 QualType::print(TrackedType.getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
131 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
133 QualType::print(ExplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
139 Qualifiers(), OS, LangOpts, llvm::Twine()); in VisitNode()
141 QualType::print(ImplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Demangle/
DMicrosoftDemangle.cpp120 enum Qualifiers : uint8_t { enum
259 Qualifiers Quals = Q_None;
883 Qualifiers demanglePointerExtQualifiers(StringView &MangledName);
930 std::pair<Qualifiers, bool> demangleQualifiers(StringView &MangledName);
1009 Qualifiers ExtraChildQuals = Q_None; in demangleVariableEncoding()
1011 Qualifiers(Ty->Quals | demanglePointerExtQualifiers(MangledName)); in demangleVariableEncoding()
1021 MPTy->Pointee->Quals = Qualifiers(MPTy->Pointee->Quals | ExtraChildQuals); in demangleVariableEncoding()
1024 PTy->Pointee->Quals = Qualifiers(PTy->Pointee->Quals | ExtraChildQuals); in demangleVariableEncoding()
1502 std::pair<Qualifiers, bool>
1514 return std::make_pair(Qualifiers(Q_Const | Q_Volatile), true); in demangleQualifiers()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DBootstrap.java8 import org.robolectric.res.Qualifiers;
39 int platformVersion = Qualifiers.getPlatformVersion(qualifiersStr); in applyQualifiers()
45 Qualifiers qualifiers = Qualifiers.parse(qualifiersStr); in applyQualifiers()
/external/clang/lib/Sema/
DSemaObjCProperty.cpp39 static Qualifiers::ObjCLifetime getImpliedARCOwnership( in getImpliedARCOwnership()
47 return Qualifiers::OCL_Strong; in getImpliedARCOwnership()
49 return Qualifiers::OCL_Weak; in getImpliedARCOwnership()
51 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership()
58 return Qualifiers::OCL_ExplicitNone; in getImpliedARCOwnership()
61 return Qualifiers::OCL_None; in getImpliedARCOwnership()
72 Qualifiers::ObjCLifetime propertyLifetime in checkPropertyDeclWithOwnership()
75 assert(propertyLifetime != Qualifiers::OCL_None); in checkPropertyDeclWithOwnership()
77 Qualifiers::ObjCLifetime expectedLifetime in checkPropertyDeclWithOwnership()
85 if (propertyLifetime == Qualifiers::OCL_Strong) { in checkPropertyDeclWithOwnership()
[all …]
DSemaType.cpp1747 Qualifiers Qs, const DeclSpec *DS) { in BuildQualifiedType()
1821 Qualifiers Q = Qualifiers::fromCVRMask(CVR); in BuildQualifiedType()
1837 type.getObjCLifetime() != Qualifiers::OCL_None) in inferARCLifetimeForPointee()
1840 Qualifiers::ObjCLifetime implicitLifetime = Qualifiers::OCL_None; in inferARCLifetimeForPointee()
1847 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee()
1853 implicitLifetime = Qualifiers::OCL_ExplicitNone; in inferARCLifetimeForPointee()
1874 implicitLifetime = Qualifiers::OCL_Strong; in inferARCLifetimeForPointee()
1878 Qualifiers qs; in inferARCLifetimeForPointee()
1885 Qualifiers::fromCVRMask(FnTy->getTypeQuals()).getAsString(); in getFunctionQualifiersAsString()
2551 Qualifiers::ObjCLifetime ownership,
[all …]
/external/syzkaller/vendor/github.com/ianlancetaylor/demangle/
Ddemangle.go470 a = &MethodWithQualifiers{Method: a, Qualifiers: q, RefQualifier: r}
1139 ret = &TypeWithQualifiers{Base: ret, Qualifiers: q}
1324 ret = &MethodWithQualifiers{Method: ret, Qualifiers: q, RefQualifier: ""}
1329 mwq.Qualifiers = mergeQualifiers(q, mwq.Qualifiers)
1334 q = mergeQualifiers(q, qsub.Qualifiers)
1337 ret = &TypeWithQualifiers{Base: ret, Qualifiers: q}
1412 func mergeQualifiers(q1, q2 Qualifiers) Qualifiers { argument
1435 func (st *state) cvQualifiers() Qualifiers {
1436 var q Qualifiers
1512 ret = &MethodWithQualifiers{Method: ret, Qualifiers: nil, RefQualifier: r}
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DConverterTest.java12 import org.robolectric.res.Qualifiers;
25 Qualifiers qualifiers = Qualifiers.fromParentDir(xmlFile.getParent()); in setUp()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/res/
DNullResourceTable.java26 new XmlContext("", Fs.newFile("."), Qualifiers.parse(""))); in getValue()
33 new XmlContext("", Fs.newFile("."), Qualifiers.parse(""))); in getValue()

12345