Before:
int x = ~ * p;
After:
int x = ~*p;
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214070
91177308-0d34-0410-b5e6-
96231b3b80d8
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;
verifyIndependentOfContext("typedef void (*f)(int *a);");
verifyIndependentOfContext("int i{a * b};");
verifyIndependentOfContext("aaa && aaa->f();");
+ verifyIndependentOfContext("int x = ~*p;");
verifyIndependentOfContext("InvalidRegions[*R] = 0;");