Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DFormat.cpp518 static FormatStyle &element(IO &IO, std::vector<FormatStyle> &Seq, in element()
522 FormatStyle Template; in element()
569 static FormatStyle expandPresets(const FormatStyle &Style) { in expandPresets()
623 FormatStyle LLVMStyle; in getLLVMStyle()
725 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { in getGoogleStyle()
727 FormatStyle GoogleStyle = getGoogleStyle(FormatStyle::LK_Proto); in getGoogleStyle()
844 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) { in getChromiumStyle()
943 FormatStyle getNoStyle() { in getNoStyle()
1041 FormatStyle::FormatStyleSet::Get(FormatStyle::LanguageKind Language) const { in Get()
1052 void FormatStyle::FormatStyleSet::Add(FormatStyle Style) { in Add()
[all …]
H A DTokenAnnotator.cpp89 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
112 Style.Language == FormatStyle::LK_Java) { in parseAngle()
1678 const FormatStyle &Style;
1888 const FormatStyle &Style;
2060 case FormatStyle::RTBS_None: in mustBreakForReturnType()
2062 case FormatStyle::RTBS_All: in mustBreakForReturnType()
2063 case FormatStyle::RTBS_TopLevel: in mustBreakForReturnType()
2065 case FormatStyle::RTBS_AllDefinitions: in mustBreakForReturnType()
2066 case FormatStyle::RTBS_TopLevelDefinitions: in mustBreakForReturnType()
2212 if (Style.Language == FormatStyle::LK_Java) { in splitPenalty()
[all …]
H A DContinuationIndenter.h40 llvm::StringMap<FormatStyle> DelimiterStyle;
41 llvm::StringMap<FormatStyle> EnclosingFunctionStyle;
43 RawStringFormatStyleManager(const FormatStyle &CodeStyle);
45 llvm::Optional<FormatStyle> getDelimiterStyle(StringRef Delimiter) const;
47 llvm::Optional<FormatStyle>
55 ContinuationIndenter(const FormatStyle &Style,
114 const FormatStyle &RawStringStyle,
124 llvm::Optional<FormatStyle> getRawStringStyle(const FormatToken &Current,
192 FormatStyle Style;
H A DUnwrappedLineParser.cpp301 if (Style.Language == FormatStyle::LK_TextProto) in parseFile()
315 if (Style.Language == FormatStyle::LK_TextProto && in parseFile()
436 if (Style.Language == FormatStyle::LK_Proto) { in calculateBraceTypes()
970 if (Style.Language == FormatStyle::LK_TableGen && in parseStructuralElement()
1002 if (Style.Language == FormatStyle::LK_Java || in parseStructuralElement()
1092 if (Style.Language == FormatStyle::LK_Proto) { in parseStructuralElement()
1218 if (Style.Language == FormatStyle::LK_Java || in parseStructuralElement()
1835 if (Style.Language != FormatStyle::LK_Java) in parseNew()
2004 if (Style.Language == FormatStyle::LK_Java) { in parseEnum()
2009 if (Style.Language == FormatStyle::LK_Proto) { in parseEnum()
[all …]
H A DContinuationIndenter.cpp132 FormatStyle::BCIS_BeforeComma) && in startsNextParameter()
185 const FormatStyle &CodeStyle) { in RawStringFormatStyleManager()
187 llvm::Optional<FormatStyle> LanguageStyle = in RawStringFormatStyleManager()
190 FormatStyle PredefinedStyle; in RawStringFormatStyleManager()
208 llvm::Optional<FormatStyle>
216 llvm::Optional<FormatStyle>
340 if (Style.Language == FormatStyle::LK_ObjC && in mustBreak()
575 if (Style.UseTab != FormatStyle::UT_Never) in addTokenOnCurrentLine()
693 FormatStyle::BCIS_AfterColon) { in addTokenOnCurrentLine()
913 if (Style.Language == FormatStyle::LK_Java && in getNewLineColumn()
[all …]
H A DBreakableToken.h35 struct FormatStyle;
240 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableToken()
247 const FormatStyle &Style;
259 encoding::Encoding Encoding, const FormatStyle &Style);
299 const FormatStyle &Style);
367 const FormatStyle &Style);
443 const FormatStyle &Style);
H A DFormatTokenLexer.cpp50 if (Style.Language == FormatStyle::LK_JavaScript) { in lex()
54 if (Style.Language == FormatStyle::LK_TextProto) in lex()
73 if (Style.Language == FormatStyle::LK_JavaScript) { in tryMergePreviousTokens()
101 if (Style.Language == FormatStyle::LK_Java) { in tryMergePreviousTokens()
556 if ((Style.Language == FormatStyle::LK_JavaScript || in getNextToken()
557 Style.Language == FormatStyle::LK_Java) && in getNextToken()
613 if (Style.Language == FormatStyle::LK_Java && in getNextToken()
618 } else if (Style.Language == FormatStyle::LK_JavaScript && in getNextToken()
695 if ((Style.Language == FormatStyle::LK_JavaScript || in readRawToken()
696 Style.Language == FormatStyle::LK_Proto || in readRawToken()
[all …]
H A DBreakableToken.cpp50 if (Style.Language == FormatStyle::LK_TextProto) in getLineCommentIndentPrefix()
102 else if (Style.Language == FormatStyle::LK_JavaScript && in getCommentSplit()
236 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableStringLiteral()
264 const FormatStyle &Style) in BreakableComment()
335 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableBlockComment()
428 if (Style.Language == FormatStyle::LK_JavaScript || in BreakableBlockComment()
429 Style.Language == FormatStyle::LK_Java) { in BreakableBlockComment()
537 if (Style.Language != FormatStyle::LK_Java && in getContentIndent()
538 Style.Language != FormatStyle::LK_JavaScript) in getContentIndent()
712 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableLineCommentSection()
[all …]
H A DUnwrappedLineFormatter.cpp41 LevelIndentTracker(const FormatStyle &Style, in LevelIndentTracker()
97 if (Style.Language == FormatStyle::LK_Java || in getIndentOffset()
98 Style.Language == FormatStyle::LK_JavaScript) in getIndentOffset()
121 const FormatStyle &Style;
483 if (Style.Language != FormatStyle::LK_Java && in tryMergeSimpleBlock()
654 const FormatStyle &Style;
685 const FormatStyle &Style, in LineFormatter()
778 const FormatStyle &Style;
787 const FormatStyle &Style, in NoColumnLimitLineFormatter()
838 const FormatStyle &Style, in OptimizingLineFormatter()
[all …]
H A DFormatToken.h490 bool opensBlockOrBlockTypeList(const FormatStyle &Style) const { in opensBlockOrBlockTypeList()
498 (is(tok::less) && (Style.Language == FormatStyle::LK_Proto || in opensBlockOrBlockTypeList()
499 Style.Language == FormatStyle::LK_TextProto)); in opensBlockOrBlockTypeList()
504 bool isCppStructuredBinding(const FormatStyle &Style) const { in isCppStructuredBinding()
516 bool closesBlockOrBlockTypeList(const FormatStyle &Style) const { in closesBlockOrBlockTypeList()
572 TokenRole(const FormatStyle &Style) : Style(Style) {} in TokenRole()
605 const FormatStyle &Style;
610 CommaSeparatedList(const FormatStyle &Style) in CommaSeparatedList()
H A DUnwrappedLineFormatter.h33 const FormatStyle &Style, in UnwrappedLineFormatter()
70 const FormatStyle &Style;
H A DFormatTokenLexer.h41 const FormatStyle &Style, encoding::Encoding Encoding);
95 const FormatStyle &Style;
H A DTokenAnalyzer.h87 TokenAnalyzer(const Environment &Env, const FormatStyle &Style);
101 FormatStyle Style;
H A DWhitespaceManager.cpp329 static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, in AlignTokens()
576 if (Style.AlignEscapedNewlines == FormatStyle::ENAS_DontAlign) in alignEscapedNewlines()
579 bool AlignLeft = Style.AlignEscapedNewlines == FormatStyle::ENAS_Left; in alignEscapedNewlines()
677 case FormatStyle::UT_Never: in appendIndentText()
680 case FormatStyle::UT_Always: { in appendIndentText()
692 case FormatStyle::UT_ForIndentation: in appendIndentText()
705 case FormatStyle::UT_ForContinuationAndIndentation: in appendIndentText()
H A DWhitespaceManager.h40 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style, in WhitespaceManager()
208 const FormatStyle &Style;
H A DUnwrappedLineParser.h78 UnwrappedLineParser(const FormatStyle &Style,
207 const FormatStyle &Style;
H A DTokenAnnotator.h152 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords) in TokenAnnotator()
183 const FormatStyle &Style;
H A DSortJavaScriptImports.h28 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
H A DFormatInternal.h74 reformat(const FormatStyle &Style, StringRef Code,
H A DUsingDeclarationsSorter.h26 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
H A DNamespaceEndCommentsFixer.h36 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
H A DSortJavaScriptImports.cpp37 using clang::format::FormatStyle;
122 JavaScriptImportSorter(const Environment &Env, const FormatStyle &Style) in JavaScriptImportSorter()
443 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style, in sortJavaScriptImports()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Format/
H A DFormat.h50 struct FormatStyle { struct
1823 typedef std::map<FormatStyle::LanguageKind, FormatStyle> MapType;
1825 llvm::Optional<FormatStyle> Get(FormatStyle::LanguageKind Language) const;
1853 FormatStyle getLLVMStyle();
1859 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
1863 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
1875 FormatStyle getGNUStyle();
1878 FormatStyle getNoStyle();
2052 case FormatStyle::LK_Cpp: in getLanguageName()
2054 case FormatStyle::LK_ObjC: in getLanguageName()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/tools/clang-format/
H A DClangFormat.cpp266 llvm::Expected<FormatStyle> FormatStyle = in format() local
268 if (!FormatStyle) { in format()
269 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n"; in format()
274 FormatStyle->SortIncludes = SortIncludes; in format()
276 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, in format()
286 Replacements FormatChanges = reformat(*FormatStyle, *ChangedCode, Ranges, in format()
380 llvm::Expected<clang::format::FormatStyle> FormatStyle = in main() local
383 if (!FormatStyle) { in main()
384 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n"; in main()
387 std::string Config = clang::format::configurationAsText(*FormatStyle); in main()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h150 format::FormatStyle Style = format::getNoStyle();

12