a mapping of CIL related AST nodes in ROSE to fundamental functions of the class hierarchy analysis.
- Note
- The mapping holds no analysis state. It only caches data that is derived from the AST (decoded signature blobs, type identities); the cache is discarded by extractFromMemoryPool and extractFromProject. Consequently, a CilCompatibility object is not safe for concurrent use.
Definition at line 27 of file CilCompatibility.h.
|
| std::string | nameOf (Rose::Common::Analysis::FunctionKeyType key) const override |
| | returns the source name of the function represented by key.
|
| |
| std::string | nameOf (Rose::Common::Analysis::ClassKeyType key) const override |
| | returns the source name of the class represented by key.
|
| |
| bool | isAbstract (Rose::Common::Analysis::ClassKeyType key) const override |
| | returns true if the class represented by key is an abstract class.
|
| |
| bool | isPureVirtual (Rose::Common::Analysis::FunctionKeyType key) const override |
| | returns true if the class represented by key is an abstract function.
|
| |
| bool | isFinal (Rose::Common::Analysis::FunctionKeyType key) const override |
| | returns true if the function represented by key is final.
|
| |
| int | compareNames (Rose::Common::Analysis::FunctionKeyType lhs, Rose::Common::Analysis::FunctionKeyType rhs) const override |
| | compares the source name of the functions lhs and rhs.
|
| |
| int | compareFunctionsByType (Rose::Common::Analysis::FunctionKeyType lhs, Rose::Common::Analysis::FunctionKeyType rhs, bool exclReturnType=true) const override |
| | compares the canonical types of functions lhs and rhs
|
| |
| Rose::Common::Analysis::FunctionTypeRelation | haveSameOrCovariantReturn (const Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::FunctionKeyType basId, Rose::Common::Analysis::FunctionKeyType drvId) const override |
| | tests if drvId has the same or covariant return type with respect to basId
|
| |
| void | explicitOverrides (const Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::ClassKeyType cls, std::function< void(Rose::Common::Analysis::FunctionKeyType, Rose::Common::Analysis::FunctionKeyType)> fn) const override |
| | reports the explicit overrides (MethodImpl table) of cls.
|
| |
| bool | canOverrideInContext (const Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::ClassKeyType drvClass, Rose::Common::Analysis::FunctionKeyType drv, Rose::Common::Analysis::ClassKeyType basClass, Rose::Common::Analysis::FunctionKeyType bas) const override |
| |
| void | extractFromMemoryPool (Rose::Common::Analysis::ClassAnalysis &classes) const override |
| | extracts class information from the memory pool if available
|
| |
| void | extractFromProject (Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::ASTRootType root) const override |
| | extracts class by walking the AST rooted at root.
|
| |
| Rose::Common::Analysis::LanguageSpecificFn | languageSpecificProcessing () const override |
| | returns CIL-specific class post-processing.
|
| |
| void | inheritanceEdges (Rose::Common::Analysis::ClassKeyType clkey, std::function< void(Rose::Common::Analysis::ClassKeyType, Rose::Common::Analysis::ClassKeyType, bool)> fn) const override |
| | calls the callback function fn(derived, base, isvirtual) for all direct base classes of clkey
|
| |
| Rose::Common::Analysis::DataMemberType | typeOf (Rose::Common::Analysis::VariableKeyType var) const override |
| | returns the type of a non-static data member var.
|
| |
|
| AbstractCompatibilityBridge ()=default |
| | Constructs a stateless compatibility bridge.
|
| |
|
virtual | ~AbstractCompatibilityBridge ()=default |
| | Destroys a compatibility bridge through the base type.
|
| |
| virtual void | inheritanceEdges (ClassKeyType clkey, std::function< void(ClassKeyType, ClassKeyType, bool)> fn) const =0 |
| | calls the callback function fn(derived, base, isvirtual) for all direct base classes of clkey
|
| |
| virtual bool | isAutoGeneratable (const ClassAnalysis &classes, ClassKeyType clkey, FunctionKeyType fnkey) const |
| | returns whether a function with fnkey's signature can be implicitly generated in clkey.
|
| |
| virtual std::uint32_t | languageStandard () const |
| | returns the active language standard as a C++ __cplusplus-style value when available.
|
| |
| virtual bool | inheritedMethodsImplementVirtualBaseMethods () const |
| | returns whether a method inherited along the non-virtual inheritance chain implements an otherwise unimplemented function of a virtual base.
|
| |
| virtual bool | isInheritableImplementation (FunctionKeyType fnkey) const |
| | returns whether the inherited function fnkey qualifies as an implementation of a virtual base function (see inheritedMethodsImplementVirtualBaseMethods).
|
| |
| virtual bool | canOverride (FunctionKeyType drv, FunctionKeyType bas) const |
| | returns whether drv may override bas under language rules beyond name and signature, such as access control.
|
| |
| virtual void | explicitOverrides (const ClassAnalysis &classes, ClassKeyType cls, std::function< void(FunctionKeyType, FunctionKeyType)> fn) const |
| | reports override relations that are declared explicitly instead of being derived from names and signatures.
|
| |