clang-format: Improve expression heuristics.
authorDaniel Jasper <djasper@google.com>
Mon, 30 Jun 2014 13:44:47 +0000 (13:44 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 30 Jun 2014 13:44:47 +0000 (13:44 +0000)
commit91beebd04ae90a5f637e080ddf7a340c9c7eb000
tree325342482a6f61ca26b2203e021f871a23d6b08c
parentae82987cf8f64baafeff49e0446252d0f5db0268
clang-format: Improve expression heuristics.

Upon encountering a binary operator inside parentheses, assume that the
parentheses contain an expression.

Before:
  MACRO('0' <= c&& c <= '9');

After:
  MACRO('0' <= c && c <= '9');

llvm-svn: 212040
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp