class DefinitionBlockSeparator
Declaration
class DefinitionBlockSeparator : public TokenAnalyzer { /* full declaration omitted */ };
Declared at: clang/lib/Format/DefinitionBlockSeparator.h:24
Inherits from: TokenAnalyzer
Member Variables
Inherited from TokenAnalyzer:
Method Overview
- public DefinitionBlockSeparator(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)
- private void separateBlocks(SmallVectorImpl<clang::format::AnnotatedLine *> & Lines, tooling::Replacements & Result, clang::format::FormatTokenLexer & Tokens)
Inherited from TokenAnalyzer:
Inherited from UnwrappedLineConsumer:
Methods
¶DefinitionBlockSeparator(
const clang::format::Environment& Env,
const clang::format::FormatStyle& Style)
DefinitionBlockSeparator(
const clang::format::Environment& Env,
const clang::format::FormatStyle& Style)
Declared at: clang/lib/Format/DefinitionBlockSeparator.h:26
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)
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/DefinitionBlockSeparator.h:30
Parameters
- clang::format::TokenAnnotator& Annotator
- SmallVectorImpl<clang::format::AnnotatedLine*>& AnnotatedLines
- clang::format::FormatTokenLexer& Tokens
¶void separateBlocks(
SmallVectorImpl<
clang::format::AnnotatedLine*>& Lines,
tooling::Replacements& Result,
clang::format::FormatTokenLexer& Tokens)
void separateBlocks(
SmallVectorImpl<
clang::format::AnnotatedLine*>& Lines,
tooling::Replacements& Result,
clang::format::FormatTokenLexer& Tokens)
Declared at: clang/lib/Format/DefinitionBlockSeparator.h:35
Parameters
- SmallVectorImpl<clang::format::AnnotatedLine*>& Lines
- tooling::Replacements& Result
- clang::format::FormatTokenLexer& Tokens