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

12

/freebsd-12-stable/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp49 using clang::format::FormatStyle;
51 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::format::FormatStyle::RawStringFormat)
55 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageKind> {
56 static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) {
57 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp);
58 IO.enumCase(Value, "Java", FormatStyle::LK_Java);
59 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript);
60 IO.enumCase(Value, "ObjC", FormatStyle::LK_ObjC);
61 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto);
62 IO.enumCase(Value, "TableGen", FormatStyle
[all...]
H A DSortJavaScriptImports.h27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
H A DFormatInternal.h73 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 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 DFormatTokenLexer.h40 const FormatStyle &Style, encoding::Encoding Encoding);
100 const FormatStyle &Style;
H A DTokenAnalyzer.h82 TokenAnalyzer(const Environment &Env, const FormatStyle &Style);
96 FormatStyle Style;
H A DUnwrappedLineFormatter.h32 const FormatStyle &Style,
67 const FormatStyle &Style;
H A DTokenAnnotator.cpp66 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
105 if (Style.Language == FormatStyle::LK_Java &&
118 if (Style.Language == FormatStyle::LK_TextProto ||
119 (Style.Language == FormatStyle::LK_Proto && Left->Previous &&
128 Style.Language == FormatStyle::LK_Java) {
134 Style.Language != FormatStyle::LK_Proto &&
135 Style.Language != FormatStyle::LK_TextProto))
149 if (Style.Language == FormatStyle::LK_Proto) {
185 } else if (Style.Language == FormatStyle::LK_JavaScript &&
200 } else if (Style.Language == FormatStyle
[all...]
H A DBreakableToken.h34 struct FormatStyle;
235 encoding::Encoding Encoding, const FormatStyle &Style)
242 const FormatStyle &Style;
254 encoding::Encoding Encoding, const FormatStyle &Style);
294 const FormatStyle &Style);
362 const FormatStyle &Style, bool UseCRLF);
441 const FormatStyle &Style);
H A DContinuationIndenter.cpp30 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style,
121 const FormatStyle &Style) {
124 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma)
126 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName))
131 FormatStyle::BCIS_BeforeComma) &&
133 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma));
137 const FormatStyle &Style) {
140 return Style.Language == FormatStyle::LK_TextProto ||
141 (Style.Language == FormatStyle::LK_Proto &&
174 getCanonicalRawStringDelimiter(const FormatStyle
[all...]
H A DUnwrappedLineFormatter.cpp40 LevelIndentTracker(const FormatStyle &Style,
96 if (Style.Language == FormatStyle::LK_Java ||
97 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp())
120 const FormatStyle &Style;
164 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords,
254 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_All ||
255 (Style.AllowShortFunctionsOnASingleLine >= FormatStyle::SFS_Empty &&
257 (Style.AllowShortFunctionsOnASingleLine & FormatStyle::SFS_InlineOnly &&
303 return Style.AllowShortBlocksOnASingleLine != FormatStyle::SBS_Never
314 FormatStyle
[all...]
H A DUnwrappedLineParser.cpp174 const FormatStyle &Style, unsigned &LineLevel)
224 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style,
233 IncludeGuard(Style.IndentPPDirectives == FormatStyle::PPDIS_None
240 IncludeGuard = Style.IndentPPDirectives == FormatStyle::PPDIS_None
302 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript;
305 if (Style.Language == FormatStyle::LK_TextProto)
319 if (Style.Language == FormatStyle::LK_TextProto &&
372 if (Style.Language == FormatStyle::LK_JavaScript &&
415 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok) {
440 if (Style.Language == FormatStyle
[all...]
H A DWhitespaceManager.h39 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style,
212 const FormatStyle &Style;
H A DBreakableToken.cpp43 const FormatStyle &Style) {
49 if (Style.Language == FormatStyle::LK_TextProto)
68 encoding::Encoding Encoding, const FormatStyle &Style,
100 else if (Style.Language == FormatStyle::LK_JavaScript &&
237 encoding::Encoding Encoding, const FormatStyle &Style)
265 const FormatStyle &Style)
336 encoding::Encoding Encoding, const FormatStyle &Style, bool UseCRLF)
430 if (Style.Language == FormatStyle::LK_JavaScript ||
431 Style.Language == FormatStyle::LK_Java) {
550 if (Style.Language != FormatStyle
[all...]
H A DFormatTokenLexer.cpp26 unsigned Column, const FormatStyle &Style,
53 if (Style.Language == FormatStyle::LK_JavaScript) {
57 if (Style.Language == FormatStyle::LK_TextProto)
93 if (Style.Language == FormatStyle::LK_JavaScript) {
135 if (Style.Language == FormatStyle::LK_Java) {
718 if ((Style.Language == FormatStyle::LK_JavaScript ||
719 Style.Language == FormatStyle::LK_Java) &&
775 if (Style.Language == FormatStyle::LK_Java &&
780 } else if (Style.Language == FormatStyle::LK_JavaScript &&
851 } else if (Style.Language == FormatStyle
[all...]
H A DTokenAnnotator.h159 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords)
192 const FormatStyle &Style;
H A DUnwrappedLineParser.h77 UnwrappedLineParser(const FormatStyle &Style,
205 const FormatStyle &Style;
H A DFormatToken.h506 bool opensBlockOrBlockTypeList(const FormatStyle &Style) const {
513 (is(tok::less) && (Style.Language == FormatStyle::LK_Proto ||
514 Style.Language == FormatStyle::LK_TextProto));
519 bool isCppStructuredBinding(const FormatStyle &Style) const {
531 bool closesBlockOrBlockTypeList(const FormatStyle &Style) const {
589 TokenRole(const FormatStyle &Style) : Style(Style) {}
622 const FormatStyle &Style;
627 CommaSeparatedList(const FormatStyle &Style)
H A DWhitespaceManager.cpp329 static unsigned AlignTokens(const FormatStyle &Style, F &&Matches,
713 if (Style.AlignEscapedNewlines == FormatStyle::ENAS_DontAlign)
716 bool AlignLeft = Style.AlignEscapedNewlines == FormatStyle::ENAS_Left;
814 case FormatStyle::UT_Never:
817 case FormatStyle::UT_Always: {
838 case FormatStyle::UT_ForIndentation:
853 case FormatStyle::UT_ForContinuationAndIndentation:
H A DSortJavaScriptImports.cpp36 using clang::format::FormatStyle;
121 JavaScriptImportSorter(const Environment &Env, const FormatStyle &Style)
440 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Format/
H A DFormat.h47 /// The ``FormatStyle`` is used to configure the formatting to follow
49 struct FormatStyle { struct in namespace:clang::format
2064 bool operator==(const FormatStyle &R) const {
2178 llvm::Optional<FormatStyle> GetLanguageStyle(LanguageKind Language) const;
2180 // Stores per-language styles. A FormatStyle instance inside has an empty
2181 // StyleSet. A FormatStyle instance returned by the Get method has its
2188 typedef std::map<FormatStyle::LanguageKind, FormatStyle> MapType;
2190 llvm::Optional<FormatStyle> Get(FormatStyle
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp380 llvm::Expected<FormatStyle> FormatStyle = local
382 if (!FormatStyle) {
383 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n";
388 FormatStyle->SortIncludes = SortIncludes;
390 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges,
401 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status);
467 llvm::Expected<clang::format::FormatStyle> FormatStyle = local
470 if (!FormatStyle) {
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h149 format::FormatStyle Style = format::getNoStyle();

Completed in 234 milliseconds

12