Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DBreakableToken.h234 BreakableToken(const FormatToken &Tok, bool InPPDirective, in BreakableToken() argument
236 : Tok(Tok), InPPDirective(InPPDirective), Encoding(Encoding), in BreakableToken()
240 const bool InPPDirective; variable
253 unsigned UnbreakableTailLength, bool InPPDirective,
293 bool InPPDirective, encoding::Encoding Encoding,
361 bool InPPDirective, encoding::Encoding Encoding,
439 bool InPPDirective, encoding::Encoding Encoding,
H A DUnwrappedLineFormatter.cpp59 if (Line.InPPDirective) { in nextLine()
90 !Line.InPPDirective) in adjustToUnmodifiedLine()
216 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
451 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
481 if (I[1]->InPPDirective != (*I)->InPPDirective || in tryMergeSimpleControlStatement()
519 bool InPPDirective = I[0]->InPPDirective; in tryMergeShortCaseLabels() local
525 if (Line->InPPDirective != InPPDirective) in tryMergeShortCaseLabels()
539 if (Line->InPPDirective != InPPDirective) in tryMergeShortCaseLabels()
873 State.Line->InPPDirective); in formatChildren()
1356 InPPDirective && in getColumnLimit()
[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()
299 : BreakableToken(Token, InPPDirective, Encoding, Style), in BreakableComment()
368 unsigned OriginalStartColumn, bool FirstInLine, bool InPPDirective, in BreakableBlockComment() argument
370 : BreakableComment(Token, StartColumn, InPPDirective, Encoding, Style), in BreakableBlockComment()
511 if (InPPDirective && Lines[LineIndex - 1].endswith("\\")) in adjustWhitespace()
627 PrefixWithTrailingIndent, InPPDirective, /*Newlines=*/1, in insertBreak()
673 /*CurrentPrefix=*/ReflowPrefix, InPPDirective, /*Newlines=*/0, in reflow()
754 const FormatToken &Token, unsigned StartColumn, bool InPPDirective, in BreakableLineCommentSection() argument
[all …]
H A DTokenAnnotator.h44 InPPDirective(Line.InPPDirective), in AnnotatedLine()
132 bool InPPDirective; variable
H A DWhitespaceManager.h56 bool InPPDirective = false);
62 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
83 StringRef CurrentPrefix, bool InPPDirective,
H A DUnwrappedLineParser.h47 bool InPPDirective; member
309 : Level(0), InPPDirective(false), MustBeDeclaration(false), in UnwrappedLine()
H A DUnwrappedLineFormatter.h56 unsigned getColumnLimit(bool InPPDirective,
H A DWhitespaceManager.cpp51 bool IsAligned, bool InPPDirective) { in replaceWhitespace() argument
57 IsAligned, InPPDirective && !Tok.IsFirst, in replaceWhitespace()
62 bool InPPDirective) { in addUntouchableToken() argument
68 /*IsAligned=*/false, InPPDirective && !Tok.IsFirst, in addUntouchableToken()
79 StringRef PreviousPostfix, StringRef CurrentPrefix, bool InPPDirective, in replaceWhitespaceInToken() argument
88 /*IsAligned=*/true, InPPDirective && !Tok.IsFirst, in replaceWhitespaceInToken()
H A DUnwrappedLineParser.cpp90 Line.InPPDirective = true; in ScopedMacroState()
96 Line.InPPDirective = false; in ~ScopedMacroState()
151 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState()
272 if (Line.InPPDirective && Line.Level > 0) in parse()
303 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; in parseFile()
421 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1))) in parseLevel()
2345 if (Line->Level > 1 || (!Line->InPPDirective && Line->Level > 0)) in parseLabel()
3023 << (Line.InPPDirective ? " MACRO" : "") << ": "; in printDebugInfo()
3081 return (Line->InPPDirective || FormatTok.HasUnescapedNewline) && in isOnNewLine()
3291 while (!Line->InPPDirective && FormatTok->Tok.is(tok::hash) && in readToken()
[all …]
H A DAffectedRangeManager.cpp34 if (Line->InPPDirective) { in computeAffectedLines()
H A DUsingDeclarationsSorter.cpp193 if (AnnotatedLines[I]->InPPDirective || in analyze()
H A DNamespaceEndCommentsFixer.cpp173 if (!Line->Affected || Line->InPPDirective || !Line->startsWith(tok::r_brace)) in getNamespaceToken()
H A DContinuationIndenter.cpp887 State.Line->InPPDirective && State.Line->Type != LT_ImportStatement; in addTokenOnNewLine()
1956 State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
1968 State.Line->InPPDirective, Encoding, Style, Whitespaces.useCRLF()); in createBreakableToken()
2363 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
H A DTokenAnnotator.cpp272 } else if (Line.InPPDirective && in parseParens()
285 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens()