]> granicus.if.org Git - clang/commit
Fixes PR14811: Crash when formatting some macros
authorManuel Klimek <klimek@google.com>
Sat, 5 Jan 2013 21:34:55 +0000 (21:34 +0000)
committerManuel Klimek <klimek@google.com>
Sat, 5 Jan 2013 21:34:55 +0000 (21:34 +0000)
commit6f8424b79863fc9810393c95ecdee97895ab6f26
treef16e8af4f0eee195c64c0f16a18911cb14049fdd
parentd8180cf9877cd793949ae94edbf2ee84341041c5
Fixes PR14811: Crash when formatting some macros

A preprocessor directive cannot be started while we're parsing one.

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