class AffectedRangeManager
Declaration
class AffectedRangeManager { /* full declaration omitted */ };
Declared at: clang/lib/Format/AffectedRangeManager.h:25
Member Variables
- private const clang::SourceManager& SourceMgr
- private const SmallVector<clang::CharSourceRange, 8> Ranges
Method Overview
- public AffectedRangeManager(const clang::SourceManager & SourceMgr, const ArrayRef<clang::CharSourceRange> Ranges)
- public bool affectsCharSourceRange(const clang::CharSourceRange & Range)
- private bool affectsLeadingEmptyLines(const clang::format::FormatToken & Tok)
- private bool affectsTokenRange(const clang::format::FormatToken & First, const clang::format::FormatToken & Last, bool IncludeLeadingNewlines)
- public bool computeAffectedLines(SmallVectorImpl<clang::format::AnnotatedLine *> & Lines)
- private void markAllAsAffected(SmallVectorImpl<AnnotatedLine *>::iterator I, SmallVectorImpl<AnnotatedLine *>::iterator E)
- private bool nonPPLineAffected(clang::format::AnnotatedLine * Line, const clang::format::AnnotatedLine * PreviousLine, SmallVectorImpl<clang::format::AnnotatedLine *> & Lines)
Methods
¶AffectedRangeManager(
const clang::SourceManager& SourceMgr,
const ArrayRef<clang::CharSourceRange> Ranges)
AffectedRangeManager(
const clang::SourceManager& SourceMgr,
const ArrayRef<clang::CharSourceRange> Ranges)
Declared at: clang/lib/Format/AffectedRangeManager.h:27
Parameters
- const clang::SourceManager& SourceMgr
- const ArrayRef<clang::CharSourceRange> Ranges
¶bool affectsCharSourceRange(
const clang::CharSourceRange& Range)
bool affectsCharSourceRange(
const clang::CharSourceRange& Range)
Declared at: clang/lib/Format/AffectedRangeManager.h:37
Parameters
- const clang::CharSourceRange& Range
¶bool affectsLeadingEmptyLines(
const clang::format::FormatToken& Tok)
bool affectsLeadingEmptyLines(
const clang::format::FormatToken& Tok)
Declared at: clang/lib/Format/AffectedRangeManager.h:47
Parameters
- const clang::format::FormatToken& Tok
¶bool affectsTokenRange(
const clang::format::FormatToken& First,
const clang::format::FormatToken& Last,
bool IncludeLeadingNewlines)
bool affectsTokenRange(
const clang::format::FormatToken& First,
const clang::format::FormatToken& Last,
bool IncludeLeadingNewlines)
Declared at: clang/lib/Format/AffectedRangeManager.h:42
Parameters
- const clang::format::FormatToken& First
- const clang::format::FormatToken& Last
- bool IncludeLeadingNewlines
¶bool computeAffectedLines(
SmallVectorImpl<
clang::format::AnnotatedLine*>& Lines)
bool computeAffectedLines(
SmallVectorImpl<
clang::format::AnnotatedLine*>& Lines)
Declared at: clang/lib/Format/AffectedRangeManager.h:34
Parameters
- SmallVectorImpl<clang::format::AnnotatedLine*>& Lines
¶void markAllAsAffected(
SmallVectorImpl<AnnotatedLine*>::iterator I,
SmallVectorImpl<AnnotatedLine*>::iterator E)
void markAllAsAffected(
SmallVectorImpl<AnnotatedLine*>::iterator I,
SmallVectorImpl<AnnotatedLine*>::iterator E)
Declared at: clang/lib/Format/AffectedRangeManager.h:50
Parameters
- SmallVectorImpl<AnnotatedLine*>::iterator I
- SmallVectorImpl<AnnotatedLine*>::iterator E
¶bool nonPPLineAffected(
clang::format::AnnotatedLine* Line,
const clang::format::AnnotatedLine*
PreviousLine,
SmallVectorImpl<
clang::format::AnnotatedLine*>& Lines)
bool nonPPLineAffected(
clang::format::AnnotatedLine* Line,
const clang::format::AnnotatedLine*
PreviousLine,
SmallVectorImpl<
clang::format::AnnotatedLine*>& Lines)
Declared at: clang/lib/Format/AffectedRangeManager.h:55
Parameters
- clang::format::AnnotatedLine* Line
- const clang::format::AnnotatedLine* PreviousLine
- SmallVectorImpl<clang::format::AnnotatedLine*>& Lines