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;
250 return !(*
this == R);
436 return !(*
this == R);
3952 Other.AfterFunctionDeclarationName &&
4460 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
4475 std::shared_ptr<MapType> Styles;
4480 const std::vector<FormatStyle> &ConfigurationStyles);
4485 friend std::error_code
4487 bool AllowUnknownOptions,
4488 llvm::SourceMgr::DiagHandlerTy DiagHandler,
4489 void *DiagHandlerCtxt);
4551 bool AllowUnknownOptions =
false,
4552 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
4553 void *DiagHandlerCtx =
nullptr);
4557 bool AllowUnknownOptions =
false) {
4559 AllowUnknownOptions);
4570 unsigned *Cursor =
nullptr);
4577 const FormatStyle &Style);
4594 const FormatStyle &Style);
4621 StringRef FileName =
"<stdin>",
4629 StringRef FileName,
bool *IncompleteFormat);
4637 StringRef FileName =
"<stdin>");
4646 StringRef FileName =
"<stdin>");
4657 StringRef FileName =
"<stdin>");
4667 StringRef FileName =
"<stdin>");
4718 StringRef FallbackStyle,
4719 StringRef Code =
"",
4720 llvm::vfs::FileSystem *FS =
nullptr,
4721 bool AllowUnknownOptions =
false);
4735 return "Objective-C";
4739 return "JavaScript";
4763struct 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.