Home
last modified time | relevance | path

Searched refs:InPPDirective (Results 1 – 16 of 16) 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,
404 bool InPPDirective, encoding::Encoding Encoding,
482 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()
236 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
237 (!NextLine.InPPDirective || NextLine.First->HasUnescapedNewline)) { in tryFitMultipleLinesInOne()
316 if (((*J)->InPPDirective && !(*J)->InMacroBody) || in tryFitMultipleLinesInOne()
377 if (!(*CompactedLine)->InPPDirective) { in tryFitMultipleLinesInOne()
465 if (Previous->is(tok::greater) && !PreviousLine->InPPDirective) in tryFitMultipleLinesInOne()
499 } else if (TheLine->InPPDirective || in tryFitMultipleLinesInOne()
561 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
[all …]
H A DBreakableToken.cpp256 StringRef Postfix, unsigned UnbreakableTailLength, bool InPPDirective, in BreakableStringLiteral() argument
258 : BreakableToken(Tok, InPPDirective, Encoding, Style), in BreakableStringLiteral()
279 Prefix, InPPDirective, 1, StartColumn); in insertBreak()
284 unsigned StartColumn, unsigned UnbreakableTailLength, bool InPPDirective, in BreakableStringLiteralUsingOperators() argument
291 UnbreakableTailLength, InPPDirective, Encoding, Style), in BreakableStringLiteralUsingOperators()
370 /*CurrentPrefix=*/Prefix, InPPDirective, /*NewLines=*/1, in insertBreak()
388 /*CurrentPrefix=*/LeftBraceQuote, InPPDirective, /*NewLines=*/0, in updateAfterBroken()
393 /*CurrentPrefix=*/"", InPPDirective, /*NewLines=*/0, /*Spaces=*/0); in updateAfterBroken()
397 unsigned StartColumn, bool InPPDirective, in BreakableComment() argument
400 : BreakableToken(Token, InPPDirective, Encoding, Style), in BreakableComment()
[all …]
H A DTokenAnnotator.h56 InPPDirective(Line.InPPDirective), in AnnotatedLine()
182 bool InPPDirective; variable
H A DWhitespaceManager.h54 bool InPPDirective = false);
60 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
81 StringRef CurrentPrefix, bool InPPDirective,
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()
1258 const bool InPPDirective = C.ContinuesPPDirective; in alignEscapedNewlines() local
1260 if (InPPDirective || in alignEscapedNewlines()
1264 if (!InPPDirective) { in alignEscapedNewlines()
H A DUnwrappedLineParser.cpp39 << ")" << (Line.InPPDirective ? " MACRO" : "") << ": "; in printLine()
109 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState()
216 if (Line.InPPDirective && Line.Level > 0) in parse()
269 bool MustBeDeclaration = !Line->InPPDirective && !Style.isJavaScript(); in parseFile()
335 if (!Lines.empty() && Lines.back().InPPDirective) in precededByCommentOrPPDirective()
411 if (!Style.RemoveBracesLLVM || Line->InPPDirective || in parseLevel()
456 (Line->InPPDirective && Line->Level == 1))) { in parseLevel()
737 assert(!Line.InPPDirective); in mightFitOnOneLine()
2791 if (Style.InsertBraces && !Line->InPPDirective && !Line->Tokens.empty() && in parseUnbracedBody()
2812 assert(!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.cpp220 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
H A DDefinitionBlockSeparator.cpp78 if (CurrentLine->InPPDirective) in separateBlocks()
H A DContinuationIndenter.cpp1174 State.Line->InPPDirective && State.Line->Type != LT_ImportStatement; in addTokenOnNewLine()
2497 UnbreakableTailLength, State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
2516 State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
2528 State.Line->InPPDirective, Encoding, Style, Whitespaces.useCRLF()); in createBreakableToken()
2937 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
H A DQualifierAlignmentFixer.cpp572 if (!Line->Affected || Line->InPPDirective) in fixQualifierAlignment()
H A DTokenAnnotator.cpp387 } else if (Line.InPPDirective && in parseParens()
404 (!Line.InPPDirective || (Line.InMacroBody && !Scopes.empty()))) { in parseParens()
1356 if (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0)) in consumeToken()
1755 (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0))) { in consumeToken()
2905 (AfterRParen->Next->is(tok::numeric_constant) || Line.InPPDirective)) { in rParenEndsCast()
2909 if (Line.InPPDirective && AfterRParen->is(tok::minus)) in rParenEndsCast()