clang  6.0.0svn
Classes | Namespaces | Macros | Functions
SortJavaScriptImports.cpp File Reference

This file implements a sort operation for JavaScript ES6 imports. More...

#include "SortJavaScriptImports.h"
#include "TokenAnalyzer.h"
#include "TokenAnnotator.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Format/Format.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include <algorithm>
#include <string>
Include dependency graph for SortJavaScriptImports.cpp:

Go to the source code of this file.

Classes

struct  clang::format::JsImportedSymbol
 
struct  clang::format::JsModuleReference
 
class  clang::format::JavaScriptImportSorter
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::format
 

Macros

#define DEBUG_TYPE   "format-formatter"
 

Functions

bool clang::format::operator< (const JsModuleReference &LHS, const JsModuleReference &RHS)
 
tooling::Replacements clang::format::sortJavaScriptImports (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName)
 

Detailed Description

This file implements a sort operation for JavaScript ES6 imports.

Definition in file SortJavaScriptImports.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "format-formatter"

Definition at line 30 of file SortJavaScriptImports.cpp.