reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/lib/Format/AffectedRangeManager.h
   23 class AnnotatedLine;
tools/clang/lib/Format/ContinuationIndenter.h
   30 class AnnotatedLine;
tools/clang/lib/Format/FormatToken.h
  125 class AnnotatedLine;

References

tools/clang/lib/Format/AffectedRangeManager.cpp
   23     SmallVectorImpl<AnnotatedLine *> &Lines) {
   24   SmallVectorImpl<AnnotatedLine *>::iterator I = Lines.begin();
   25   SmallVectorImpl<AnnotatedLine *>::iterator E = Lines.end();
   27   const AnnotatedLine *PreviousLine = nullptr;
   29     AnnotatedLine *Line = *I;
   36       SmallVectorImpl<AnnotatedLine *>::iterator PPEnd = I + 1;
   92     SmallVectorImpl<AnnotatedLine *>::iterator I,
   93     SmallVectorImpl<AnnotatedLine *>::iterator E) {
  102     AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
  102     AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
  103     SmallVectorImpl<AnnotatedLine *> &Lines) {
tools/clang/lib/Format/AffectedRangeManager.h
   34   bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *> &Lines);
   50   void markAllAsAffected(SmallVectorImpl<AnnotatedLine *>::iterator I,
   51                          SmallVectorImpl<AnnotatedLine *>::iterator E);
   55   bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
   55   bool nonPPLineAffected(AnnotatedLine *Line, const AnnotatedLine *PreviousLine,
   56                          SmallVectorImpl<AnnotatedLine *> &Lines);
tools/clang/lib/Format/ContinuationIndenter.cpp
  237                                                 const AnnotatedLine *Line,
tools/clang/lib/Format/ContinuationIndenter.h
   66                             const AnnotatedLine *Line, bool DryRun);
  424   const AnnotatedLine *Line;
