]> granicus.if.org Git - clang/commit
Fixed handling of comments before preprocessor directives.
authorAlexander Kornienko <alexfh@google.com>
Thu, 28 Mar 2013 18:40:55 +0000 (18:40 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 28 Mar 2013 18:40:55 +0000 (18:40 +0000)
commit9fdc00a237fe19b892f22780321ddfd1a3691d61
tree0a9bbb21f6f5324cc394d90e85600f86ca8a35ef
parent03852c8717b45ece934f7740a100de526a734641
Fixed handling of comments before preprocessor directives.

Comments before preprocessor directives used to be stored with InPPDirective
flag set, which prevented correct comment splitting in this case. Fixed by
flushing comments before switching on InPPDirective. Added a new test and fixed
one of the existing tests.

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