Home
last modified time | relevance | path

Searched refs:FormatStyle (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp817 static FormatStyle &element(IO &IO, std::vector<FormatStyle> &Seq, in element()
870 static FormatStyle expandPresets(const FormatStyle &Style) { in expandPresets()
976 FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) { in getLLVMStyle()
977 FormatStyle LLVMStyle; in getLLVMStyle()
1144 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { in getGoogleStyle()
1146 FormatStyle GoogleStyle = getGoogleStyle(FormatStyle::LK_Proto); in getGoogleStyle()
1284 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) { in getChromiumStyle()
1408 FormatStyle getMicrosoftStyle(FormatStyle::LanguageKind Language) { in getMicrosoftStyle()
1550 FormatStyle::FormatStyleSet::Get(FormatStyle::LanguageKind Language) const { in Get()
1561 void FormatStyle::FormatStyleSet::Add(FormatStyle Style) { in Add()
[all …]
H A DTokenAnnotator.cpp2105 const FormatStyle &Style;
2315 const FormatStyle &Style;
2522 case FormatStyle::RTBS_None: in mustBreakForReturnType()
2524 case FormatStyle::RTBS_All: in mustBreakForReturnType()
3657 case FormatStyle::SLS_All: in mustBreakBefore()
4265 case FormatStyle::RAS_Pointer: in getTokenReferenceAlignment()
4267 case FormatStyle::RAS_Left: in getTokenReferenceAlignment()
4269 case FormatStyle::RAS_Right: in getTokenReferenceAlignment()
4271 case FormatStyle::RAS_Middle: in getTokenReferenceAlignment()
4285 case FormatStyle::RAS_Left: in getTokenPointerOrReferenceAlignment()
[all …]
H A DContinuationIndenter.cpp131 FormatStyle::BCIS_BeforeComma) && in startsNextParameter()
184 const FormatStyle &CodeStyle) { in RawStringFormatStyleManager()
186 llvm::Optional<FormatStyle> LanguageStyle = in RawStringFormatStyleManager()
189 FormatStyle PredefinedStyle; in RawStringFormatStyleManager()
207 llvm::Optional<FormatStyle>
215 llvm::Optional<FormatStyle>
344 if (Style.Language == FormatStyle::LK_ObjC && in mustBreak()
596 if (Style.UseTab != FormatStyle::UT_Never) in addTokenOnCurrentLine()
720 FormatStyle::BCIS_AfterColon) { in addTokenOnCurrentLine()
983 if (Style.Language == FormatStyle::LK_Java && in getNewLineColumn()
[all …]
H A DContinuationIndenter.h39 llvm::StringMap<FormatStyle> DelimiterStyle;
40 llvm::StringMap<FormatStyle> EnclosingFunctionStyle;
42 RawStringFormatStyleManager(const FormatStyle &CodeStyle);
44 llvm::Optional<FormatStyle> getDelimiterStyle(StringRef Delimiter) const;
46 llvm::Optional<FormatStyle>
54 ContinuationIndenter(const FormatStyle &Style,
113 const FormatStyle &RawStringStyle,
123 llvm::Optional<FormatStyle> getRawStringStyle(const FormatToken &Current,
191 FormatStyle Style;
H A DUnwrappedLineFormatter.cpp129 const FormatStyle &Style;
341 FormatStyle::BWACS_Always) in tryFitMultipleLinesInOne()
499 FormatStyle::SIS_WithoutElse) { in tryMergeSimpleControlStatement()
751 const FormatStyle &Style;
886 const FormatStyle &Style;
1287 case FormatStyle::ELBAMS_Never: in formatFirstToken()
1291 case FormatStyle::ELBAMS_Leave: in formatFirstToken()
1300 case FormatStyle::ELBAMS_Always: { in formatFirstToken()
1319 case FormatStyle::ELAAMS_Never: in formatFirstToken()
1322 case FormatStyle::ELAAMS_Leave: in formatFirstToken()
[all …]
H A DUnwrappedLineParser.cpp306 if (Style.Language == FormatStyle::LK_TextProto) in parseFile()
320 if (Style.Language == FormatStyle::LK_TextProto && in parseFile()
1091 if (Style.Language == FormatStyle::LK_TableGen && in parseStructuralElement()
1123 if (Style.Language == FormatStyle::LK_Java || in parseStructuralElement()
1304 FormatStyle::BWACS_Always) in parseStructuralElement()
1317 FormatStyle::BWACS_Always) in parseStructuralElement()
2268 if (Style.Language != FormatStyle::LK_Java) in parseNew()
2359 FormatStyle::BWACS_Always) { in parseLabel()
2571 if (Style.Language == FormatStyle::LK_Java) { in parseEnum()
2576 if (Style.Language == FormatStyle::LK_Proto) { in parseEnum()
[all …]
H A DWhitespaceManager.cpp382 if (Style.PointerAlignment == FormatStyle::PAS_Right && in AlignTokenSequence()
424 const FormatStyle &Style, F &&Matches, in AlignTokens()
426 const FormatStyle::AlignConsecutiveStyle &ACS = FormatStyle::ACS_None) { in AlignTokens()
481 (ACS != FormatStyle::ACS_AcrossEmptyLines) && in AlignTokens()
489 ((ACS == FormatStyle::ACS_AcrossComments) || in AlignTokens()
661 FormatStyle::ACS_AcrossEmptyLinesAndComments); in alignConsecutiveMacros()
1325 case FormatStyle::UT_Never: in appendIndentText()
1328 case FormatStyle::UT_Always: { in appendIndentText()
1349 case FormatStyle::UT_ForIndentation: in appendIndentText()
1356 case FormatStyle::UT_ForContinuationAndIndentation: in appendIndentText()
[all …]
H A DBreakableToken.h34 struct FormatStyle;
235 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableToken()
242 const FormatStyle &Style;
254 encoding::Encoding Encoding, const FormatStyle &Style);
294 const FormatStyle &Style);
362 const FormatStyle &Style, bool UseCRLF);
440 const FormatStyle &Style);
H A DMacros.h59 struct FormatStyle;
107 clang::SourceManager &SourceMgr, const FormatStyle &Style,
131 const FormatStyle &Style;
H A DTokenAnnotator.h160 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords) in TokenAnnotator()
198 FormatStyle::PointerAlignmentStyle
201 FormatStyle::PointerAlignmentStyle
204 const FormatStyle &Style;
H A DBreakableToken.cpp43 const FormatStyle &Style) { in getLineCommentIndentPrefix()
49 if (Style.Language == FormatStyle::LK_TextProto) in getLineCommentIndentPrefix()
94 if (Style.Language == FormatStyle::LK_JavaScript) { in getCommentSplit()
130 if (Style.Language == FormatStyle::LK_JavaScript && in getCommentSplit()
270 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableStringLiteral()
298 const FormatStyle &Style) in BreakableComment()
463 if (Style.Language == FormatStyle::LK_JavaScript || in BreakableBlockComment()
464 Style.Language == FormatStyle::LK_Java) { in BreakableBlockComment()
583 if (Style.Language != FormatStyle::LK_Java && in getContentIndent()
584 Style.Language != FormatStyle::LK_JavaScript) in getContentIndent()
[all …]
H A DUnwrappedLineFormatter.h32 const FormatStyle &Style, in UnwrappedLineFormatter()
68 const FormatStyle &Style;
H A DFormatTokenLexer.cpp27 const FormatStyle &Style, encoding::Encoding Encoding, in FormatTokenLexer()
68 if (Style.Language == FormatStyle::LK_JavaScript) { in lex()
72 if (Style.Language == FormatStyle::LK_TextProto) in lex()
142 if (Style.Language == FormatStyle::LK_JavaScript) { in tryMergePreviousTokens()
177 if (Style.Language == FormatStyle::LK_Java) { in tryMergePreviousTokens()
908 if ((Style.Language == FormatStyle::LK_JavaScript || in getNextToken()
909 Style.Language == FormatStyle::LK_Java) && in getNextToken()
965 if (Style.Language == FormatStyle::LK_Java && in getNextToken()
1054 if ((Style.Language == FormatStyle::LK_JavaScript || in readRawToken()
1055 Style.Language == FormatStyle::LK_Proto || in readRawToken()
[all …]
H A DTokenAnalyzer.h82 TokenAnalyzer(const Environment &Env, const FormatStyle &Style);
96 FormatStyle Style;
H A DFormatTokenLexer.h41 const FormatStyle &Style, encoding::Encoding Encoding,
106 const FormatStyle &Style;
H A DFormatToken.h657 bool opensBlockOrBlockTypeList(const FormatStyle &Style) const { in opensBlockOrBlockTypeList()
667 (is(tok::less) && (Style.Language == FormatStyle::LK_Proto || in opensBlockOrBlockTypeList()
668 Style.Language == FormatStyle::LK_TextProto)); in opensBlockOrBlockTypeList()
673 bool isCppStructuredBinding(const FormatStyle &Style) const { in isCppStructuredBinding()
685 bool closesBlockOrBlockTypeList(const FormatStyle &Style) const { in closesBlockOrBlockTypeList()
745 TokenRole(const FormatStyle &Style) : Style(Style) {} in TokenRole()
778 const FormatStyle &Style;
783 CommaSeparatedList(const FormatStyle &Style) in CommaSeparatedList()
H A DUnwrappedLineParser.h77 UnwrappedLineParser(const FormatStyle &Style,
224 const FormatStyle &Style;
H A DSortJavaScriptImports.h27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
H A DFormatInternal.h72 reformat(const FormatStyle &Style, StringRef Code,
H A DUsingDeclarationsSorter.h25 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
H A DNamespaceEndCommentsFixer.h35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
H A DWhitespaceManager.h42 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style, in WhitespaceManager()
335 const FormatStyle &Style;
H A DSortJavaScriptImports.cpp37 using clang::format::FormatStyle;
131 JavaScriptImportSorter(const Environment &Env, const FormatStyle &Style) in JavaScriptImportSorter()
548 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style, in sortJavaScriptImports()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Format/
H A DFormat.h55 struct FormatStyle { struct
3535 typedef std::map<FormatStyle::LanguageKind, FormatStyle> MapType;
3537 llvm::Optional<FormatStyle> Get(FormatStyle::LanguageKind Language) const;
3569 FormatStyle getLLVMStyle(
3570 FormatStyle::LanguageKind Language = FormatStyle::LanguageKind::LK_Cpp);
3576 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
3580 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
3592 FormatStyle getGNUStyle();
3596 FormatStyle getMicrosoftStyle(FormatStyle::LanguageKind Language);
3599 FormatStyle getNoStyle();
[all …]
/freebsd-13.1/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp397 llvm::Expected<FormatStyle> FormatStyle = in format() local
400 if (!FormatStyle) { in format()
401 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n"; in format()
407 FormatStyle->SortIncludes = FormatStyle::SI_CaseSensitive; in format()
409 FormatStyle->SortIncludes = FormatStyle::SI_Never; in format()
417 if (FormatStyle->isJson()) { in format()
434 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); in format()
500 llvm::Expected<clang::format::FormatStyle> FormatStyle = in dumpConfig() local
503 if (!FormatStyle) { in dumpConfig()
504 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n"; in dumpConfig()
[all …]

12