aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Format/TokenAnnotator.cpp2
-rw-r--r--lib/Format/TokenAnnotator.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp
index 485624b7fa..db059018c2 100644
--- a/lib/Format/TokenAnnotator.cpp
+++ b/lib/Format/TokenAnnotator.cpp
@@ -722,7 +722,7 @@ public:
if (OperatorFound) {
++Start->FakeLParens;
if (Current != NULL)
- ++Current->FakeRParens;
+ ++Current->Parent->FakeRParens;
}
return;
}
diff --git a/lib/Format/TokenAnnotator.h b/lib/Format/TokenAnnotator.h
index dc936e48b5..85e41021c2 100644
--- a/lib/Format/TokenAnnotator.h
+++ b/lib/Format/TokenAnnotator.h
@@ -121,7 +121,7 @@ public:
/// \brief Insert this many fake ( before this token for correct indentation.
unsigned FakeLParens;
- /// \brief Insert this many fake ) before this token for correct indentation.
+ /// \brief Insert this many fake ) after this token for correct indentation.
unsigned FakeRParens;
const AnnotatedToken *getPreviousNoneComment() const {