Correctly detect colon in bit fields. Fixes PR17333.
authorAlexander Kornienko <alexfh@google.com>
Thu, 10 Oct 2013 13:36:20 +0000 (13:36 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 10 Oct 2013 13:36:20 +0000 (13:36 +0000)
commit60d1b046dd3f24bacd6f4dc2acd1c033d668de86
tree49e6e6e5b9548e24d13911117b0d1276b42023ec
parent20a6a436ae4742a44747ef534be32f97ebf5ff50
Correctly detect colon in bit fields. Fixes PR17333.

Summary: Colon was incorrectly detected as a start of inheritance list. Fixed.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1884

llvm-svn: 192349
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp