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);
4638 Other.AfterFunctionDeclarationName &&
4909 return !(*
this == R);
5392 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
5407 std::shared_ptr<MapType> Styles;
5412 const std::vector<FormatStyle> &ConfigurationStyles);
5417 friend std::error_code
5419 bool AllowUnknownOptions,
5420 llvm::SourceMgr::DiagHandlerTy DiagHandler,
5421 void *DiagHandlerCtxt);
5485 bool AllowUnknownOptions =
false,
5486 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
5487 void *DiagHandlerCtx =
nullptr);
5491 bool AllowUnknownOptions =
false) {
5493 AllowUnknownOptions);
5504 unsigned *Cursor =
nullptr);
5511 const FormatStyle &Style);
5528 const FormatStyle &Style);
5563 StringRef
FileName,
bool *IncompleteFormat);
5652 StringRef Code =
"", llvm::vfs::FileSystem *FS =
nullptr,
5653 bool AllowUnknownOptions =
false,
5654 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr);
5668 return "Objective-C";
5672 return "JavaScript";
5695struct 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...