Searched defs:Style (Results 1 - 25 of 66) sorted by path

123

/external/clang/include/clang/Sema/
H A DScopeInfo.h515 CapturingScopeInfo(DiagnosticsEngine &Diag, ImplicitCaptureStyle Style) argument
516 : FunctionScopeInfo(Diag), ImpCaptureStyle(Style), CXXThisCaptureIndex(0),
/external/clang/lib/Format/
H A DBreakableToken.cpp141 Style.TabWidth, Encoding);
147 encoding::Encoding Encoding, const FormatStyle &Style)
148 : BreakableToken(Tok, IndentLevel, InPPDirective, Encoding, Style),
158 encoding::Encoding Encoding, const FormatStyle &Style)
160 InPPDirective, Encoding, Style) {}
167 ColumnLimit, Style.TabWidth, Encoding);
202 bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style)
205 InPPDirective, Encoding, Style) {
222 ColumnLimit, Style.TabWidth, Encoding);
255 encoding::Encoding Encoding, const FormatStyle &Style)
144 BreakableSingleLineToken( const FormatToken &Tok, unsigned IndentLevel, unsigned StartColumn, StringRef Prefix, StringRef Postfix, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) argument
155 BreakableStringLiteral( const FormatToken &Tok, unsigned IndentLevel, unsigned StartColumn, StringRef Prefix, StringRef Postfix, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) argument
200 BreakableLineComment( const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) argument
252 BreakableBlockComment( const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn, unsigned OriginalStartColumn, bool FirstInLine, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) argument
[all...]
H A DBreakableToken.h77 const FormatStyle &Style)
79 Encoding(Encoding), Style(Style) {}
85 const FormatStyle &Style; member in class:clang::format::BreakableToken
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);
75 BreakableToken(const FormatToken &Tok, unsigned IndentLevel, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) argument
H A DContinuationIndenter.cpp55 const FormatStyle &Style) {
58 Style.BreakConstructorInitializersBeforeComma)
62 !Style.BreakConstructorInitializersBeforeComma);
65 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, argument
71 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr),
74 CommentPragmasRegex(Style.CommentPragmas) {}
104 Current.closesBlockOrBlockTypeList(Style)))
135 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None)
148 Current.closesBlockOrBlockTypeList(Style))
54 startsNextParameter(const FormatToken &Current, const FormatStyle &Style) argument
[all...]
H A DContinuationIndenter.h39 ContinuationIndenter(const FormatStyle &Style,
139 FormatStyle Style; member in class:clang::format::ContinuationIndenter
H A DFormat.cpp201 static void mapping(IO &IO, FormatStyle &Style) { argument
203 IO.mapOptional("Language", Style.Language);
212 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) &&
213 Style == PredefinedStyle) {
222 FormatStyle::LanguageKind OldLanguage = Style.Language;
225 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) {
229 Style.Language = OldLanguage;
235 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment);
237 Style.IndentWrappedFunctionNames);
238 IO.mapOptional("PointerBindsToType", Style
439 expandPresets(const FormatStyle &Style) argument
671 FormatStyle Style = getLLVMStyle(); local
691 FormatStyle Style = getLLVMStyle(); local
711 getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language, FormatStyle *Style) argument
735 parseConfiguration(StringRef Text, FormatStyle *Style) argument
781 configurationAsText(const FormatStyle &Style) argument
796 Formatter(const Environment &Env, const FormatStyle &Style, bool *IncompleteFormat) argument
986 Cleaner(const Environment &Env, const FormatStyle &Style) argument
1216 sortCppIncludes(const FormatStyle &Style, const SmallVectorImpl<IncludeDirective> &Includes, ArrayRef<tooling::Range> Ranges, StringRef FileName, tooling::Replacements &Replaces, unsigned *Cursor) argument
1270 IncludeCategoryManager(const FormatStyle &Style, StringRef FileName) argument
1311 const FormatStyle &Style; member in class:clang::format::__anon1304::IncludeCategoryManager
[all...]
H A DFormatToken.h430 bool opensBlockOrBlockTypeList(const FormatStyle &Style) const {
434 (!Style.Cpp11BracedListStyle && NestingLevel == 0)));
438 bool closesBlockOrBlockTypeList(const FormatStyle &Style) const {
439 return MatchingParen && MatchingParen->opensBlockOrBlockTypeList(Style);
481 TokenRole(const FormatStyle &Style) : Style(Style) {} argument
512 const FormatStyle &Style; member in class:clang::format::TokenRole
517 CommaSeparatedList(const FormatStyle &Style) argument
518 : TokenRole(Style), HasNestedBracedLis
[all...]
H A DFormatTokenLexer.cpp27 const FormatStyle &Style,
31 SourceMgr(SourceMgr), ID(ID), Style(Style),
32 IdentTable(getFormattingLangOpts(Style)), Keywords(IdentTable),
34 MacroBlockBeginRegex(Style.MacroBlockBegin),
35 MacroBlockEndRegex(Style.MacroBlockEnd) {
37 getFormattingLangOpts(Style)));
40 for (const std::string &ForEachMacro : Style.ForEachMacros)
50 if (Style.Language == FormatStyle::LK_JavaScript) {
69 if (Style
26 FormatTokenLexer(const SourceManager &SourceMgr, FileID ID, const FormatStyle &Style, encoding::Encoding Encoding) argument
[all...]
H A DFormatTokenLexer.h32 const FormatStyle &Style, encoding::Encoding Encoding);
74 const FormatStyle &Style; member in class:clang::format::FormatTokenLexer
H A DSortJavaScriptImports.cpp123 JavaScriptImportSorter(const Environment &Env, const FormatStyle &Style) argument
124 : TokenAnalyzer(Env, Style),
430 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style, argument
437 JavaScriptImportSorter Sorter(*Env, Style);
H A DTokenAnalyzer.cpp77 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) argument
78 : Style(Style), Env(Env),
87 DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language)
93 FormatTokenLexer Tokens(Env.getSourceManager(), Env.getFileID(), Style,
96 UnwrappedLineParser Parser(Style, Tokens.getKeywords(), Tokens.lex(), *this);
103 TokenAnnotator Annotator(Style, Tokens.getKeywords());
H A DTokenAnalyzer.h82 TokenAnalyzer(const Environment &Env, const FormatStyle &Style);
96 FormatStyle Style; member in class:clang::format::TokenAnalyzer
97 // Stores Style, FileID and SourceManager etc.
H A DTokenAnnotator.cpp35 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, argument
37 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false),
74 if (Style.Language == FormatStyle::LK_Java &&
87 Style.Language == FormatStyle::LK_Java) {
137 } else if (Style.Language == FormatStyle::LK_JavaScript &&
148 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous &&
154 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous &&
309 Style.Language == FormatStyle::LK_Cpp &&
324 } else if (Style
1336 const FormatStyle &Style; member in class:clang::format::__anon1305::AnnotatingParser
1356 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, AnnotatedLine &Line) argument
1540 const FormatStyle &Style; member in class:clang::format::__anon1305::ExpressionParser
[all...]
H A DTokenAnnotator.h139 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords) argument
140 : Style(Style), Keywords(Keywords) {}
170 const FormatStyle &Style; member in class:clang::format::TokenAnnotator
H A DUnwrappedLineFormatter.cpp39 LevelIndentTracker(const FormatStyle &Style, argument
42 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) {
44 IndentForLevel.push_back(Style.IndentWidth * i + AdditionalIndent);
59 Indent = Line.Level * Style.IndentWidth + AdditionalIndent;
88 if (Style.Language == FormatStyle::LK_Java ||
89 Style.Language == FormatStyle::LK_JavaScript)
95 return Style.AccessModifierOffset;
109 return getIndent(IndentForLevel, Level - 1) + Style.IndentWidth;
112 const FormatStyle &Style; member in class:clang::format::__anon1306::LevelIndentTracker
131 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, const SmallVectorImpl<AnnotatedLine *> &Lines) argument
446 const FormatStyle &Style; member in class:clang::format::__anon1306::LineJoiner
475 LineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
567 const FormatStyle &Style; member in class:clang::format::__anon1306::LineFormatter
574 NoColumnLimitLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
602 NoLineBreakFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
623 OptimizingLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
[all...]
H A DUnwrappedLineFormatter.h35 const FormatStyle &Style,
38 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style),
66 const FormatStyle &Style; member in class:clang::format::UnwrappedLineFormatter
33 UnwrappedLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, const AdditionalKeywords &Keywords, bool *IncompleteFormat) argument
H A DUnwrappedLineParser.cpp155 const FormatStyle &Style, unsigned &LineLevel)
157 if (Style.BraceWrapping.AfterControlStatement)
159 if (Style.BraceWrapping.IndentBraces)
200 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, argument
205 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr),
258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript;
299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1)))
335 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok &&
349 if (Style
154 CompoundStatementIndenter(UnwrappedLineParser *Parser, const FormatStyle &Style, unsigned &LineLevel) argument
471 ShouldBreakBeforeBrace(const FormatStyle &Style, const FormatToken &InitialToken) argument
[all...]
H A DUnwrappedLineParser.h63 UnwrappedLineParser(const FormatStyle &Style,
162 const FormatStyle &Style; member in class:clang::format::UnwrappedLineParser
H A DWhitespaceManager.cpp199 static void AlignTokens(const FormatStyle &Style, F &&Matches, argument
291 unsigned ChangeMaxColumn = Style.ColumnLimit - LineLengthAfter;
309 if (!Style.AlignConsecutiveAssignments)
312 AlignTokens(Style,
328 if (!Style.AlignConsecutiveDeclarations)
338 AlignTokens(Style, [](Change const &C) { return C.IsStartOfDeclName; },
356 unsigned ChangeMaxColumn = Style.ColumnLimit - Changes[i].TokenLength;
387 CommentColumn == NextColumn + Style.IndentWidth;
391 if (!Style.AlignTrailingComments || FollowsRBraceInColumn0) {
443 Style
[all...]
H A DWhitespaceManager.h40 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style, argument
42 : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {}
208 const FormatStyle &Style; member in class:clang::format::WhitespaceManager
/external/clang/lib/Sema/
H A DSemaExprCXX.cpp1479 static bool isLegalArrayNewInitializer(CXXNewExpr::InitializationStyle Style, argument
1490 else if (Style == CXXNewExpr::ListInit) {
/external/clang/lib/Tooling/
H A DRefactoring.cpp66 Rewriter &Rewrite, StringRef Style) {
81 format::FormatStyle CurStyle = format::getStyle(Style, FilePath, "LLVM");
65 formatAndApplyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite, StringRef Style) argument
/external/clang/tools/clang-format-vs/ClangFormat/
H A DClangFormatPackage.cs78 [DisplayName("Style")]
92 public string Style property in class:LLVM.ClangFormat.OptionPageGrid
146 [DisplayName("Fallback Style")]
331 return page.Style;
/external/clang/tools/clang-format/fuzzer/
H A DClangFormatFuzzer.cpp21 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); local
22 Style.ColumnLimit = 60;
24 Style, s, {clang::tooling::Range(0, s.size())}));
/external/clang/unittests/Format/
H A DCleanupTest.cpp25 const FormatStyle &Style = getLLVMStyle()) {
26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges);
111 FormatStyle Style = getLLVMStyle(); local
112 Style.BraceWrapping.AfterNamespace = true;
113 std::string Result = cleanup(Code, Ranges, Style);
257 auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style);
268 auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style);
271 auto FormattedReplaces = formatReplacements(Code, *CleanReplaces, Style);
288 FormatStyle Style = getLLVMStyle(); member in class:clang::format::__anon3333::CleanUpReplacementsTest
373 Style
[all...]

Completed in 340 milliseconds

123