Searched refs:FormatStyle (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-current/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp57 using clang::format::FormatStyle;
59 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::format::FormatStyle::RawStringFormat)
64 struct ScalarEnumerationTraits<FormatStyle::BreakBeforeNoexceptSpecifierStyle> {
66 enumeration(IO &IO, FormatStyle::BreakBeforeNoexceptSpecifierStyle &Value) {
67 IO.enumCase(Value, "Never", FormatStyle::BBNSS_Never);
68 IO.enumCase(Value, "OnlyWithParen", FormatStyle::BBNSS_OnlyWithParen);
69 IO.enumCase(Value, "Always", FormatStyle::BBNSS_Always);
73 template <> struct MappingTraits<FormatStyle::AlignConsecutiveStyle> {
74 static void enumInput(IO &IO, FormatStyle::AlignConsecutiveStyle &Value) {
76 FormatStyle
[all...]
H A DIntegerLiteralSeparatorFixer.cpp46 const FormatStyle &Style) {
48 case FormatStyle::LK_Cpp:
49 case FormatStyle::LK_ObjC:
52 case FormatStyle::LK_CSharp:
53 case FormatStyle::LK_Java:
54 case FormatStyle::LK_JavaScript:
H A DSortJavaScriptImports.h27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
H A DUsingDeclarationsSorter.h25 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
H A DFormatInternal.h72 reformat(const FormatStyle &Style, StringRef Code,
H A DIntegerLiteralSeparatorFixer.h26 const FormatStyle &Style);
H A DNamespaceEndCommentsFixer.h35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
H A DDefinitionBlockSeparator.h26 DefinitionBlockSeparator(const Environment &Env, const FormatStyle &Style)
H A DObjCPropertyAttributeOrderFixer.h45 const FormatStyle &Style);
H A DContinuationIndenter.h40 llvm::StringMap<FormatStyle> DelimiterStyle;
41 llvm::StringMap<FormatStyle> EnclosingFunctionStyle;
43 RawStringFormatStyleManager(const FormatStyle &CodeStyle);
45 std::optional<FormatStyle> getDelimiterStyle(StringRef Delimiter) const;
47 std::optional<FormatStyle>
55 ContinuationIndenter(const FormatStyle &Style,
114 const FormatStyle &RawStringStyle,
124 std::optional<FormatStyle> getRawStringStyle(const FormatToken &Current,
192 FormatStyle Style;
H A DUnwrappedLineFormatter.h32 const FormatStyle &Style,
68 const FormatStyle &Style;
H A DTokenAnalyzer.h90 TokenAnalyzer(const Environment &Env, const FormatStyle &Style);
105 FormatStyle Style;
H A DFormatTokenLexer.h43 const FormatStyle &Style, encoding::Encoding Encoding,
126 const FormatStyle &Style;
H A DQualifierAlignmentFixer.h27 void addQualifierAlignmentFixerPasses(const FormatStyle &Style,
43 const Environment &Env, const FormatStyle &Style,
H A DBreakableToken.h34 struct FormatStyle;
240 encoding::Encoding Encoding, const FormatStyle &Style)
247 const FormatStyle &Style;
259 encoding::Encoding Encoding, const FormatStyle &Style);
307 encoding::Encoding Encoding, const FormatStyle &Style);
338 const FormatStyle &Style);
406 const FormatStyle &Style, bool UseCRLF);
484 const FormatStyle &Style);
H A DDefinitionBlockSeparator.cpp25 assert(Style.SeparateDefinitionBlocks != FormatStyle::SDS_Leave);
36 Style.SeparateDefinitionBlocks == FormatStyle::SDS_Never;
69 (Style.SeparateDefinitionBlocks == FormatStyle::SDS_Always ? 1 : 0) + 1;
72 Style.LineEnding > FormatStyle::LE_CRLF
75 Style.LineEnding == FormatStyle::LE_DeriveCRLF)
76 : Style.LineEnding == FormatStyle::LE_CRLF);
H A DUnwrappedLineFormatter.cpp46 LevelIndentTracker(const FormatStyle &Style,
65 if (Style.IndentPPDirectives != FormatStyle::PPDIS_None &&
67 (Style.IndentPPDirectives == FormatStyle::PPDIS_BeforeHash &&
115 if (Style.Language == FormatStyle::LK_Java || Style.isJavaScript() ||
167 const FormatStyle &Style;
214 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords,
315 if (Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_All)
317 if (Style.AllowShortFunctionsOnASingleLine >= FormatStyle::SFS_Empty &&
323 FormatStyle::SFS_InlineOnly) {
428 return Style.AllowShortBlocksOnASingleLine != FormatStyle
[all...]
H A DTokenAnnotator.cpp28 const FormatStyle &Style) {
30 case FormatStyle::ABS_Always:
32 case FormatStyle::ABS_Leave:
125 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
187 if (Style.Language == FormatStyle::LK_Java &&
214 if (Style.Language == FormatStyle::LK_TextProto ||
215 (Style.Language == FormatStyle::LK_Proto && Left->Previous &&
228 Style.Language == FormatStyle::LK_Java) {
250 if (Style.Language == FormatStyle::LK_Proto) {
893 if (Style.AlignArrayOfStructures != FormatStyle
[all...]
H A DContinuationIndenter.cpp34 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style,
133 const FormatStyle &Style) {
136 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) {
139 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName))
144 FormatStyle::BCIS_BeforeComma) &&
146 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma));
150 const FormatStyle &Style) {
153 return Style.Language == FormatStyle::LK_TextProto ||
154 (Style.Language == FormatStyle::LK_Proto &&
188 getCanonicalRawStringDelimiter(const FormatStyle
[all...]
H A DUsingDeclarationsSorter.cpp88 FormatStyle::SortUsingDeclarationsOptions SortUsingDeclarations) {
89 if (SortUsingDeclarations == FormatStyle::SUD_LexicographicNumeric)
140 FormatStyle::SortUsingDeclarationsOptions SortUsingDeclarations) {
209 const FormatStyle &Style)
H A DTokenAnnotator.h214 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords)
255 FormatStyle::PointerAlignmentStyle
258 FormatStyle::PointerAlignmentStyle getTokenPointerOrReferenceAlignment(
261 const FormatStyle &Style;
H A DMacros.h104 clang::SourceManager &SourceMgr, const FormatStyle &Style,
134 const FormatStyle &Style;
H A DFormatToken.cpp78 bool FormatToken::isBlockIndentedInitRBrace(const FormatStyle &Style) const {
81 Style.AlignAfterOpenBracket != FormatStyle::BAS_BlockIndent) {
93 bool FormatToken::opensBlockOrBlockTypeList(const FormatStyle &Style) const {
210 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign)
/freebsd-current/contrib/llvm-project/clang/include/clang/Format/
H A DFormat.h53 /// The ``FormatStyle`` is used to configure the formatting to follow
55 struct FormatStyle { struct in namespace:clang::format
4754 bool operator==(const FormatStyle &R) const {
4923 std::optional<FormatStyle> GetLanguageStyle(LanguageKind Language) const;
4925 // Stores per-language styles. A FormatStyle instance inside has an empty
4926 // StyleSet. A FormatStyle instance returned by the Get method has its
4933 typedef std::map<FormatStyle::LanguageKind, FormatStyle> MapType;
4935 std::optional<FormatStyle> Get(FormatStyle
[all...]
/freebsd-current/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp443 llvm::Expected<FormatStyle> FormatStyle = local
446 if (!FormatStyle) {
447 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n";
453 FormatStyle->QualifierAlignment =
454 StringSwitch<FormatStyle::QualifierAlignmentStyle>(
456 .Case("right", FormatStyle::QAS_Right)
457 .Case("left", FormatStyle::QAS_Left)
458 .Default(FormatStyle->QualifierAlignment);
460 if (FormatStyle
563 llvm::Expected<clang::format::FormatStyle> FormatStyle = local
[all...]

Completed in 244 milliseconds

12