[cfe-commits] r172314 - /cfe/trunk/lib/Format/Format.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sat Jan 12 06:22:42 PST 2013
Author: rafael
Date: Sat Jan 12 08:22:42 2013
New Revision: 172314
URL: http://llvm.org/viewvc/llvm-project?rev=172314&view=rev
Log:
Remove unused private field.
Modified:
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=172314&r1=172313&r2=172314&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Sat Jan 12 08:22:42 2013
@@ -192,13 +192,11 @@
public:
UnwrappedLineFormatter(const FormatStyle &Style, SourceManager &SourceMgr,
const UnwrappedLine &Line, unsigned FirstIndent,
- bool FitsOnALine, LineType CurrentLineType,
- const AnnotatedToken &RootToken,
+ bool FitsOnALine, const AnnotatedToken &RootToken,
tooling::Replacements &Replaces, bool StructuralError)
: Style(Style), SourceMgr(SourceMgr), Line(Line),
FirstIndent(FirstIndent), FitsOnALine(FitsOnALine),
- CurrentLineType(CurrentLineType), RootToken(RootToken),
- Replaces(Replaces) {
+ RootToken(RootToken), Replaces(Replaces) {
Parameters.PenaltyIndentLevel = 15;
Parameters.PenaltyLevelDecrease = 30;
Parameters.PenaltyExcessCharacter = 1000000;
@@ -587,7 +585,6 @@
const UnwrappedLine &Line;
const unsigned FirstIndent;
const bool FitsOnALine;
- const LineType CurrentLineType;
const AnnotatedToken &RootToken;
tooling::Replacements &Replaces;
@@ -1337,8 +1334,7 @@
I, E);
UnwrappedLineFormatter Formatter(
Style, SourceMgr, Line, Indent, FitsOnALine,
- AnnotatedLine->getLineType(), AnnotatedLine->getRootToken(),
- Replaces, StructuralError);
+ AnnotatedLine->getRootToken(), Replaces, StructuralError);
PreviousEndOfLineColumn = Formatter.format();
} else {
// If we did not reformat this unwrapped line, the column at the end of
More information about the cfe-commits
mailing list