| /openbsd-src/gnu/llvm/clang/lib/Format/ |
| H A D | BreakableToken.h | 234 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 D | UnwrappedLineFormatter.cpp | 64 (Line.InPPDirective || in nextLine() 101 !Line.InPPDirective) { in adjustToUnmodifiedLine() 252 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne() 253 (!NextLine.InPPDirective || NextLine.First->HasUnescapedNewline)) { in tryFitMultipleLinesInOne() 331 if (!(*J)->InPPDirective && !(*J)->isComment() && in tryFitMultipleLinesInOne() 486 if (Previous->is(tok::greater) && !PreviousLine->InPPDirective) in tryFitMultipleLinesInOne() 515 assert(TheLine->InPPDirective || in tryFitMultipleLinesInOne() 575 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne() 588 if (I + 2 != E && I[2]->InPPDirective && !I[2]->First->HasUnescapedNewline) in tryMergeSimplePPDirective() 606 if (I[1]->InPPDirective != (*I)->InPPDirective || in tryMergeSimpleControlStatement() [all …]
|
| H A D | BreakableToken.cpp | 269 StringRef Postfix, unsigned UnbreakableTailLength, bool InPPDirective, in BreakableStringLiteral() argument 271 : BreakableToken(Tok, InPPDirective, Encoding, Style), in BreakableStringLiteral() 292 Prefix, InPPDirective, 1, StartColumn); in insertBreak() 296 unsigned StartColumn, bool InPPDirective, in BreakableComment() argument 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() 512 if (InPPDirective && Lines[LineIndex - 1].endswith("\\")) in adjustWhitespace() 626 PrefixWithTrailingIndent, InPPDirective, /*Newlines=*/1, in insertBreak() 673 /*CurrentPrefix=*/ReflowPrefix, InPPDirective, /*Newlines=*/0, in reflow() [all …]
|
| H A D | TokenAnnotator.h | 44 InPPDirective(Line.InPPDirective), in AnnotatedLine() 136 bool InPPDirective; variable
|
| H A D | WhitespaceManager.h | 59 bool InPPDirective = false); 65 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective); 86 StringRef CurrentPrefix, bool InPPDirective,
|
| H A D | UnwrappedLineParser.h | 52 bool InPPDirective; member 364 : Level(0), PPLevel(0), InPPDirective(false), InPragmaDirective(false), in UnwrappedLine()
|
| H A D | UnwrappedLineFormatter.h | 56 unsigned getColumnLimit(bool InPPDirective,
|
| H A D | UnwrappedLineParser.cpp | 64 << ")" << (Line.InPPDirective ? " MACRO" : "") << ": "; in printLine() 145 Line.InPPDirective = true; in ScopedMacroState() 152 Line.InPPDirective = false; in ~ScopedMacroState() 221 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState() 381 if (Line.InPPDirective && Line.Level > 0) in parse() 410 bool MustBeDeclaration = !Line->InPPDirective && !Style.isJavaScript(); in parseFile() 477 if (!Lines.empty() && Lines.back().InPPDirective) in precededByCommentOrPPDirective() 559 if (!Style.RemoveBracesLLVM || Line->InPPDirective || in parseLevel() 607 (Line->InPPDirective && Line->Level == 1))) { in parseLevel() 858 assert(!Line.InPPDirective); in mightFitOnOneLine() [all …]
|
| H A D | WhitespaceManager.cpp | 51 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() 85 StringRef PreviousPostfix, StringRef CurrentPrefix, bool InPPDirective, in replaceWhitespaceInToken() argument 94 /*IsAligned=*/true, InPPDirective && !Tok.IsFirst, in replaceWhitespaceInToken()
|
| H A D | AffectedRangeManager.cpp | 35 if (Line->InPPDirective) { in computeAffectedLines()
|
| H A D | DefinitionBlockSeparator.cpp | 79 if (CurrentLine->InPPDirective) in separateBlocks()
|
| H A D | UsingDeclarationsSorter.cpp | 221 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
|
| H A D | NamespaceEndCommentsFixer.cpp | 250 if (!Line->Affected || Line->InPPDirective || !Line->startsWith(tok::r_brace)) in getNamespaceToken()
|
| H A D | ContinuationIndenter.cpp | 990 State.Line->InPPDirective && State.Line->Type != LT_ImportStatement; in addTokenOnNewLine() 2154 State.Line->InPPDirective, Encoding, Style); in createBreakableToken() 2166 State.Line->InPPDirective, Encoding, Style, Whitespaces.useCRLF()); in createBreakableToken() 2572 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
|
| H A D | QualifierAlignmentFixer.cpp | 445 if (Line->InPPDirective) in analyze()
|
| H A D | TokenAnnotator.cpp | 329 } else if (Line.InPPDirective && in parseParens() 345 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens() 991 if (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0)) in consumeToken() 1273 (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0))) { in consumeToken()
|