clang  5.0.0
UsingDeclarationsSorter.h
Go to the documentation of this file.
1 //===--- UsingDeclarationsSorter.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 UsingDeclarationsSorter, a TokenAnalyzer that
12 /// sorts consecutive using declarations.
13 ///
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef LLVM_CLANG_LIB_FORMAT_USINGDECLARATIONSSORTER_H
17 #define LLVM_CLANG_LIB_FORMAT_USINGDECLARATIONSSORTER_H
18 
19 #include "TokenAnalyzer.h"
20 
21 namespace clang {
22 namespace format {
23 
25 public:
27 
29  analyze(TokenAnnotator &Annotator,
31  FormatTokenLexer &Tokens) override;
32 };
33 
34 } // end namespace format
35 } // end namespace clang
36 
37 #endif
UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style)
Maintains a set of replacements that are conflict-free.
Definition: Replacement.h:205
const Environment & Env
Definition: TokenAnalyzer.h:93
const SmallVectorImpl< AnnotatedLine * > & AnnotatedLines
Determines extra information about the tokens comprising an UnwrappedLine.
ArrayRef< FormatToken * > Tokens
tooling::Replacements analyze(TokenAnnotator &Annotator, SmallVectorImpl< AnnotatedLine * > &AnnotatedLines, FormatTokenLexer &Tokens) override
The FormatStyle is used to configure the formatting to follow specific guidelines.
Definition: Format.h:46
This file declares an abstract TokenAnalyzer, and associated helper classes.