class VariableInfo
Declaration
class VariableInfo : public CommonEntityInfo { /* full declaration omitted */ };
Description
API notes for a variable/property.
Declared at: clang/include/clang/APINotes/Types.h:299
Inherits from: CommonEntityInfo
Member Variables
- private unsigned int NullabilityAudited
- Whether this property has been audited for nullability.
- private unsigned int Nullable
- The kind of nullability for this property. Only valid if the nullability has been audited.
- private std::string Type
- The C type of the variable, as a string.
Inherited from CommonEntityInfo:
Method Overview
- public VariableInfo()
- public void dump(llvm::raw_ostream & OS) const
- public llvm::Optional<NullabilityKind> getNullability() const
- public const std::string & getType() const
- public void setNullabilityAudited(clang::NullabilityKind kind)
- public void setType(const std::string & type)
Inherited from CommonEntityInfo:
Methods
¶VariableInfo()
VariableInfo()
Declared at: clang/include/clang/APINotes/Types.h:311
¶void dump(llvm::raw_ostream& OS) const
void dump(llvm::raw_ostream& OS) const
Declared at: clang/include/clang/APINotes/Types.h:340
Parameters
¶llvm::Optional<NullabilityKind> getNullability()
const
llvm::Optional<NullabilityKind> getNullability()
const
Declared at: clang/include/clang/APINotes/Types.h:313
¶const std::string& getType() const
const std::string& getType() const
Declared at: clang/include/clang/APINotes/Types.h:324
¶void setNullabilityAudited(
clang::NullabilityKind kind)
void setNullabilityAudited(
clang::NullabilityKind kind)
Declared at: clang/include/clang/APINotes/Types.h:319
Parameters
- clang::NullabilityKind kind
¶void setType(const std::string& type)
void setType(const std::string& type)
Declared at: clang/include/clang/APINotes/Types.h:325
Parameters
- const std::string& type