]> granicus.if.org Git - clang/commit
Do not ever allow using the full line in preprocessor directives.
authorManuel Klimek <klimek@google.com>
Mon, 7 Jan 2013 09:24:17 +0000 (09:24 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 7 Jan 2013 09:24:17 +0000 (09:24 +0000)
commitd544c574ccbcbfcb5b3c3edd19956143826008cf
treef0ae6671f751d5efe12dd0a53324157fd8d105b4
parent6cf581436e9e59a18f6a362027a69eaaa9b67597
Do not ever allow using the full line in preprocessor directives.

We would format:
  #define A \
    int f(a); int i;
as
  #define A \
    int f(a);\
    int i

The fix will break up macro definitions that could fit a line, but hit
the last column; fixing that is more involved, though, as it requires
looking at the following line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171715 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp