class SourceRange
Declaration
class SourceRange { /* full declaration omitted */ };
Description
A trivial tuple used to represent a source range.
Declared at: clang/include/clang/Basic/SourceLocation.h:210
Member Variables
- private clang::SourceLocation B
- private clang::SourceLocation E
Method Overview
- public SourceRange()
- public SourceRange(clang::SourceLocation loc)
- public SourceRange(clang::SourceLocation begin, clang::SourceLocation end)
- public void dump(const clang::SourceManager & SM) const
- public bool fullyContains(const clang::SourceRange & other) const
- public clang::SourceLocation getBegin() const
- public clang::SourceLocation getEnd() const
- public bool isInvalid() const
- public bool isValid() const
- public void print(llvm::raw_ostream & OS, const clang::SourceManager & SM) const
- public std::string printToString(const clang::SourceManager & SM) const
- public void setBegin(clang::SourceLocation b)
- public void setEnd(clang::SourceLocation e)
Methods
¶SourceRange()
SourceRange()
Declared at: clang/include/clang/Basic/SourceLocation.h:215
¶SourceRange(clang::SourceLocation loc)
SourceRange(clang::SourceLocation loc)
Declared at: clang/include/clang/Basic/SourceLocation.h:216
Parameters
¶SourceRange(clang::SourceLocation begin,
clang::SourceLocation end)
SourceRange(clang::SourceLocation begin,
clang::SourceLocation end)
Declared at: clang/include/clang/Basic/SourceLocation.h:217
Parameters
¶void dump(const clang::SourceManager& SM) const
void dump(const clang::SourceManager& SM) const
Declared at: clang/include/clang/Basic/SourceLocation.h:243
Parameters
- const clang::SourceManager& SM
¶bool fullyContains(
const clang::SourceRange& other) const
bool fullyContains(
const clang::SourceRange& other) const
Declared at: clang/include/clang/Basic/SourceLocation.h:237
Parameters
- const clang::SourceRange& other
¶clang::SourceLocation getBegin() const
clang::SourceLocation getBegin() const
Declared at: clang/include/clang/Basic/SourceLocation.h:219
¶clang::SourceLocation getEnd() const
clang::SourceLocation getEnd() const
Declared at: clang/include/clang/Basic/SourceLocation.h:220
¶bool isInvalid() const
bool isInvalid() const
Declared at: clang/include/clang/Basic/SourceLocation.h:226
¶bool isValid() const
bool isValid() const
Declared at: clang/include/clang/Basic/SourceLocation.h:225
¶void print(llvm::raw_ostream& OS,
const clang::SourceManager& SM) const
void print(llvm::raw_ostream& OS,
const clang::SourceManager& SM) const
Declared at: clang/include/clang/Basic/SourceLocation.h:241
Parameters
- llvm::raw_ostream& OS
- const clang::SourceManager& SM
¶std::string printToString(
const clang::SourceManager& SM) const
std::string printToString(
const clang::SourceManager& SM) const
Declared at: clang/include/clang/Basic/SourceLocation.h:242
Parameters
- const clang::SourceManager& SM
¶void setBegin(clang::SourceLocation b)
void setBegin(clang::SourceLocation b)
Declared at: clang/include/clang/Basic/SourceLocation.h:222
Parameters
¶void setEnd(clang::SourceLocation e)
void setEnd(clang::SourceLocation e)
Declared at: clang/include/clang/Basic/SourceLocation.h:223