class NamespaceEndCommentsFixer

Declaration

class NamespaceEndCommentsFixer : public TokenAnalyzer { /* full declaration omitted */ };

Declared at: clang/lib/Format/NamespaceEndCommentsFixer.h:33

Inherits from: TokenAnalyzer

Member Variables

Inherited from TokenAnalyzer:

protected Style
protected Env
protected AffectedRangeMgr
protected UnwrappedLines
protected Encoding

Method Overview

  • public NamespaceEndCommentsFixer(const clang::format::Environment & Env, const clang::format::FormatStyle & Style)
  • public std::pair<tooling::Replacements, unsigned int> analyze(clang::format::TokenAnnotator & Annotator, SmallVectorImpl<clang::format::AnnotatedLine *> & AnnotatedLines, clang::format::FormatTokenLexer & Tokens)

Inherited from TokenAnalyzer:

Inherited from UnwrappedLineConsumer:

Methods

NamespaceEndCommentsFixer(
    const clang::format::Environment& Env,
    const clang::format::FormatStyle& Style)

Declared at: clang/lib/Format/NamespaceEndCommentsFixer.h:35

Parameters

const clang::format::Environment& Env
const clang::format::FormatStyle& Style

std::pair<tooling::Replacements, unsigned int>
analyze(clang::format::TokenAnnotator& Annotator,
        SmallVectorImpl<
            clang::format::AnnotatedLine*>&
            AnnotatedLines,
        clang::format::FormatTokenLexer& Tokens)

Declared at: clang/lib/Format/NamespaceEndCommentsFixer.h:38

Parameters

clang::format::TokenAnnotator& Annotator
SmallVectorImpl<clang::format::AnnotatedLine*>& AnnotatedLines
clang::format::FormatTokenLexer& Tokens