Home
last modified time | relevance | path

Searched refs:InPPDirective (Results 1 – 17 of 17) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DBreakableToken.h239 BreakableToken(const FormatToken &Tok, bool InPPDirective, in BreakableToken() argument
241 : Tok(Tok), InPPDirective(InPPDirective), Encoding(Encoding), in BreakableToken()
245 const bool InPPDirective; variable
258 unsigned UnbreakableTailLength, bool InPPDirective,
306 unsigned StartColumn, unsigned UnbreakableTailLength, bool InPPDirective,
337 bool InPPDirective, encoding::Encoding Encoding,
405 bool InPPDirective, encoding::Encoding Encoding,
483 bool InPPDirective, encoding::Encoding Encoding,
H A DUnwrappedLineFormatter.cpp66 (Line.InPPDirective || in nextLine()
80 if (!Line.InPPDirective) { in nextLine()
259 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
594 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
625 if (I[1]->InPPDirective != (*I)->InPPDirective || in tryMergeSimpleControlStatement()
669 bool InPPDirective = I[0]->InPPDirective; in tryMergeShortCaseLabels() local
676 if (Line->InPPDirective != InPPDirective) in tryMergeShortCaseLabels()
693 if (Line->InPPDirective != InPPDirective) in tryMergeShortCaseLabels()
1069 State.Line->InPPDirective); in formatChildren()
1587 InPPDirective && in getColumnLimit()
[all …]
H A DBreakableToken.cpp271 : BreakableToken(Tok, InPPDirective, Encoding, Style), in BreakableStringLiteral()
292 Prefix, InPPDirective, 1, StartColumn); in insertBreak()
304 UnbreakableTailLength, InPPDirective, Encoding, Style), in BreakableStringLiteralUsingOperators()
383 /*CurrentPrefix=*/Prefix, InPPDirective, /*NewLines=*/1, in insertBreak()
401 /*CurrentPrefix=*/LeftBraceQuote, InPPDirective, /*NewLines=*/0, in updateAfterBroken()
413 : BreakableToken(Token, InPPDirective, Encoding, Style), in BreakableComment()
482 unsigned OriginalStartColumn, bool FirstInLine, bool InPPDirective, in BreakableBlockComment() argument
626 if (InPPDirective && Lines[LineIndex - 1].ends_with("\\")) in adjustWhitespace()
738 PrefixWithTrailingIndent, InPPDirective, /*Newlines=*/1, in insertBreak()
785 /*CurrentPrefix=*/ReflowPrefix, InPPDirective, /*Newlines=*/0, in reflow()
[all …]
H A DTokenAnnotator.h53 InPPDirective(Line.InPPDirective), in AnnotatedLine()
174 bool InPPDirective; variable
H A DWhitespaceManager.h59 bool InPPDirective = false);
65 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
86 StringRef CurrentPrefix, bool InPPDirective,
H A DFormatTokenSource.h196 Line.InPPDirective = true; in ScopedMacroState()
203 Line.InPPDirective = false; in ~ScopedMacroState()
H A DUnwrappedLineFormatter.h56 unsigned getColumnLimit(bool InPPDirective,
H A DUnwrappedLineParser.cpp41 << ")" << (Line.InPPDirective ? " MACRO" : "") << ": "; in printLine()
106 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState()
210 if (Line.InPPDirective && Line.Level > 0) in parse()
330 if (!Lines.empty() && Lines.back().InPPDirective) in precededByCommentOrPPDirective()
403 if (!Style.RemoveBracesLLVM || Line->InPPDirective || in parseLevel()
451 (Line->InPPDirective && Line->Level == 1))) { in parseLevel()
734 assert(!Line.InPPDirective); in mightFitOnOneLine()
2689 assert(!Line->InPPDirective); in parseUnbracedBody()
2692 if (!L.InPPDirective && getLastNonComment(L)) { in parseUnbracedBody()
4775 !Line->InPPDirective) { in readToken()
[all …]
H A DAffectedRangeManager.cpp35 if (Line->InPPDirective) { in computeAffectedLines()
H A DWhitespaceManager.cpp56 bool IsAligned, bool InPPDirective) { in replaceWhitespace() argument
62 IsAligned, InPPDirective && !Tok.IsFirst, in replaceWhitespace()
67 bool InPPDirective) { in addUntouchableToken() argument
73 /*IsAligned=*/false, InPPDirective && !Tok.IsFirst, in addUntouchableToken()
90 StringRef PreviousPostfix, StringRef CurrentPrefix, bool InPPDirective, in replaceWhitespaceInToken() argument
99 /*IsAligned=*/true, InPPDirective && !Tok.IsFirst, in replaceWhitespaceInToken()
H A DUnwrappedLineParser.h55 bool InPPDirective = false; member
H A DUsingDeclarationsSorter.cpp221 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
H A DDefinitionBlockSeparator.cpp79 if (CurrentLine->InPPDirective) in separateBlocks()
H A DNamespaceEndCommentsFixer.cpp250 if (!Line->Affected || Line->InPPDirective || !Line->startsWith(tok::r_brace)) in getNamespaceToken()
H A DContinuationIndenter.cpp1069 State.Line->InPPDirective && State.Line->Type != LT_ImportStatement; in addTokenOnNewLine()
2330 UnbreakableTailLength, State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
2349 State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
2361 State.Line->InPPDirective, Encoding, Style, Whitespaces.useCRLF()); in createBreakableToken()
2770 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
H A DQualifierAlignmentFixer.cpp553 if (!Line->Affected || Line->InPPDirective) in fixQualifierAlignment()
H A DTokenAnnotator.cpp368 } else if (Line.InPPDirective && in parseParens()
384 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens()
1044 if (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0)) in consumeToken()
1410 (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0))) { in consumeToken()
2488 (Tok.Next->Next->is(tok::numeric_constant) || Line.InPPDirective)) { in rParenEndsCast()
2491 if (Line.InPPDirective && Tok.Next->is(tok::minus)) in rParenEndsCast()