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);
574 return !(*
this == R);
4383 Other.AfterFunctionDeclarationName &&
4638 return !(*
this == R);
5001 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
5016 std::shared_ptr<MapType> Styles;
5021 const std::vector<FormatStyle> &ConfigurationStyles);
5026 friend std::error_code
5028 bool AllowUnknownOptions,
5029 llvm::SourceMgr::DiagHandlerTy DiagHandler,
5030 void *DiagHandlerCtxt);
5094 bool AllowUnknownOptions =
false,
5095 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
5096 void *DiagHandlerCtx =
nullptr);
5100 bool AllowUnknownOptions =
false) {
5102 AllowUnknownOptions);
5113 unsigned *Cursor =
nullptr);
5120 const FormatStyle &Style);
5137 const FormatStyle &Style);
5172 StringRef
FileName,
bool *IncompleteFormat);
5261 StringRef FallbackStyle,
5262 StringRef Code =
"",
5263 llvm::vfs::FileSystem *FS =
nullptr,
5264 bool AllowUnknownOptions =
false);
5278 return "Objective-C";
5282 return "JavaScript";
5306struct 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.
YAML serialization mapping.