14#ifndef LLVM_CLANG_FORMAT_FORMAT_H
15#define LLVM_CLANG_FORMAT_FORMAT_H
20#include "llvm/ADT/ArrayRef.h"
21#include "llvm/Support/Regex.h"
22#include "llvm/Support/SourceMgr.h"
24#include <system_error>
47 const char *
name()
const noexcept override;
48 std::string
message(
int EV)
const override;
287 return !(*
this == R);
630 return !(*
this == R);
4619 Other.AfterFunctionDeclarationName &&
4890 return !(*
this == R);
5327 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
5342 std::shared_ptr<MapType> Styles;
5347 const std::vector<FormatStyle> &ConfigurationStyles);
5352 friend std::error_code
5354 bool AllowUnknownOptions,
5355 llvm::SourceMgr::DiagHandlerTy DiagHandler,
5356 void *DiagHandlerCtxt);
5420 bool AllowUnknownOptions =
false,
5421 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
5422 void *DiagHandlerCtx =
nullptr);
5426 bool AllowUnknownOptions =
false) {
5428 AllowUnknownOptions);
5439 unsigned *Cursor =
nullptr);
5446 const FormatStyle &Style);
5463 const FormatStyle &Style);
5498 StringRef
FileName,
bool *IncompleteFormat);
5587 StringRef Code =
"", llvm::vfs::FileSystem *FS =
nullptr,
5588 bool AllowUnknownOptions =
false,
5589 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr);
5603 return "Objective-C";
5607 return "JavaScript";
5630struct std::is_error_code_enum<
clang::format::ParseError> : std::true_type {};
Defines the clang::LangOptions interface.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
The JSON file list parser is used to communicate input to InstallAPI.
Language
The language for the input, used to select and validate the language standard and possible actions.
Diagnostic wrappers for TextAPI types for error reporting.