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);