clang
6.0.0
lib
Format
NamespaceEndCommentsFixer.h
Go to the documentation of this file.
1
//===--- NamespaceEndCommentsFixer.h ----------------------------*- C++ -*-===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
///
10
/// \file
11
/// \brief This file declares NamespaceEndCommentsFixer, a TokenAnalyzer that
12
/// fixes namespace end comments.
13
///
14
//===----------------------------------------------------------------------===//
15
16
#ifndef LLVM_CLANG_LIB_FORMAT_NAMESPACEENDCOMMENTSFIXER_H
17
#define LLVM_CLANG_LIB_FORMAT_NAMESPACEENDCOMMENTSFIXER_H
18
19
#include "
TokenAnalyzer.h
"
20
21
namespace
clang
{
22
namespace
format {
23
24
class
NamespaceEndCommentsFixer
:
public
TokenAnalyzer
{
25
public
:
26
NamespaceEndCommentsFixer
(
const
Environment
&
Env
,
const
FormatStyle
&
Style
);
27
28
std::pair<tooling::Replacements, unsigned>
29
analyze
(
TokenAnnotator
&Annotator,
30
SmallVectorImpl<AnnotatedLine *>
&AnnotatedLines,
31
FormatTokenLexer
&Tokens)
override
;
32
};
33
34
}
// end namespace format
35
}
// end namespace clang
36
37
#endif
clang::format::NamespaceEndCommentsFixer::NamespaceEndCommentsFixer
NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style)
Definition:
NamespaceEndCommentsFixer.cpp:136
clang::format::TokenAnalyzer::Env
const Environment & Env
Definition:
TokenAnalyzer.h:124
clang::format::TokenAnalyzer::Style
FormatStyle Style
Definition:
TokenAnalyzer.h:122
llvm::SmallVectorImpl
Definition:
LLVM.h:36
clang::format::NamespaceEndCommentsFixer
Definition:
NamespaceEndCommentsFixer.h:24
clang::format::FormatTokenLexer
Definition:
FormatTokenLexer.h:37
clang::format::TokenAnnotator
Determines extra information about the tokens comprising an UnwrappedLine.
Definition:
TokenAnnotator.h:141
clang::format::TokenAnalyzer
Definition:
TokenAnalyzer.h:106
clang::format::NamespaceEndCommentsFixer::analyze
std::pair< tooling::Replacements, unsigned > analyze(TokenAnnotator &Annotator, SmallVectorImpl< AnnotatedLine *> &AnnotatedLines, FormatTokenLexer &Tokens) override
Definition:
NamespaceEndCommentsFixer.cpp:140
clang::format::FormatStyle
The FormatStyle is used to configure the formatting to follow specific guidelines.
Definition:
Format.h:46
clang
Dataflow Directional Tag Classes.
Definition:
CFGReachabilityAnalysis.h:22
TokenAnalyzer.h
This file declares an abstract TokenAnalyzer, and associated helper classes.
clang::format::Environment
Definition:
TokenAnalyzer.h:37
Generated on Thu Feb 8 2018 09:14:18 for clang by
1.8.13