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);
614 return !(*
this == R);
4538 Other.AfterFunctionDeclarationName &&
4809 return !(*
this == R);
5234 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
5249 std::shared_ptr<MapType> Styles;
5254 const std::vector<FormatStyle> &ConfigurationStyles);
5259 friend std::error_code
5261 bool AllowUnknownOptions,
5262 llvm::SourceMgr::DiagHandlerTy DiagHandler,
5263 void *DiagHandlerCtxt);
5327 bool AllowUnknownOptions =
false,
5328 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
5329 void *DiagHandlerCtx =
nullptr);
5333 bool AllowUnknownOptions =
false) {
5335 AllowUnknownOptions);
5346 unsigned *Cursor =
nullptr);
5353 const FormatStyle &Style);
5370 const FormatStyle &Style);
5405 StringRef
FileName,
bool *IncompleteFormat);
5495 StringRef Code =
"", llvm::vfs::FileSystem *FS =
nullptr,
5496 bool AllowUnknownOptions =
false,
5497 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr);
5511 return "Objective-C";
5515 return "JavaScript";
5538struct 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...
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.
Diagnostic wrappers for TextAPI types for error reporting.