1 //===--- UsingDeclarationsSorter.h ------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief This file declares UsingDeclarationsSorter, a TokenAnalyzer that
12 /// sorts consecutive using declarations.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_CLANG_LIB_FORMAT_USINGDECLARATIONSSORTER_H
17 #define LLVM_CLANG_LIB_FORMAT_USINGDECLARATIONSSORTER_H
19 #include "TokenAnalyzer.h"
24 class UsingDeclarationsSorter : public TokenAnalyzer {
26 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
28 std::pair<tooling::Replacements, unsigned>
29 analyze(TokenAnnotator &Annotator,
30 SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
31 FormatTokenLexer &Tokens) override;
34 } // end namespace format
35 } // end namespace clang