clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::diff::NodeId Struct Reference

Within a tree, this identifies a node by its preorder offset. More...

#include "clang/Tooling/ASTDiff/ASTDiffInternal.h"

Public Member Functions

 NodeId ()
 
 NodeId (int Id)
 
 operator int () const
 
NodeIdoperator++ ()
 
NodeIdoperator-- ()
 
NodeIdoperator* ()
 
bool isValid () const
 
bool isInvalid () const
 

Public Attributes

int Id
 

Detailed Description

Within a tree, this identifies a node by its preorder offset.

Definition at line 21 of file ASTDiffInternal.h.

Constructor & Destructor Documentation

◆ NodeId() [1/2]

clang::diff::NodeId::NodeId ( )
inline

Definition at line 28 of file ASTDiffInternal.h.

◆ NodeId() [2/2]

clang::diff::NodeId::NodeId ( int  Id)
inline

Definition at line 29 of file ASTDiffInternal.h.

Member Function Documentation

◆ isInvalid()

bool clang::diff::NodeId::isInvalid ( ) const
inline

Definition at line 38 of file ASTDiffInternal.h.

References Id.

Referenced by clang::diff::ASTDiff::Impl::computeChangeKinds().

◆ isValid()

bool clang::diff::NodeId::isValid ( ) const
inline

Definition at line 37 of file ASTDiffInternal.h.

References Id.

◆ operator int()

clang::diff::NodeId::operator int ( ) const
inline

Definition at line 31 of file ASTDiffInternal.h.

References Id.

◆ operator*()

NodeId & clang::diff::NodeId::operator* ( )
inline

Definition at line 35 of file ASTDiffInternal.h.

◆ operator++()

NodeId & clang::diff::NodeId::operator++ ( )
inline

Definition at line 32 of file ASTDiffInternal.h.

References Id.

◆ operator--()

NodeId & clang::diff::NodeId::operator-- ( )
inline

Definition at line 33 of file ASTDiffInternal.h.

References Id.

Member Data Documentation

◆ Id

int clang::diff::NodeId::Id

Definition at line 26 of file ASTDiffInternal.h.

Referenced by isInvalid(), isValid(), operator int(), operator++(), and operator--().


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