From e81daee21b6aa9a2f80941103f1a32f36a0b4ec9 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 22 Jan 2014 00:27:42 +0000 Subject: 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! llvm-svn: 199778 --- clang/unittests/AST/DeclPrinterTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/AST/DeclPrinterTest.cpp') diff --git a/clang/unittests/AST/DeclPrinterTest.cpp b/clang/unittests/AST/DeclPrinterTest.cpp index 33c51363e9d..ade55aaee36 100644 --- a/clang/unittests/AST/DeclPrinterTest.cpp +++ b/clang/unittests/AST/DeclPrinterTest.cpp @@ -558,7 +558,7 @@ TEST(DeclPrinter, TestCXXConversionDecl3) { " operator Z();" "};", methodDecl(ofClass(hasName("A"))).bind("id"), - "Z operator struct Z()")); + "Z operator Z()")); // WRONG; Should be: "operator Z();" } -- cgit v1.2.3