clang 20.0.0git
UsingDeclarationsSorter.h
Go to the documentation of this file.
1//===--- UsingDeclarationsSorter.h ------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file
10/// This file declares UsingDeclarationsSorter, a TokenAnalyzer that
11/// sorts consecutive using declarations.
12///
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_CLANG_LIB_FORMAT_USINGDECLARATIONSSORTER_H
16#define LLVM_CLANG_LIB_FORMAT_USINGDECLARATIONSSORTER_H
17
18#include "TokenAnalyzer.h"
19
20namespace clang {
21namespace format {
22
24public:
26
27 std::pair<tooling::Replacements, unsigned>
28 analyze(TokenAnnotator &Annotator,
30 FormatTokenLexer &Tokens) override;
31};
32
33} // end namespace format
34} // end namespace clang
35
36#endif
This file declares an abstract TokenAnalyzer, and associated helper classes.
const Environment & Env
Definition: TokenAnalyzer.h:97
Determines extra information about the tokens comprising an UnwrappedLine.
std::pair< tooling::Replacements, unsigned > analyze(TokenAnnotator &Annotator, SmallVectorImpl< AnnotatedLine * > &AnnotatedLines, FormatTokenLexer &Tokens) override
The JSON file list parser is used to communicate input to InstallAPI.
The FormatStyle is used to configure the formatting to follow specific guidelines.
Definition: Format.h:55