/external/clang/lib/Format/ |
D | BreakableToken.h | 76 bool InPPDirective, encoding::Encoding Encoding, in BreakableToken() argument 78 : Tok(Tok), IndentLevel(IndentLevel), InPPDirective(InPPDirective), in BreakableToken() 83 const bool InPPDirective; variable 100 StringRef Postfix, bool InPPDirective, 122 StringRef Postfix, bool InPPDirective, 140 unsigned StartColumn, bool InPPDirective, 167 bool FirstInLine, bool InPPDirective,
|
D | BreakableToken.cpp | 146 StringRef Prefix, StringRef Postfix, bool InPPDirective, in BreakableSingleLineToken() argument 148 : BreakableToken(Tok, IndentLevel, InPPDirective, Encoding, Style), in BreakableSingleLineToken() 157 StringRef Prefix, StringRef Postfix, bool InPPDirective, in BreakableStringLiteral() argument 160 InPPDirective, Encoding, Style) {} in BreakableStringLiteral() 182 Prefix, InPPDirective, 1, IndentLevel, LeadingSpaces); in insertBreak() 202 bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) in BreakableLineComment() argument 205 InPPDirective, Encoding, Style) { in BreakableLineComment() 228 Postfix, Prefix, InPPDirective, /*Newlines=*/1, IndentLevel, StartColumn); in insertBreak() 253 unsigned OriginalStartColumn, bool FirstInLine, bool InPPDirective, in BreakableBlockComment() argument 255 : BreakableToken(Token, IndentLevel, InPPDirective, Encoding, Style) { in BreakableBlockComment() [all …]
|
D | WhitespaceManager.h | 52 bool InPPDirective = false); 58 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective); 77 StringRef CurrentPrefix, bool InPPDirective,
|
D | TokenAnnotator.h | 42 InPPDirective(Line.InPPDirective), in AnnotatedLine() 86 bool InPPDirective; variable
|
D | WhitespaceManager.cpp | 49 bool InPPDirective) { in replaceWhitespace() argument 55 Tok.Tok.getKind(), InPPDirective && !Tok.IsFirst)); in replaceWhitespace() 59 bool InPPDirective) { in addUntouchableToken() argument 65 InPPDirective && !Tok.IsFirst)); in addUntouchableToken() 70 StringRef PreviousPostfix, StringRef CurrentPrefix, bool InPPDirective, in replaceWhitespaceInToken() argument 85 InPPDirective && !Tok.IsFirst)); in replaceWhitespaceInToken()
|
D | UnwrappedLineParser.h | 46 bool InPPDirective; member 212 : Level(0), InPPDirective(false), MustBeDeclaration(false) {} in UnwrappedLine()
|
D | Format.cpp | 637 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne() 651 if (!I[1]->InPPDirective || I[1]->First->HasUnescapedNewline) in tryMergeSimplePPDirective() 653 if (I + 2 != E && I[2]->InPPDirective && !I[2]->First->HasUnescapedNewline) in tryMergeSimplePPDirective() 669 if (I[1]->InPPDirective != (*I)->InPPDirective || in tryMergeSimpleControlStatement() 670 (I[1]->InPPDirective && I[1]->First->HasUnescapedNewline)) in tryMergeSimpleControlStatement() 766 if (I[0]->InPPDirective && I + 1 != E && in limitConsideringMacros() 823 if (TheLine.InPPDirective) { in format() 867 Indent, TheLine.InPPDirective); in format() 876 if (NextLine->InPPDirective && !NextLine->First->HasUnescapedNewline) in format() 877 ColumnLimit = getColumnLimit(TheLine.InPPDirective); in format() [all …]
|
D | UnwrappedLineParser.cpp | 66 Line.InPPDirective = true; in ScopedMacroState() 72 Line.InPPDirective = false; in ~ScopedMacroState() 134 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState() 265 /*MustBeDeclaration=*/ !Line->InPPDirective); in parseFile() 296 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1))) in parseLevel() 1238 if (Line->Level > 1 || (!Line->InPPDirective && Line->Level > 0)) in parseLabel() 1456 << (Line.InPPDirective ? " MACRO" : "") << ": "; in printDebugInfo() 1499 return (Line->InPPDirective || FormatTok.HasUnescapedNewline) && in isOnNewLine() 1533 while (!Line->InPPDirective && FormatTok->Tok.is(tok::hash) && in readToken() 1561 !Line->InPPDirective) { in readToken()
|
D | ContinuationIndenter.cpp | 423 State.Column, State.Line->InPPDirective); in addTokenOnNewLine() 989 State.Line->InPPDirective, Encoding, Style)); in breakProtrudingToken() 998 !Current.Previous, State.Line->InPPDirective, Encoding, Style)); in breakProtrudingToken() 1090 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
|
D | TokenAnnotator.cpp | 115 } else if (Line.InPPDirective && in parseParens() 710 !Line.InPPDirective && in determineTokenType()
|