Go to the documentation of this file.
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;
250 return !(*
this == R);
436 return !(*
this == R);
3819 Other.AfterFunctionDeclarationName &&
4307 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
4322 std::shared_ptr<MapType> Styles;
4327 const std::vector<FormatStyle> &ConfigurationStyles);
4332 friend std::error_code
4334 bool AllowUnknownOptions,
4335 llvm::SourceMgr::DiagHandlerTy DiagHandler,
4336 void *DiagHandlerCtxt);
4398 bool AllowUnknownOptions =
false,
4399 llvm::SourceMgr::DiagHandlerTy DiagHandler =
nullptr,
4400 void *DiagHandlerCtx =
nullptr);
4404 bool AllowUnknownOptions =
false) {
4406 AllowUnknownOptions);
4417 unsigned *
Cursor =
nullptr);
4424 const FormatStyle &Style);
4441 const FormatStyle &Style);
4468 StringRef FileName =
"<stdin>",
4476 StringRef FileName,
bool *IncompleteFormat);
4484 StringRef FileName =
"<stdin>");
4493 StringRef FileName =
"<stdin>");
4504 StringRef FileName =
"<stdin>");
4514 StringRef FileName =
"<stdin>");
4565 StringRef FallbackStyle,
4566 StringRef Code =
"",
4567 llvm::vfs::FileSystem *FS =
nullptr,
4568 bool AllowUnknownOptions =
false);
4582 return "Objective-C";
4586 return "JavaScript";
4610 #endif // LLVM_CLANG_FORMAT_FORMAT_H
YAML serialization mapping.
Language
The language for the input, used to select and validate the language standard and possible actions.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...