From 9b7cee666bd597defea1eed6b202264e9a93a7ae Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 19 Dec 2014 18:37:22 +0000 Subject: Added a fixit to remove empty parens from a C++11 attribute argument list when we diagnose this as an error. llvm-svn: 224595 --- clang/test/SemaCXX/attr-cxx0x-fixit.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 clang/test/SemaCXX/attr-cxx0x-fixit.cpp (limited to 'clang/test') diff --git a/clang/test/SemaCXX/attr-cxx0x-fixit.cpp b/clang/test/SemaCXX/attr-cxx0x-fixit.cpp new file mode 100644 index 00000000000..6a6cdc11288 --- /dev/null +++ b/clang/test/SemaCXX/attr-cxx0x-fixit.cpp @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits -std=c++11 %s 2>&1 | FileCheck %s + +[[noreturn()]] void f(); // expected-error {{attribute 'noreturn' cannot have an argument list}} \ +// CHECK: fix-it:"{{.*}}":{4:11-4:13}:"" -- cgit v1.2.3