clang
8.0.0
|
#include "/work/www-prereleases/8.0.0/rc4/docsbuild/llvm.src/tools/clang/lib/Format/AffectedRangeManager.h"
Public Member Functions | |
AffectedRangeManager (const SourceManager &SourceMgr, const ArrayRef< CharSourceRange > Ranges) | |
bool | computeAffectedLines (SmallVectorImpl< AnnotatedLine *> &Lines) |
bool | affectsCharSourceRange (const CharSourceRange &Range) |
Definition at line 26 of file AffectedRangeManager.h.
|
inline |
Definition at line 28 of file AffectedRangeManager.h.
References affectsCharSourceRange(), computeAffectedLines(), clang::First, clang::Last, Line, and clang::format::Tok.
bool clang::format::AffectedRangeManager::affectsCharSourceRange | ( | const CharSourceRange & | Range | ) |
Definition at line 61 of file AffectedRangeManager.cpp.
References clang::format::AnnotatedLine::Affected, clang::format::AnnotatedLine::Children, clang::format::FormatToken::Children, clang::format::AnnotatedLine::ChildrenAffected, computeAffectedLines(), End, clang::First, clang::format::AnnotatedLine::First, clang::SourceRange::getBegin(), clang::CharSourceRange::getBegin(), clang::CharSourceRange::getCharRange(), clang::CharSourceRange::getEnd(), clang::SourceLocation::getLocWithOffset(), clang::format::FormatToken::getStartOfNonWhitespace(), clang::format::FormatToken::is(), clang::SourceManager::isBeforeInTranslationUnit(), clang::format::UnwrappedLine::kInvalidIndex, clang::Last, clang::format::AnnotatedLine::Last, clang::format::FormatToken::LastNewlineOffset, Line, clang::format::AnnotatedLine::MatchingOpeningBlockLineIndex, clang::format::FormatToken::NewlinesBefore, clang::format::FormatToken::Next, clang::format::Tok, clang::format::FormatToken::TokenText, and clang::format::FormatToken::WhitespaceRange.
Referenced by AffectedRangeManager().
bool clang::format::AffectedRangeManager::computeAffectedLines | ( | SmallVectorImpl< AnnotatedLine *> & | Lines | ) |
Definition at line 23 of file AffectedRangeManager.cpp.
References clang::format::AnnotatedLine::First, clang::format::AnnotatedLine::InPPDirective, clang::Last, clang::format::AnnotatedLine::Last, clang::format::AnnotatedLine::LeadingEmptyLinesAffected, and Line.
Referenced by AffectedRangeManager(), and affectsCharSourceRange().