Lines Matching +full:bool +full:- +full:property

1 //=== ASTTableGen.h - Common definitions for AST node tablegen --*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
43 // Cases of various non-ASTNode structured types like DeclarationName.
50 #define PropertyClassName "Property"
103 explicit operator bool() const { return Record != nullptr; }
106 return get()->getLoc(); in getLoc()
110 bool isSubClassOf(llvm::StringRef className) const { in isSubClassOf()
111 return get()->isSubClassOf(className); in isSubClassOf()
120 friend bool operator<(WrappedRecord lhs, WrappedRecord rhs) {
122 return lhs.get()->getName() < rhs.get()->getName();
124 friend bool operator>(WrappedRecord lhs, WrappedRecord rhs) {
127 friend bool operator<=(WrappedRecord lhs, WrappedRecord rhs) {
130 friend bool operator>=(WrappedRecord lhs, WrappedRecord rhs) {
133 friend bool operator==(WrappedRecord lhs, WrappedRecord rhs) {
137 friend bool operator!=(WrappedRecord lhs, WrappedRecord rhs) {
163 return get()->getName(); in getName()
168 return get()->getValueAsOptionalDef(BaseFieldName); in getBase()
172 bool isAbstract() const { in isAbstract()
173 return get()->getValueAsBit(AbstractFieldName); in isAbstract()
247 /// The type of a property.
253 bool isGenericSpecialization() const { in isGenericSpecialization()
254 return get()->isAnonymous(); in isGenericSpecialization()
257 /// The abstract type name of the property. Doesn't work for generic
260 return get()->getName(); in getAbstractTypeName()
263 /// The C++ type name of the property. Doesn't work for generic
266 return get()->getValueAsString(CXXTypeNameFieldName); in getCXXTypeName()
268 void emitCXXValueTypeName(bool forRead, llvm::raw_ostream &out) const;
271 bool shouldPassByReference() const { in shouldPassByReference()
272 return get()->getValueAsBit(PassByReferenceFieldName); in shouldPassByReference()
277 bool isConstWhenWriting() const { in isConstWhenWriting()
278 return get()->getValueAsBit(ConstWhenWritingFieldName); in isConstWhenWriting()
284 return get()->getValueAsDef(ArrayElementTypeFieldName); in getArrayElementType()
291 return get()->getValueAsDef(OptionalElementTypeFieldName); in getOptionalElementType()
298 return get()->getValueAsDef(SubclassBaseTypeFieldName); in getSuperclassType()
306 return get()->getValueAsString(SubclassClassNameFieldName); in getSubclassClassName()
310 bool isEnum() const { in isEnum()
315 return get()->getValueAsString(PackOptionalCodeFieldName); in getPackOptionalCode()
319 return get()->getValueAsString(UnpackOptionalCodeFieldName); in getUnpackOptionalCode()
323 return get()->getValueAsListOfDefs(BufferElementTypesFieldName); in getBufferElementTypes()
338 return get()->getValueAsDef(TypeFieldName); in getParentType()
343 return get()->getValueAsDef(KindTypeFieldName); in getKindType()
346 /// Return the name to use for the kind property.
348 return get()->getValueAsString(KindPropertyNameFieldName); in getKindPropertyName()
353 return get()->getValueAsString(ReadFieldName); in getReadCode()
361 /// An implementation case of a property type.
368 return get()->getValueAsString(NameFieldName); in getCaseName()
373 return get()->getValueAsDef(TypeFieldName); in getParentType()
381 /// A property of an AST node.
382 class Property : public WrappedRecord {
384 Property(llvm::Record *record = nullptr) : WrappedRecord(record) {} in WrappedRecord()
386 /// Return the name of this property.
388 return get()->getValueAsString(NameFieldName); in getName()
391 /// Return the type of this property.
393 return get()->getValueAsDef(TypeFieldName); in getType()
396 /// Return the class of which this is a property.
398 return get()->getValueAsDef(ClassFieldName); in getClass()
401 /// Return the code for reading this property.
403 return get()->getValueAsString(ReadFieldName); in getReadCode()
406 /// Return the code for determining whether to add this property.
408 return get()->getValueAsString(ConditionalCodeFieldName); in getCondition()
425 return get()->getValueAsDef(ClassFieldName); in getClass()
429 return get()->getValueAsString(HelperCodeFieldName); in getHelperCode()
445 return get()->getValueAsDef(ClassFieldName); in getClass()
449 return get()->getValueAsString(CreateFieldName); in getCreationCode()
465 return get()->getValueAsDef(ClassFieldName); in getClass()
472 return get()->getValueAsListOfStrings(IgnoredPropertiesFieldName); in getIgnoredProperties()