Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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.cpp63 if (Line.InPPDirective) { in nextLine()
94 !Line.InPPDirective) { in adjustToUnmodifiedLine()
245 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
568 if (TheLine->InPPDirective && in tryFitMultipleLinesInOne()
599 if (I[1]->InPPDirective != (*I)->InPPDirective || in tryMergeSimpleControlStatement()
643 bool InPPDirective = I[0]->InPPDirective; in tryMergeShortCaseLabels() local
649 if (Line->InPPDirective != InPPDirective) in tryMergeShortCaseLabels()
664 if (Line->InPPDirective != InPPDirective) in tryMergeShortCaseLabels()
1013 State.Line->InPPDirective); in formatChildren()
1508 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()
512 if (InPPDirective && Lines[LineIndex - 1].endswith("\\")) in adjustWhitespace()
626 PrefixWithTrailingIndent, InPPDirective, /*Newlines=*/1, in insertBreak()
673 /*CurrentPrefix=*/ReflowPrefix, InPPDirective, /*Newlines=*/0, in reflow()
752 const FormatToken &Token, unsigned StartColumn, bool InPPDirective, in BreakableLineCommentSection() argument
[all …]
H A DTokenAnnotator.h42 InPPDirective(Line.InPPDirective), in AnnotatedLine()
130 bool InPPDirective; variable
H A DWhitespaceManager.h59 bool InPPDirective = false);
65 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
86 StringRef CurrentPrefix, bool InPPDirective,
H A DUnwrappedLineParser.h48 bool InPPDirective; member
345 : Level(0), InPPDirective(false), MustBeDeclaration(false), in UnwrappedLine()
H A DUnwrappedLineFormatter.h56 unsigned getColumnLimit(bool InPPDirective,
H A DUnwrappedLineParser.cpp118 Line.InPPDirective = true; in ScopedMacroState()
124 Line.InPPDirective = false; in ~ScopedMacroState()
198 Parser.Line->InPPDirective = PreBlockLine->InPPDirective; in ScopedLineState()
364 if (Line.InPPDirective && Line.Level > 0) in parse()
460 if (!Lines.empty() && Lines.back().InPPDirective) in precededByCommentOrPPDirective()
542 if (!Style.RemoveBracesLLVM || Line->InPPDirective || in parseLevel()
586 (Line->InPPDirective && Line->Level == 1))) { in parseLevel()
1828 if (!Line->InPPDirective) in parseStructuralElement()
2521 assert(!Line->InPPDirective); in parseUnbracedBody()
2524 if (!L.InPPDirective && getLastNonComment(L)) { in parseUnbracedBody()
[all …]
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()
85 StringRef PreviousPostfix, StringRef CurrentPrefix, bool InPPDirective, in replaceWhitespaceInToken() argument
94 /*IsAligned=*/true, InPPDirective && !Tok.IsFirst, in replaceWhitespaceInToken()
H A DAffectedRangeManager.cpp35 if (Line->InPPDirective) { in computeAffectedLines()
H A DUsingDeclarationsSorter.cpp193 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
H A DDefinitionBlockSeparator.cpp79 if (CurrentLine->InPPDirective) in separateBlocks()
H A DNamespaceEndCommentsFixer.cpp250 if (!Line->Affected || Line->InPPDirective || !Line->startsWith(tok::r_brace)) in getNamespaceToken()
H A DContinuationIndenter.cpp974 State.Line->InPPDirective && State.Line->Type != LT_ImportStatement; in addTokenOnNewLine()
2119 State.Line->InPPDirective, Encoding, Style); in createBreakableToken()
2131 State.Line->InPPDirective, Encoding, Style, Whitespaces.useCRLF()); in createBreakableToken()
2537 return Style.ColumnLimit - (State.Line->InPPDirective ? 2 : 0); in getColumnLimit()
H A DQualifierAlignmentFixer.cpp440 if (Line->InPPDirective) in analyze()
H A DTokenAnnotator.cpp290 } else if (Line.InPPDirective && in parseParens()
305 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens()
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A DBreakableToken-reduced.ll254 …%InPPDirective = getelementptr inbounds %"class.clang::format::BreakableStringLiteral", %"class.cl…
255 %5 = load i8, i8* %InPPDirective, align 4, !tbaa !34, !range !39