tools/clang/lib/Format/Format.cpp
 1251           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
 1262   void requoteJSStringLiteral(SmallVectorImpl<AnnotatedLine *> &Lines,
 1264     for (AnnotatedLine *Line : Lines) {
 1339           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
 1377   hasCpp03IncompatibleFormat(const SmallVectorImpl<AnnotatedLine *> &Lines) {
 1378     for (const AnnotatedLine *Line : Lines) {
 1394   int countVariableAlignments(const SmallVectorImpl<AnnotatedLine *> &Lines) {
 1396     for (const AnnotatedLine *Line : Lines) {
 1415   deriveLocalStyle(const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
 1458           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
 1471     for (auto *Line : AnnotatedLines)
 1478   void cleanupLine(AnnotatedLine *Line) {
 1479     for (auto *Child : Line->Children) {
 1494   bool containsOnlyComments(const AnnotatedLine &Line) {
 1503   void checkEmptyNamespace(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
 1506       auto &Line = *AnnotatedLines[i];
 1525   bool checkEmptyNamespace(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
 1681           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
 1695               const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
tools/clang/lib/Format/FormatToken.h
  302   SmallVector<AnnotatedLine *, 1> Children;
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp
  155 getNamespaceToken(const AnnotatedLine *Line,
  156                   const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
  174 getNamespaceTokenText(const AnnotatedLine *Line,
  175                       const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
  185     TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
  195     const AnnotatedLine *EndLine = AnnotatedLines[I];
tools/clang/lib/Format/NamespaceEndCommentsFixer.h
   30 getNamespaceToken(const AnnotatedLine *Line,
   31                   const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines);
   39           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
tools/clang/lib/Format/SortJavaScriptImports.cpp
  127           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
  134     AnnotatedLine *FirstNonImportLine;
  281     AnnotatedLine *FirstNonImportLine = nullptr;
tools/clang/lib/Format/TokenAnalyzer.cpp
   77     SmallVector<AnnotatedLine *, 16> AnnotatedLines;
   81       AnnotatedLines.push_back(new AnnotatedLine(UnwrappedLines[Run][i]));
tools/clang/lib/Format/TokenAnalyzer.h
   89           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
tools/clang/lib/Format/TokenAnnotator.cpp
   66   AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
 1785   AnnotatedLine &Line;
 1805                    AnnotatedLine &Line)
 2002     SmallVectorImpl<AnnotatedLine *> &Lines) {
 2003   const AnnotatedLine *NextNonCommentLine = nullptr;
 2004   for (SmallVectorImpl<AnnotatedLine *>::reverse_iterator I = Lines.rbegin(),
 2038 static unsigned maxNestingDepth(const AnnotatedLine &Line) {
 2045 void TokenAnnotator::annotate(AnnotatedLine &Line) {
 2046   for (SmallVectorImpl<AnnotatedLine *>::iterator I = Line.Children.begin(),
 2081                                       const AnnotatedLine &Line) {
 2159 bool TokenAnnotator::mustBreakForReturnType(const AnnotatedLine &Line) const {
 2182 void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) {
 2183   for (SmallVectorImpl<AnnotatedLine *>::iterator I = Line.Children.begin(),
 2297 void TokenAnnotator::calculateUnbreakableTailLengths(AnnotatedLine &Line) {
 2313 unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line,
 2511 bool TokenAnnotator::spaceRequiredBetween(const AnnotatedLine &Line,
 2712 bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
 2993 bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
 3262 bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line,
 3537 void TokenAnnotator::printDebugInfo(const AnnotatedLine &Line) {
tools/clang/lib/Format/TokenAnnotator.h
   64         Children.push_back(new AnnotatedLine(Child));
  125   SmallVector<AnnotatedLine *, 0> Children;
  151   AnnotatedLine(const AnnotatedLine &) = delete;
  152   void operator=(const AnnotatedLine &) = delete;
  165   void setCommentLineLevels(SmallVectorImpl<AnnotatedLine *> &Lines);
  167   void annotate(AnnotatedLine &Line);
  168   void calculateFormattingInformation(AnnotatedLine &Line);
  172   unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok,
  177   bool spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left,
  180   bool spaceRequiredBefore(const AnnotatedLine &Line, const FormatToken &Right);
  182   bool mustBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
  184   bool canBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
  186   bool mustBreakForReturnType(const AnnotatedLine &Line) const;
  188   void printDebugInfo(const AnnotatedLine &Line);
  190   void calculateUnbreakableTailLengths(AnnotatedLine &Line);
tools/clang/lib/Format/UnwrappedLineFormatter.cpp
   22 bool startsExternCBlock(const AnnotatedLine &Line) {
   53   void nextLine(const AnnotatedLine &Line) {
   71   void skipLine(const AnnotatedLine &Line) {
   81   void adjustToUnmodifiedLine(const AnnotatedLine &Line) {
  138     const AnnotatedLine *Line,
  139     const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
  149 StringRef getNamespaceTokenText(const AnnotatedLine *Line) {
  155     const AnnotatedLine *Line,
  156     const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines) {
  165              const SmallVectorImpl<AnnotatedLine *> &Lines)
  170   const AnnotatedLine *getNextMergedLine(bool DryRun,
  174     const AnnotatedLine *Current = *Next;
  194                            SmallVectorImpl<AnnotatedLine *>::const_iterator I,
  195                            SmallVectorImpl<AnnotatedLine *>::const_iterator E) {
  202     const AnnotatedLine *TheLine = *I;
  412   tryMergeSimplePPDirective(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
  413                             SmallVectorImpl<AnnotatedLine *>::const_iterator E,
  425       SmallVectorImpl<AnnotatedLine *>::const_iterator I,
  426       SmallVectorImpl<AnnotatedLine *>::const_iterator E, unsigned Limit) {
  438     AnnotatedLine &Line = **I;
  456   tryMergeShortCaseLabels(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
  457                           SmallVectorImpl<AnnotatedLine *>::const_iterator E,
  472       const AnnotatedLine *Line = I[1 + NumStmts];
  484         SmallVectorImpl<AnnotatedLine *>::const_iterator J = I + 2 + NumStmts;
  506   tryMergeSimpleBlock(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
  507                       SmallVectorImpl<AnnotatedLine *>::const_iterator E,
  509     AnnotatedLine &Line = **I;
  658   limitConsideringMacros(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
  659                          SmallVectorImpl<AnnotatedLine *>::const_iterator E,
  668   bool nextTwoLinesFitInto(SmallVectorImpl<AnnotatedLine *>::const_iterator I,
  675   bool containsMustBreak(const AnnotatedLine *Line) {
  683   void join(AnnotatedLine &A, const AnnotatedLine &B) {
  683   void join(AnnotatedLine &A, const AnnotatedLine &B) {
  700   const SmallVectorImpl<AnnotatedLine *>::const_iterator End;
  702   SmallVectorImpl<AnnotatedLine *>::const_iterator Next;
  703   const SmallVectorImpl<AnnotatedLine *> &AnnotatedLines;
  709     for (AnnotatedLine *Child : Tok->Children)
  738   virtual unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
  793     const AnnotatedLine *Child = Previous.Children[0];
  835   unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
  861   unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
  886   unsigned formatLine(const AnnotatedLine &Line, unsigned FirstIndent,
 1055     const SmallVectorImpl<AnnotatedLine *> &Lines, bool DryRun,
 1061   std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned> CacheKey(
 1071   const AnnotatedLine *PreviousLine = nullptr;
 1072   const AnnotatedLine *NextLine = nullptr;
 1078   for (const AnnotatedLine *Line =
 1081     const AnnotatedLine &TheLine = *Line;
 1178     const AnnotatedLine &Line, const AnnotatedLine *PreviousLine,
 1178     const AnnotatedLine &Line, const AnnotatedLine *PreviousLine,
 1179     const SmallVectorImpl<AnnotatedLine *> &Lines, unsigned Indent,
 1245                                        const AnnotatedLine *NextLine) const {
tools/clang/lib/Format/UnwrappedLineFormatter.h
   40   unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines,
   48   void formatFirstToken(const AnnotatedLine &Line,
   49                         const AnnotatedLine *PreviousLine,
   50                         const SmallVectorImpl<AnnotatedLine *> &Lines,
   56                           const AnnotatedLine *NextLine) const;
   61   std::map<std::pair<const SmallVectorImpl<AnnotatedLine *> *, unsigned>,
tools/clang/lib/Format/UsingDeclarationsSorter.cpp
   68   const AnnotatedLine *Line;
   71   UsingDeclaration(const AnnotatedLine *Line, const std::string &Label)
  185     TokenAnnotator &Annotator, SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,
tools/clang/lib/Format/UsingDeclarationsSorter.h
   29           SmallVectorImpl<AnnotatedLine *> &AnnotatedLines,