diff options
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 55107765f1f..e0a05b64ecc 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -556,7 +556,7 @@ private: if (!DryRun) { unsigned NewLines = 1; - if (Current.Type == TT_LineComment) + if (Current.is(tok::comment)) NewLines = std::max( NewLines, std::min(Current.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1)); |