This will fix issues raise by Tobias 
(http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140505/104690.html)
Details
Diff Detail
Event Timeline
| unittests/Format/FormatTest.cpp | ||
|---|---|---|
| 4743 ↗ | (On Diff #9103) | This test case is weird, is it taken from real code? I think clang-format might do very strange things to it (as it commonly splits unwrapped lines on the semicolon). Also, it is missing a trailing semicolon and don't you need braces if there are multiple statements in a DEBUG invocation? What are you trying to test? | 
| 4744 ↗ | (On Diff #9103) | I prefer implicitly concatenating string literals after "\n". Makes the tests easier to read for me. I.e., turn this into: verifyFormat("void foo() {\n"
             "  assert(t && \"assert msg\");\n"
             "  (void)F;\n"
             "}");Also, why the function definition and assert? | 
update test cases
| unittests/Format/FormatTest.cpp | ||
|---|---|---|
| 4743 ↗ | (On Diff #9103) | Test string is not quite correct here. Sorry. Update test case. Though I have looked for (void) in llvm code and tried to mimic | 
| 4744 ↗ | (On Diff #9103) | updated. I have looked for (void) in llvm code and tried to mimic | 
| unittests/Format/FormatTest.cpp | ||
|---|---|---|
| 4757–4765 ↗ | (On Diff #9105) | IMO, these don't make sense. They are split into different unwrapped lines and your change can't possibly affect the three lines other than "(void)F;". This file (mostly) contains unit tests, i.e. you should try to test the smallest example that reproduces a specific example. In this case, I think this should simply be: verifyIndependentOfContext("(void)F;"); | 
| unittests/Format/FormatTest.cpp | ||
|---|---|---|
| 4757–4765 ↗ | (On Diff #9105) | current clang-format does not handles just '(void)F;' (void) is treated as Smallest test case may be verifyFormat("{ (void)F; }");Moreover, this is not bug, Tobias has raise issue about change in formatting  before r207961: if (test) {
  (void)WasFastQuery;
  assert(WasFastQuery && "More work to do after problem solved?");
  assert(Found && "Invalid reverse map!");
  (void)Found;
  (void)SimplifyICmpOperands(Cond, LHS, RHS);
}After r207961: if (test) {
  (void) WasFastQuery;
  assert(WasFastQuery && "More work to do after problem solved?");
  assert(Found && "Invalid reverse map!");
  (void) Found;
  (void) SimplifyICmpOperands(Cond, LHS, RHS);
} |