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;
253 return !(*
this == R);
536 return !(*
this == R);
4311 Other.AfterFunctionDeclarationName &&
4566 return !(*
this == R);
4923 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
4938 std::shared_ptr<MapType> Styles;
4943 const std::vector<FormatStyle> &ConfigurationStyles);
4948 friend std::error_code
4950 bool AllowUnknownOptions,
4951 llvm::SourceMgr::DiagHandlerTy DiagHandler,
4952 void *DiagHandlerCtxt);
5016 bool AllowUnknownOptions =
false,
5017 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
5018 void *DiagHandlerCtx =
nullptr);
5022 bool AllowUnknownOptions =
false) {
5024 AllowUnknownOptions);
5035 unsigned *Cursor =
nullptr);
5042 const FormatStyle &Style);
5059 const FormatStyle &Style);
5094 StringRef
FileName,
bool *IncompleteFormat);
5183 StringRef FallbackStyle,
5184 StringRef Code =
"",
5185 llvm::vfs::FileSystem *FS =
nullptr,
5186 bool AllowUnknownOptions =
false);
5200 return "Objective-C";
5204 return "JavaScript";
5228struct 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...
Language
The language for the input, used to select and validate the language standard and possible actions.
YAML serialization mapping.