clang 18.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::dataflow::RecordValue Class Referencefinal

Models a value of struct or class type. More...

#include "clang/Analysis/FlowSensitive/Value.h"

Inheritance diagram for clang::dataflow::RecordValue:
Inheritance graph
[legend]

Public Member Functions

 RecordValue (RecordStorageLocation &Loc)
 
RecordStorageLocationgetLoc () const
 Returns the storage location that this RecordValue is associated with.
 
- Public Member Functions inherited from clang::dataflow::Value
 Value (Kind ValKind)
 
 Value (const Value &)=delete
 
Valueoperator= (const Value &)=delete
 
virtual ~Value ()=default
 
Kind getKind () const
 
ValuegetProperty (llvm::StringRef Name) const
 Returns the value of the synthetic property with the given Name or null if the property isn't assigned a value.
 
void setProperty (llvm::StringRef Name, Value &Val)
 Assigns Val as the value of the synthetic property with the given Name.
 
llvm::iterator_range< llvm::StringMap< Value * >::const_iterator > properties () const
 

Static Public Member Functions

static bool classof (const Value *Val)
 

Additional Inherited Members

- Public Types inherited from clang::dataflow::Value
enum class  Kind {
  Integer , Pointer , Record , TopBool ,
  AtomicBool , FormulaBool
}
 

Detailed Description

Models a value of struct or class type.

In C++, prvalues of class type serve only a limited purpose: They can only be used to initialize a result object. It is not possible to access member variables or call member functions on a prvalue of class type. Correspondingly, RecordValue also serves only two limited purposes:

Definition at line 216 of file Value.h.

Constructor & Destructor Documentation

◆ RecordValue()

clang::dataflow::RecordValue::RecordValue ( RecordStorageLocation Loc)
inlineexplicit

Definition at line 218 of file Value.h.

Member Function Documentation

◆ classof()

static bool clang::dataflow::RecordValue::classof ( const Value Val)
inlinestatic

Definition at line 221 of file Value.h.

References clang::dataflow::Value::getKind(), and clang::dataflow::Value::Record.

◆ getLoc()

RecordStorageLocation & clang::dataflow::RecordValue::getLoc ( ) const
inline

Returns the storage location that this RecordValue is associated with.

Definition at line 226 of file Value.h.


The documentation for this class was generated from the following file: