1 //===--- NamespaceEndCommentsFixer.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 NamespaceEndCommentsFixer, a TokenAnalyzer that
12 /// fixes namespace end comments.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_CLANG_LIB_FORMAT_NAMESPACEENDCOMMENTSFIXER_H
17 #define LLVM_CLANG_LIB_FORMAT_NAMESPACEENDCOMMENTSFIXER_H
19 #include "TokenAnalyzer.h"
24 class NamespaceEndCommentsFixer : public TokenAnalyzer {
26 NamespaceEndCommentsFixer(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