diff options
| author | Daniel Jasper <djasper@google.com> | 2014-07-28 12:08:16 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-07-28 12:08:16 +0000 |
| commit | 2ac3fdfd4af9c3424afa917f0ef6086fbd1008af (patch) | |
| tree | 66b197af7c9e6653457d6821a0959d8562811a6a /clang/lib/Format | |
| parent | 8b76d608b8eaf24ec2ad80dd7b06db0edc9365cf (diff) | |
| download | bcm5719-llvm-2ac3fdfd4af9c3424afa917f0ef6086fbd1008af.tar.gz bcm5719-llvm-2ac3fdfd4af9c3424afa917f0ef6086fbd1008af.zip | |
clang-format: Fix unary operator recognition.
Before:
int x = ~ * p;
After:
int x = ~*p;
llvm-svn: 214070
Diffstat (limited to 'clang/lib/Format')
| -rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 5f8ce797469..1ef9d1f6fee 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -755,7 +755,7 @@ private: Contexts.back().CaretFound = true; } else if (Current.isOneOf(tok::minusminus, tok::plusplus)) { Current.Type = determineIncrementUsage(Current); - } else if (Current.is(tok::exclaim)) { + } else if (Current.isOneOf(tok::exclaim, tok::tilde)) { Current.Type = TT_UnaryOperator; } else if (Current.is(tok::question)) { Current.Type = TT_ConditionalExpr; |

