Allow splitting between string literals and identifiers.
authorDaniel Jasper <djasper@google.com>
Sat, 23 Feb 2013 07:46:38 +0000 (07:46 +0000)
committerDaniel Jasper <djasper@google.com>
Sat, 23 Feb 2013 07:46:38 +0000 (07:46 +0000)
commitaf5ba0ed8cb742475d8de6c6f4e5718b8ebbf34c
tree89e6dbdab2bb18d20b70e9334d483f42cb072e64
parent4e80d9e853b15e4386d921fb889b1ce8769cc27f
Allow splitting between string literals and identifiers.

Also don't break in long include directives as that is not desired.

We can now format:

  #include "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  #define LL_FORMAT "ll"
  printf("aaaaa: %d, bbbbbbbbb: %" LL_FORMAT "d, cccccccc: %" LL_FORMAT
         "d, ddddddddd: %" LL_FORMAT "d\n");

Before, this led to weird results.

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