]> granicus.if.org Git - clang/commit
When formatting a C++-only declaration name, enable C++ mode in the formatter's
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 22 Jan 2014 00:27:42 +0000 (00:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 22 Jan 2014 00:27:42 +0000 (00:27 +0000)
commitf2af1730519be7c1742a0e78c1b7d83bcfbeb8b7
tree412412ca07fbcc6334f5e64b5ec3007cdec4394f
parentd7a617aada79c73b283490c6e5699f5ac345d402
When formatting a C++-only declaration name, enable C++ mode in the formatter's
language options. This is not really ideal -- we should require the right
language options to be passed in, or not require language options to format a
name -- but it fixes a number of *obviously* wrong formattings. Patch by
Olivier Goffart!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclarationName.cpp
test/CXX/class.access/p4.cpp
test/CXX/class.access/p6.cpp
test/CXX/special/class.dtor/p10-0x.cpp
test/Index/load-classes.cpp
test/SemaCXX/undefined-internal.cpp
unittests/AST/DeclPrinterTest.cpp