clang
20.0.0git
lib
Format
SortJavaScriptImports.h
Go to the documentation of this file.
1
//===--- SortJavaScriptImports.h - Sort ES6 Imports -------------*- 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 implements a sorter for JavaScript ES6 imports.
11
///
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_CLANG_LIB_FORMAT_SORTJAVASCRIPTIMPORTS_H
15
#define LLVM_CLANG_LIB_FORMAT_SORTJAVASCRIPTIMPORTS_H
16
17
#include "
clang/Format/Format.h
"
18
19
namespace
clang
{
20
namespace
format {
21
22
// Sort JavaScript ES6 imports/exports in ``Code``. The generated replacements
23
// only monotonically increase the length of the given code.
24
tooling::Replacements
sortJavaScriptImports
(
const
FormatStyle &Style,
25
StringRef Code,
26
ArrayRef<tooling::Range> Ranges,
27
StringRef
FileName
);
28
29
}
// end namespace format
30
}
// end namespace clang
31
32
#endif
Format.h
Various functions to configurably format source code.
clang::format::sortJavaScriptImports
tooling::Replacements sortJavaScriptImports(const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName)
Definition:
SortJavaScriptImports.cpp:589
clang
The JSON file list parser is used to communicate input to InstallAPI.
Definition:
CalledOnceCheck.h:17
clang::SourceLocIdentKind::FileName
@ FileName
Generated on Fri Nov 22 2024 09:49:08 for clang by
1.9.6