Krasimir Georgiev | 7cb267a | 2017-02-27 13:28:36 +0000 | [diff] [blame] | 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 | |
Krasimir Georgiev | 9ad83fe | 2017-10-30 14:01:50 +0000 | [diff] [blame] | 28 | std::pair<tooling::Replacements, unsigned> |
Krasimir Georgiev | 7cb267a | 2017-02-27 13:28:36 +0000 | [diff] [blame] | 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 |