]> granicus.if.org Git - clang/commit
Preserve newlines before block comments in static initializers.
authorAlexander Kornienko <alexfh@google.com>
Wed, 12 Jun 2013 19:04:12 +0000 (19:04 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 12 Jun 2013 19:04:12 +0000 (19:04 +0000)
commite3f1197cad5cda243093e8b39caa43f13111de89
treee65a2eb2e3af0a728b7594ae1a5e12ade5fd149b
parent1342a4ef62dd7b839c6f09348b246a4f00282f29
Preserve newlines before block comments in static initializers.

Summary:
Basically, don't special-case line comments in this regard. And fixed
an incorrect test, that relied on the wrong behavior.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D962

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