clang 22.0.0git
clang::diff::SNodeId Struct Reference

Identifies a node in a subtree by its postorder offset, starting at 1. More...

Public Member Functions

 SNodeId (int Id)
 SNodeId ()=default
 operator int () const
SNodeIdoperator++ ()
SNodeIdoperator-- ()
SNodeId operator+ (int Other) const

Public Attributes

int Id = 0

Detailed Description

Identifies a node in a subtree by its postorder offset, starting at 1.

Definition at line 474 of file ASTDiff.cpp.

Constructor & Destructor Documentation

◆ SNodeId() [1/2]

clang::diff::SNodeId::SNodeId ( int Id)
inlineexplicit

Definition at line 477 of file ASTDiff.cpp.

References Id.

Referenced by operator+(), operator++(), and operator--().

◆ SNodeId() [2/2]

clang::diff::SNodeId::SNodeId ( )
explicitdefault

Member Function Documentation

◆ operator int()

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

Definition at line 480 of file ASTDiff.cpp.

References Id.

◆ operator+()

SNodeId clang::diff::SNodeId::operator+ ( int Other) const
inline

Definition at line 483 of file ASTDiff.cpp.

References Id, clang::Other, and SNodeId().

◆ operator++()

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

Definition at line 481 of file ASTDiff.cpp.

References Id, and SNodeId().

◆ operator--()

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

Definition at line 482 of file ASTDiff.cpp.

References Id, and SNodeId().

Member Data Documentation

◆ Id

int clang::diff::SNodeId::Id = 0

Definition at line 475 of file ASTDiff.cpp.

Referenced by operator int(), operator+(), operator++(), operator--(), and SNodeId().


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