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);
4402 return !(*
this == R);
4770 Other.AfterFunctionDeclarationName &&
5073 return !(*
this == R);
5564 typedef std::map<LanguageKind, FormatStyle>
MapType;
5579 std::shared_ptr<MapType> Styles;
5584 const std::vector<FormatStyle> &ConfigurationStyles);
5589 friend std::error_code
5591 bool AllowUnknownOptions,
5592 llvm::SourceMgr::DiagHandlerTy DiagHandler,
5593 void *DiagHandlerCtxt,
bool IsDotHFile);
5657 bool AllowUnknownOptions =
false,
5658 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
5659 void *DiagHandlerCtx =
nullptr,
bool IsDotHFile =
false);
5663 bool AllowUnknownOptions =
false,
5664 bool IsDotHFile =
false) {
5666 AllowUnknownOptions,
nullptr,
5667 nullptr, IsDotHFile);
5678 unsigned *Cursor =
nullptr);
5685 const FormatStyle &Style);
5702 const FormatStyle &Style);
5737 StringRef
FileName,
bool *IncompleteFormat);
5826 StringRef Code =
"", llvm::vfs::FileSystem *FS =
nullptr,
5827 bool AllowUnknownOptions =
false,
5828 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr);
5844 return "Objective-C";
5848 return "JavaScript";
5871struct 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.