Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DBreakableToken.h76 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,
DUnwrappedLineFormatter.cpp58 if (Line.InPPDirective) { in nextLine()
78 !Line.InPPDirective) in adjustToUnmodifiedLine()
173 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
174 (!I[1]->InPPDirective || I[1]->First->HasUnescapedNewline)) in tryFitMultipleLinesInOne()
241 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
254 if (I + 2 != E && I[2]->InPPDirective && !I[2]->First->HasUnescapedNewline) in tryMergeSimplePPDirective()
269 if (I[1]->InPPDirective != (*I)->InPPDirective || in tryMergeSimpleControlStatement()
270 (I[1]->InPPDirective && I[1]->First->HasUnescapedNewline)) in tryMergeSimpleControlStatement()
297 bool InPPDirective = I[0]->InPPDirective; in tryMergeShortCaseLabels() local
302 if (Line->InPPDirective != InPPDirective) in tryMergeShortCaseLabels()
[all …]
DBreakableToken.cpp146 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()
230 Postfix, Prefix, InPPDirective, /*Newlines=*/1, IndentLevel, StartColumn); in insertBreak()
254 unsigned OriginalStartColumn, bool FirstInLine, bool InPPDirective, in BreakableBlockComment() argument
256 : BreakableToken(Token, IndentLevel, InPPDirective, Encoding, Style) { in BreakableBlockComment()
[all …]
DWhitespaceManager.h52 bool InPPDirective = false);
58 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
77 StringRef CurrentPrefix, bool InPPDirective,
DUnwrappedLineFormatter.h51 unsigned Indent, bool InPPDirective);
55 unsigned getColumnLimit(bool InPPDirective,
DTokenAnnotator.h43 InPPDirective(Line.InPPDirective), in AnnotatedLine()
113 bool InPPDirective; variable
DUnwrappedLineParser.h47 bool InPPDirective; member
217 : Level(0), InPPDirective(false), MustBeDeclaration(false) {} in UnwrappedLine()
DWhitespaceManager.cpp53 bool InPPDirective) { in replaceWhitespace() argument
60 InPPDirective && !Tok.IsFirst, in replaceWhitespace()
66 bool InPPDirective) { in addUntouchableToken() argument
72 Tok.Tok.getKind(), InPPDirective && !Tok.IsFirst, in addUntouchableToken()
79 StringRef PreviousPostfix, StringRef CurrentPrefix, bool InPPDirective, in replaceWhitespaceInToken() argument
88 InPPDirective && !Tok.IsFirst, in replaceWhitespaceInToken()
DUnwrappedLineParser.cpp67 Line.InPPDirective = true; in ScopedMacroState()
73 Line.InPPDirective = false; in ~ScopedMacroState()
131 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState()
258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; in parseFile()
299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1))) in parseLevel()
1624 if (Line->Level > 1 || (!Line->InPPDirective && Line->Level > 0)) in parseLabel()
1977 << (Line.InPPDirective ? " MACRO" : "") << ": "; in printDebugInfo()
2017 return (Line->InPPDirective || FormatTok.HasUnescapedNewline) && in isOnNewLine()
2060 while (!Line->InPPDirective && FormatTok->Tok.is(tok::hash) && in readToken()
2087 !Line->InPPDirective) { in readToken()
DAffectedRangeManager.cpp34 if (Line->InPPDirective) { in computeAffectedLines()
DContinuationIndenter.cpp542 State.Column, State.Line->InPPDirective); in addTokenOnNewLine()
1129 State.Line->InPPDirective, Encoding, Style)); in breakProtrudingToken()
1139 !Current.Previous, State.Line->InPPDirective, Encoding, Style)); in breakProtrudingToken()
1232 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
DTokenAnnotator.cpp163 } else if (Line.InPPDirective && in parseParens()
178 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens()
/external/llvm/test/CodeGen/PowerPC/
DBreakableToken-reduced.ll254 …%InPPDirective = getelementptr inbounds %"class.clang::format::BreakableStringLiteral", %"class.cl…
255 %5 = load i8, i8* %InPPDirective, align 4, !tbaa !34, !range !39