]> granicus.if.org Git - clang/commit
Fixes use of unescaped newlines when formatting preprocessor directives.
authorManuel Klimek <klimek@google.com>
Wed, 2 Jan 2013 16:30:12 +0000 (16:30 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 2 Jan 2013 16:30:12 +0000 (16:30 +0000)
commita080a187fa7e538da3212c7d5e678e4b7ae03253
tree5a2c54db0a6a2ec4e1764cea7c7080d6898b8d84
parentef5b9c3d38a1f6d0921591cb2749e529a8cc4a2e
Fixes use of unescaped newlines when formatting preprocessor directives.

This is the first step towards handling preprocessor directives. This
patch only fixes the most pressing issue, namely correctly escaping
newlines for tokens within a sequence of a preprocessor directive.

The next step will be to fix incorrect format decisions on #define
directives.

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