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> 35 class DiagnosticConsumer;
42 const char *name()
const noexcept
override;
43 std::string message(
int EV)
const override;
1238 bool isCpp()
const {
return Language == LK_Cpp || Language == LK_ObjC; }
1723 AllowAllParametersOfDeclarationOnNextLine ==
1726 AllowShortCaseLabelsOnASingleLine ==
1728 AllowShortFunctionsOnASingleLine ==
1730 AllowShortIfStatementsOnASingleLine ==
1734 AlwaysBreakBeforeMultilineStrings ==
1736 AlwaysBreakTemplateDeclarations ==
1749 ConstructorInitializerAllOnOneLineOrOnePerLine ==
1751 ConstructorInitializerIndentWidth ==
1757 ExperimentalAutoDetectBinPacking ==
1770 KeepEmptyLinesAtTheStartOfBlocks ==
1781 PenaltyBreakBeforeFirstCallParameter ==
1788 PenaltyBreakTemplateDeclaration ==
1796 SpaceBeforeCtorInitializerColon ==
1800 SpaceBeforeRangeBasedForLoopColon ==
1823 typedef std::map<FormatStyle::LanguageKind, FormatStyle>
MapType;
1838 std::shared_ptr<MapType> Styles;
1843 const std::vector<FormatStyle> &ConfigurationStyles);
1908 unsigned *
Cursor =
nullptr);
1938 bool FormatComplete =
true;
1959 StringRef FileName =
"<stdin>",
1968 bool *IncompleteFormat);
1976 StringRef FileName =
"<stdin>");
1985 StringRef FileName =
"<stdin>");
1995 StringRef FileName =
"<stdin>");
2041 StringRef FallbackStyle,
2042 StringRef Code =
"",
2043 llvm::vfs::FileSystem *FS =
nullptr);
2052 case FormatStyle::LK_Cpp:
2054 case FormatStyle::LK_ObjC:
2055 return "Objective-C";
2056 case FormatStyle::LK_Java:
2058 case FormatStyle::LK_JavaScript:
2059 return "JavaScript";
2060 case FormatStyle::LK_Proto:
2062 case FormatStyle::LK_TextProto:
2077 #endif // LLVM_CLANG_FORMAT_FORMAT_H
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Defines the clang::LangOptions interface.
const AnnotatedLine * Line
Dataflow Directional Tag Classes.