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()
105 bool InPPDirective; variable
DUnwrappedLineParser.h47 bool InPPDirective; member
215 : Level(0), InPPDirective(false), MustBeDeclaration(false) {} in UnwrappedLine()
DWhitespaceManager.cpp53 bool InPPDirective) { in replaceWhitespace() argument
59 Newlines, "", "", Tok.Tok.getKind(), InPPDirective && !Tok.IsFirst, in replaceWhitespace()
64 bool InPPDirective) { in addUntouchableToken() argument
70 Tok.Tok.getKind(), InPPDirective && !Tok.IsFirst, in addUntouchableToken()
76 StringRef PreviousPostfix, StringRef CurrentPrefix, bool InPPDirective, in replaceWhitespaceInToken() argument
91 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()
1463 if (Line->Level > 1 || (!Line->InPPDirective && Line->Level > 0)) in parseLabel()
1796 << (Line.InPPDirective ? " MACRO" : "") << ": "; in printDebugInfo()
1836 return (Line->InPPDirective || FormatTok.HasUnescapedNewline) && in isOnNewLine()
1868 while (!Line->InPPDirective && FormatTok->Tok.is(tok::hash) && in readToken()
1895 !Line->InPPDirective) { in readToken()
DContinuationIndenter.cpp506 State.Column, State.Line->InPPDirective); in addTokenOnNewLine()
1074 State.Line->InPPDirective, Encoding, Style)); in breakProtrudingToken()
1084 !Current.Previous, State.Line->InPPDirective, Encoding, Style)); in breakProtrudingToken()
1177 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
DTokenAnnotator.cpp134 } else if (Line.InPPDirective && in parseParens()
865 !Line.InPPDirective && in modifyContext()
DFormat.cpp1504 if (Line->InPPDirective) { in computeAffectedLines()
/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