summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 2a4721f2b3b..128a5a78889 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -845,8 +845,8 @@ private:
FormatToken *getNextToken() {
if (GreaterStashed) {
// Create a synthesized second '>' token.
- // FIXME: Increment Column and set OriginalColumn.
Token Greater = FormatTok->Tok;
+ unsigned OriginalColumn = FormatTok->OriginalColumn;
FormatTok = new (Allocator.Allocate()) FormatToken;
FormatTok->Tok = Greater;
SourceLocation GreaterLocation =
@@ -855,6 +855,7 @@ private:
SourceRange(GreaterLocation, GreaterLocation);
FormatTok->TokenText = ">";
FormatTok->ColumnWidth = 1;
+ FormatTok->OriginalColumn = OriginalColumn;
GreaterStashed = false;
return FormatTok;
}
OpenPOWER on IntegriCloud