diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-23 19:03:25 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-23 19:03:25 +0000 |
commit | 7198b0c77897f32f4ae28e3eee48b09f99876293 (patch) | |
tree | 959aee4fdd9386fd92bacf90e19b4c4f83526ebd /clang/lib/Format/WhitespaceManager.cpp | |
parent | 616de864da6ae41d08c5baf40f35c7307b21fd95 (diff) | |
download | bcm5719-llvm-7198b0c77897f32f4ae28e3eee48b09f99876293.tar.gz bcm5719-llvm-7198b0c77897f32f4ae28e3eee48b09f99876293.zip |
clang-format: Refactoring.
Provide more overloads to simplify testing the type of a token. No
functional changes intended.
llvm-svn: 222638
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
-rw-r--r-- | clang/lib/Format/WhitespaceManager.cpp | 2 |
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)); } |