MCPcopy Create free account
hub / github.com/clice-io/clice / getExpansionTokenRangeInSameFile

Function getExpansionTokenRangeInSameFile

tests/unit/semantic/selection_tests.cpp:152–158  ·  view source on GitHub ↗

Find an expansion range (not necessarily immediate) the ends of which are in the same file id.

Source from the content-addressed store, hash-verified

150// Find an expansion range (not necessarily immediate) the ends of which are in
151// the same file id.
152static SourceRange getExpansionTokenRangeInSameFile(SourceLocation Loc,
153 const SourceManager& SM,
154 const LangOptions& LangOpts) {
155 return rangeInCommonFile(toTokenRange(SM.getImmediateExpansionRange(Loc), SM, LangOpts),
156 SM,
157 LangOpts);
158}
159
160// Returns the file range for a given Location as a Token Range
161// This is quite similar to getFileLoc in SourceManager as both use

Callers 1

getTokenFileRangeFunction · 0.85

Calls 2

rangeInCommonFileFunction · 0.85
toTokenRangeFunction · 0.85

Tested by

no test coverage detected