15 #ifndef LLVM_CLANG_FORMAT_FORMAT_H 16 #define LLVM_CLANG_FORMAT_FORMAT_H 21 #include "llvm/ADT/ArrayRef.h" 22 #include "llvm/Support/Regex.h" 23 #include <system_error> 29 class DiagnosticConsumer;
40 const char *name()
const noexcept
override;
41 std::string message(
int EV)
const override;
1198 bool isCpp()
const {
return Language == LK_Cpp || Language == LK_ObjC; }
1683 AllowAllParametersOfDeclarationOnNextLine ==
1686 AllowShortCaseLabelsOnASingleLine ==
1688 AllowShortFunctionsOnASingleLine ==
1690 AllowShortIfStatementsOnASingleLine ==
1694 AlwaysBreakBeforeMultilineStrings ==
1696 AlwaysBreakTemplateDeclarations ==
1709 ConstructorInitializerAllOnOneLineOrOnePerLine ==
1711 ConstructorInitializerIndentWidth ==
1717 ExperimentalAutoDetectBinPacking ==
1729 KeepEmptyLinesAtTheStartOfBlocks ==
1740 PenaltyBreakBeforeFirstCallParameter ==
1747 PenaltyBreakTemplateDeclaration ==
1755 SpaceBeforeCtorInitializerColon ==
1759 SpaceBeforeRangeBasedForLoopColon ==
1782 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
1797 std::shared_ptr<MapType> Styles;
1802 const std::vector<FormatStyle> &ConfigurationStyles);
1867 unsigned *
Cursor =
nullptr);
1897 bool FormatComplete =
true;
1918 StringRef FileName =
"<stdin>",
1927 bool *IncompleteFormat);
1935 StringRef FileName =
"<stdin>");
1944 StringRef FileName =
"<stdin>");
1954 StringRef FileName =
"<stdin>");
2000 StringRef FallbackStyle,
2001 StringRef Code =
"",
2011 case FormatStyle::LK_Cpp:
2013 case FormatStyle::LK_ObjC:
2014 return "Objective-C";
2015 case FormatStyle::LK_Java:
2017 case FormatStyle::LK_JavaScript:
2018 return "JavaScript";
2019 case FormatStyle::LK_Proto:
2021 case FormatStyle::LK_TextProto:
2036 #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.