clang-tools 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::clangd::MacroOccurrence Struct Reference

#include <CollectMacros.h>

Public Member Functions

Range toRange (const SourceManager &SM) const
 

Public Attributes

size_t StartOffset
 
size_t EndOffset
 
bool IsDefinition
 
bool InConditionalDirective
 

Detailed Description

Definition at line 25 of file CollectMacros.h.

Member Function Documentation

◆ toRange()

Range clang::clangd::MacroOccurrence::toRange ( const SourceManager &  SM) const

Definition at line 21 of file CollectMacros.cpp.

References EndOffset, clang::clangd::halfOpenToRange(), MainFile, and StartOffset.

Member Data Documentation

◆ EndOffset

size_t clang::clangd::MacroOccurrence::EndOffset

Definition at line 28 of file CollectMacros.h.

Referenced by toRange().

◆ InConditionalDirective

bool clang::clangd::MacroOccurrence::InConditionalDirective

Definition at line 32 of file CollectMacros.h.

◆ IsDefinition

bool clang::clangd::MacroOccurrence::IsDefinition

Definition at line 30 of file CollectMacros.h.

◆ StartOffset

size_t clang::clangd::MacroOccurrence::StartOffset

Definition at line 27 of file CollectMacros.h.

Referenced by toRange().


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