summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-11-25 10:05:17 +0000
committerDaniel Jasper <djasper@google.com>2014-11-25 10:05:17 +0000
commita98b7b01be4a2d6138c8b9a054e73bea98efa06e (patch)
tree20914a34d103cefcc34d17f70570080f5cd88ced /clang/lib/Format/WhitespaceManager.cpp
parentf1449e99b94fe60f3f05c7166ad03246ece25908 (diff)
downloadbcm5719-llvm-a98b7b01be4a2d6138c8b9a054e73bea98efa06e.tar.gz
bcm5719-llvm-a98b7b01be4a2d6138c8b9a054e73bea98efa06e.zip
clang-format: Refactoring.
Re-apply r222638 and r222641 without variadic templates. llvm-svn: 222747
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
-rw-r--r--clang/lib/Format/WhitespaceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/WhitespaceManager.cpp b/clang/lib/Format/WhitespaceManager.cpp
index 47b94de4c6f..a2f599142df 100644
--- a/clang/lib/Format/WhitespaceManager.cpp
+++ b/clang/lib/Format/WhitespaceManager.cpp
@@ -81,7 +81,7 @@ void WhitespaceManager::replaceWhitespaceInToken(
// FIXME: We still need to take this change in account to properly
// calculate the new length of the comment and to calculate the changes
// for which to do the alignment when aligning comments.
- Tok.Type == TT_LineComment && Newlines > 0 ? tok::comment : tok::unknown,
+ Tok.is(TT_LineComment) && Newlines > 0 ? tok::comment : tok::unknown,
InPPDirective && !Tok.IsFirst));
}
OpenPOWER on IntegriCloud