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;
271 return !(*
this == R);
614 return !(*
this == R);
4514 Other.AfterFunctionDeclarationName &&
4785 return !(*
this == R);
5210 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
5225 std::shared_ptr<MapType> Styles;
5230 const std::vector<FormatStyle> &ConfigurationStyles);
5235 friend std::error_code
5237 bool AllowUnknownOptions,
5238 llvm::SourceMgr::DiagHandlerTy DiagHandler,
5239 void *DiagHandlerCtxt);
5303 bool AllowUnknownOptions =
false,
5304 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
5305 void *DiagHandlerCtx =
nullptr);
5309 bool AllowUnknownOptions =
false) {
5311 AllowUnknownOptions);
5322 unsigned *Cursor =
nullptr);
5329 const FormatStyle &Style);
5346 const FormatStyle &Style);
5381 StringRef
FileName,
bool *IncompleteFormat);