Home
last modified time | relevance | path

Searched refs:Style (Results 1 – 25 of 43) sorted by relevance

12

/NextBSD/contrib/llvm/tools/clang/lib/Format/
HDFormat.cpp154 static void mapping(IO &IO, FormatStyle &Style) { in mapping()
156 IO.mapOptional("Language", Style.Language); in mapping()
165 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) && in mapping()
166 Style == PredefinedStyle) { in mapping()
175 FormatStyle::LanguageKind OldLanguage = Style.Language; in mapping()
178 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) { in mapping()
182 Style.Language = OldLanguage; in mapping()
188 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment); in mapping()
190 Style.IndentWrappedFunctionNames); in mapping()
191 IO.mapOptional("PointerBindsToType", Style.PointerAlignment); in mapping()
[all …]
HDUnwrappedLineFormatter.cpp39 LevelIndentTracker(const FormatStyle &Style, in LevelIndentTracker() argument
42 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { in LevelIndentTracker()
44 IndentForLevel.push_back(Style.IndentWidth * i + AdditionalIndent); in LevelIndentTracker()
59 Indent = Line.Level * Style.IndentWidth + AdditionalIndent; in nextLine()
88 if (Style.Language == FormatStyle::LK_Java || in getIndentOffset()
89 Style.Language == FormatStyle::LK_JavaScript) in getIndentOffset()
95 return Style.AccessModifierOffset; in getIndentOffset()
109 return getIndent(IndentForLevel, Level - 1) + Style.IndentWidth; in getIndent()
112 const FormatStyle &Style; member in clang::format::__anon686f1b3d0111::LevelIndentTracker
131 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, in LineJoiner() argument
[all …]
HDContinuationIndenter.cpp49 const FormatStyle &Style) { in startsNextParameter() argument
52 Style.BreakConstructorInitializersBeforeComma) in startsNextParameter()
56 !Style.BreakConstructorInitializersBeforeComma); in startsNextParameter()
59 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, in ContinuationIndenter() argument
65 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), in ContinuationIndenter()
68 CommentPragmasRegex(Style.CommentPragmas) {} in ContinuationIndenter()
98 Current.closesBlockTypeList(Style))) in canBreak()
129 Style.AlwaysBreakAfterDefinitionReturnType == FormatStyle::DRTBS_None && in canBreak()
142 Current.closesBlockTypeList(Style)) in mustBreak()
146 if ((startsNextParameter(Current, Style) || Previous.is(tok::semi) || in mustBreak()
[all …]
HDUnwrappedLineParser.cpp155 const FormatStyle &Style, unsigned &LineLevel) in CompoundStatementIndenter() argument
157 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman) { in CompoundStatementIndenter()
159 } else if (Style.BreakBeforeBraces == FormatStyle::BS_GNU) { in CompoundStatementIndenter()
202 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, in UnwrappedLineParser() argument
207 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr), in UnwrappedLineParser()
260 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; in parseFile()
299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1))) in parseLevel()
341 if (Style.Language == FormatStyle::LK_Proto) { in calculateBraceTypes()
455 static bool ShouldBreakBeforeBrace(const FormatStyle &Style, in ShouldBreakBeforeBrace() argument
457 switch (Style.BreakBeforeBraces) { in ShouldBreakBeforeBrace()
[all …]
HDTokenAnnotator.cpp35 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser() argument
37 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser()
61 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
74 Style.Language == FormatStyle::LK_Java) { in parseAngle()
263 Style.Language == FormatStyle::LK_Cpp && in parseSquare()
278 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
375 Style.Language == FormatStyle::LK_Proto) && in parseBrace()
379 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
392 (Style.Language == FormatStyle::LK_JavaScript && in updateParameterCount()
399 Left->Role.reset(new CommaSeparatedList(Style)); in updateParameterCount()
[all …]
HDBreakableToken.h77 const FormatStyle &Style) in BreakableToken() argument
79 Encoding(Encoding), Style(Style) {} in BreakableToken()
85 const FormatStyle &Style; variable
102 const FormatStyle &Style);
123 encoding::Encoding Encoding, const FormatStyle &Style);
141 encoding::Encoding Encoding, const FormatStyle &Style);
168 encoding::Encoding Encoding, const FormatStyle &Style);
HDWhitespaceManager.cpp151 if (!Style.AlignConsecutiveAssignments) in alignConsecutiveAssignments()
249 unsigned ChangeMaxColumn = Style.ColumnLimit - Changes[i].TokenLength; in alignTrailingComments()
269 CommentColumn == NextColumn + Style.IndentWidth; in alignTrailingComments()
274 if (!Style.AlignTrailingComments || FollowsRBraceInColumn0) { in alignTrailingComments()
326 Style.AlignEscapedNewlinesLeft ? 0 : Style.ColumnLimit; in alignEscapedNewlines()
335 MaxEndOfLine = Style.AlignEscapedNewlinesLeft ? 0 : Style.ColumnLimit; in alignEscapedNewlines()
415 switch (Style.UseTab) { in appendIndentText()
421 Style.TabWidth - WhitespaceStartColumn % Style.TabWidth; in appendIndentText()
423 if (FirstTabWidth + Style.TabWidth <= Spaces) { in appendIndentText()
427 Text.append(Spaces / Style.TabWidth, '\t'); in appendIndentText()
[all …]
HDBreakableToken.cpp141 Style.TabWidth, Encoding); in getLineLengthAfterSplit()
147 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableSingleLineToken() argument
148 : BreakableToken(Tok, IndentLevel, InPPDirective, Encoding, Style), in BreakableSingleLineToken()
158 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableStringLiteral() argument
160 InPPDirective, Encoding, Style) {} in BreakableStringLiteral()
167 ColumnLimit, Style.TabWidth, Encoding); in getSplit()
202 bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) in BreakableLineComment() argument
205 InPPDirective, Encoding, Style) { in BreakableLineComment()
222 ColumnLimit, Style.TabWidth, Encoding); in getSplit()
255 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableBlockComment() argument
[all …]
HDUnwrappedLineFormatter.h35 const FormatStyle &Style, in UnwrappedLineFormatter() argument
38 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in UnwrappedLineFormatter()
66 const FormatStyle &Style; variable
HDFormatToken.h411 bool opensBlockTypeList(const FormatStyle &Style) const { in opensBlockTypeList()
415 (!Style.Cpp11BracedListStyle && NestingLevel == 0))); in opensBlockTypeList()
419 bool closesBlockTypeList(const FormatStyle &Style) const { in closesBlockTypeList()
420 return MatchingParen && MatchingParen->opensBlockTypeList(Style); in closesBlockTypeList()
434 TokenRole(const FormatStyle &Style) : Style(Style) {} in TokenRole() argument
465 const FormatStyle &Style;
470 CommaSeparatedList(const FormatStyle &Style) in CommaSeparatedList() argument
471 : TokenRole(Style), HasNestedBracedList(false) {} in CommaSeparatedList()
HDFormatToken.cpp91 Style.ColumnLimit - State.Column + State.NextToken->Previous->ColumnWidth; in formatAfterToken()
153 if (Style.Cpp11BracedListStyle && !Style.BinPackArguments && in precomputeFormattingInfos()
158 if (!Style.AlignAfterOpenBracket) in precomputeFormattingInfos()
186 if (Style.Cpp11BracedListStyle) { in precomputeFormattingInfos()
220 unsigned MaxItems = Style.ColumnLimit / 3; in precomputeFormattingInfos()
265 if (Format.TotalWidth > Style.ColumnLimit) in precomputeFormattingInfos()
HDWhitespaceManager.h40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style, in WhitespaceManager() argument
42 : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {} in WhitespaceManager()
205 const FormatStyle &Style; variable
HDTokenAnnotator.h134 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords) in TokenAnnotator() argument
135 : Style(Style), Keywords(Keywords) {} in TokenAnnotator()
163 const FormatStyle &Style; variable
HDUnwrappedLineParser.h63 UnwrappedLineParser(const FormatStyle &Style,
160 const FormatStyle &Style; variable
HDContinuationIndenter.h39 ContinuationIndenter(const FormatStyle &Style,
138 FormatStyle Style; variable
/NextBSD/contrib/llvm/include/llvm/MC/
HDMCInstPrinter.h30 enum Style { enum
55 HexStyle::Style PrintHexStyle;
92 HexStyle::Style getPrintHexStyle() const { return PrintHexStyle; } in getPrintHexStyle()
93 void setPrintHexStyle(HexStyle::Style Value) { PrintHexStyle = Value; } in setPrintHexStyle()
/NextBSD/contrib/llvm/tools/clang/include/clang/Format/
HDFormat.h558 FormatStyle *Style);
567 std::error_code parseConfiguration(StringRef Text, FormatStyle *Style);
570 std::string configurationAsText(const FormatStyle &Style);
584 tooling::Replacements reformat(const FormatStyle &Style,
592 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
600 LangOptions getFormattingLangOpts(const FormatStyle &Style = getLLVMStyle());
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86Subtarget.h37 enum Style { enum
65 PICStyles::Style PICStyle;
318 PICStyles::Style getPICStyle() const { return PICStyle; } in getPICStyle()
319 void setPICStyle(PICStyles::Style Style) { PICStyle = Style; } in setPICStyle() argument
/NextBSD/include/
HDMacTypes.h577 typedef unsigned char Style; typedef
579 typedef Style StyleField;
/NextBSD/contrib/llvm/include/llvm/Analysis/
HDRegionInfoImpl.h477 PrintStyle Style) const { in print() argument
485 if (Style != PrintNone) { in print()
489 if (Style == PrintBB) { in print()
492 } else if (Style == PrintRN) { in print()
504 (*RI)->print(OS, print_tree, level + 1, Style); in print()
507 if (Style != PrintNone) in print()
HDRegionInfo.h425 PrintStyle Style = PrintNone) const;
/NextBSD/contrib/llvm/tools/clang/include/clang/Sema/
HDScopeInfo.h473 CapturingScopeInfo(DiagnosticsEngine &Diag, ImplicitCaptureStyle Style) in CapturingScopeInfo() argument
474 : FunctionScopeInfo(Diag), ImpCaptureStyle(Style), CXXThisCaptureIndex(0), in CapturingScopeInfo()
/NextBSD/crypto/heimdal/doc/doxyout/hcrypto/html/
HDdoxygen.css353 /* Style for detailed member documentation */
/NextBSD/crypto/heimdal/doc/doxyout/wind/html/
HDdoxygen.css353 /* Style for detailed member documentation */
/NextBSD/crypto/heimdal/doc/doxyout/ntlm/html/
HDdoxygen.css353 /* Style for detailed member documentation */

12