15 #ifndef LLVM_CLANG_FORMAT_FORMAT_H 16 #define LLVM_CLANG_FORMAT_FORMAT_H 20 #include "llvm/ADT/ArrayRef.h" 21 #include <system_error> 27 class DiagnosticConsumer;
38 const char *name()
const noexcept
override;
39 std::string message(
int EV)
const override;
1216 bool isCpp()
const {
return Language == LK_Cpp || Language == LK_ObjC; }
1608 AllowAllParametersOfDeclarationOnNextLine ==
1611 AllowShortCaseLabelsOnASingleLine ==
1613 AllowShortFunctionsOnASingleLine ==
1615 AllowShortIfStatementsOnASingleLine ==
1619 AlwaysBreakBeforeMultilineStrings ==
1621 AlwaysBreakTemplateDeclarations ==
1634 ConstructorInitializerAllOnOneLineOrOnePerLine ==
1636 ConstructorInitializerIndentWidth ==
1642 ExperimentalAutoDetectBinPacking ==
1654 KeepEmptyLinesAtTheStartOfBlocks ==
1663 PenaltyBreakAssignment ==
1665 PenaltyBreakBeforeFirstCallParameter ==
1745 unsigned *
Cursor =
nullptr);
1779 bool FormatComplete =
true;
1800 StringRef FileName =
"<stdin>",
1809 bool *IncompleteFormat);
1817 StringRef FileName =
"<stdin>");
1826 StringRef FileName =
"<stdin>");
1836 StringRef FileName =
"<stdin>");
1873 StringRef FallbackStyle,
1874 StringRef Code =
"",
1880 case FormatStyle::LK_Cpp:
1882 case FormatStyle::LK_ObjC:
1883 return "Objective-C";
1884 case FormatStyle::LK_Java:
1886 case FormatStyle::LK_JavaScript:
1887 return "JavaScript";
1888 case FormatStyle::LK_Proto:
1890 case FormatStyle::LK_TextProto:
1905 #endif // LLVM_CLANG_FORMAT_FORMAT_H
The virtual file system interface.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
std::error_code make_error_code(BuildPreambleError Error)
Defines the clang::LangOptions interface.
const AnnotatedLine * Line
Dataflow Directional Tag Classes.