Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DBreakableToken.h236 BreakableToken(const FormatToken &Tok, bool InPPDirective, in BreakableToken() argument
238 : Tok(Tok), InPPDirective(InPPDirective), Encoding(Encoding), in BreakableToken()
242 const bool InPPDirective; variable
255 unsigned UnbreakableTailLength, bool InPPDirective,
303 unsigned StartColumn, unsigned UnbreakableTailLength, bool InPPDirective,
334 bool InPPDirective, encoding::Encoding Encoding,
402 bool InPPDirective, encoding::Encoding Encoding,
480 bool InPPDirective, encoding::Encoding Encoding,
H A DUnwrappedLineFormatter.cpp66 (Line.InPPDirective || in nextLine()
80 if (!Line.InPPDirective) { in nextLine()
98 if (Line.InPPDirective || Line.IsContinuation) in adjustToUnmodifiedLine()
258 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
259 (!NextLine.InPPDirective || NextLine.First->HasUnescapedNewline)) { in tryFitMultipleLinesInOne()
337 if (!(*J)->InPPDirective && !(*J)->isComment() && in tryFitMultipleLinesInOne()
385 if (!(*CompactedLine)->InPPDirective) { in tryFitMultipleLinesInOne()
503 if (Previous->is(tok::greater) && !PreviousLine->InPPDirective) in tryFitMultipleLinesInOne()
537 } else if (TheLine->InPPDirective || in tryFitMultipleLinesInOne()
599 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
[all …]
H A DBreakableToken.cpp269 StringRef Postfix, unsigned UnbreakableTailLength, bool InPPDirective, in BreakableStringLiteral() argument
271 : BreakableToken(Tok, InPPDirective, Encoding, Style), in BreakableStringLiteral()
292 Prefix, InPPDirective, 1, StartColumn); in insertBreak()
297 unsigned StartColumn, unsigned UnbreakableTailLength, bool InPPDirective, in BreakableStringLiteralUsingOperators() argument
304 UnbreakableTailLength, InPPDirective, Encoding, Style), in BreakableStringLiteralUsingOperators()
383 /*CurrentPrefix=*/Prefix, InPPDirective, /*NewLines=*/1, in insertBreak()
401 /*CurrentPrefix=*/LeftBraceQuote, InPPDirective, /*NewLines=*/0, in updateAfterBroken()
406 /*CurrentPrefix=*/"", InPPDirective, /*NewLines=*/0, /*Spaces=*/0); in updateAfterBroken()
410 unsigned StartColumn, bool InPPDirective, in BreakableComment() argument
413 : BreakableToken(Token, InPPDirective, Encoding, Style), in BreakableComment()
[all …]
H A DWhitespaceManager.h54 bool InPPDirective = false);
60 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
81 StringRef CurrentPrefix, bool InPPDirective,
H A DTokenAnnotator.h54 InPPDirective(Line.InPPDirective), in AnnotatedLine()
175 bool InPPDirective; variable
H A DFormatTokenSource.h202 Line.InPPDirective = true; in ScopedMacroState()
209 Line.InPPDirective = false; in ~ScopedMacroState()
H A DUnwrappedLineFormatter.h54 unsigned getColumnLimit(bool InPPDirective,
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()
1263 const bool InPPDirective = C.ContinuesPPDirective; in alignEscapedNewlines() local
1265 if (InPPDirective || in alignEscapedNewlines()
1269 if (!InPPDirective) { in alignEscapedNewlines()
H A DUnwrappedLineParser.cpp41 << ")" << (Line.InPPDirective ? " MACRO" : "") << ": "; in printLine()
113 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState()
221 if (Line.InPPDirective && Line.Level > 0) in parse()
274 bool MustBeDeclaration = !Line->InPPDirective && !Style.isJavaScript(); in parseFile()
341 if (!Lines.empty() && Lines.back().InPPDirective) in precededByCommentOrPPDirective()
417 if (!Style.RemoveBracesLLVM || Line->InPPDirective || in parseLevel()
462 (Line->InPPDirective && Line->Level == 1))) { in parseLevel()
742 assert(!Line.InPPDirective); in mightFitOnOneLine()
2726 if (Style.InsertBraces && !Line->InPPDirective in parseUnbracedBody()
[all...]
H A DAffectedRangeManager.cpp35 if (Line->InPPDirective) { in computeAffectedLines()
H A DUnwrappedLineParser.h46 bool InPPDirective = false; member
H A DUsingDeclarationsSorter.cpp221 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
H A DContinuationIndenter.cpp1079 State.Line->InPPDirective && State.Line->Type != LT_ImportStatement; in addTokenOnNewLine()
2379 UnbreakableTailLength, State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
2398 State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
2410 State.Line->InPPDirective, Encoding, Style, Whitespaces.useCRLF()); in createBreakableToken()
2819 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
H A DQualifierAlignmentFixer.cpp555 if (!Line->Affected || Line->InPPDirective) in fixQualifierAlignment()
H A DTokenAnnotator.cpp389 } else if (Line.InPPDirective && in parseParens()
405 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens()
1365 if (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0)) in consumeToken()
1746 (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0))) { in consumeToken()
2873 (AfterRParen->Next->is(tok::numeric_constant) || Line.InPPDirective)) { in rParenEndsCast()
2877 if (Line.InPPDirective && AfterRParen->is(tok::minus)) in rParenEndsCast()