diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td index e91e1cab36ea..0ed154eef8a9 100644 --- a/include/clang/Basic/Attr.td +++ b/include/clang/Basic/Attr.td @@ -364,8 +364,7 @@ def Bounded : IgnoredAttr { } def CarriesDependency : InheritableParamAttr { - let Spellings = [GNU<"carries_dependency">, CXX11<"","carries_dependency">, - CXX11<"std","carries_dependency">]; + let Spellings = [GNU<"carries_dependency">, CXX11<"","carries_dependency">]; let Subjects = SubjectList<[ParmVar, ObjCMethod, Function], ErrorDiag>; } @@ -480,7 +479,7 @@ def C11NoReturn : InheritableAttr { } def CXX11NoReturn : InheritableAttr { - let Spellings = [CXX11<"","noreturn">, CXX11<"std","noreturn">]; + let Spellings = [CXX11<"","noreturn">]; let Subjects = SubjectList<[Function], ErrorDiag>; } diff --git a/test/SemaCXX/cxx11-attr-print.cpp b/test/SemaCXX/cxx11-attr-print.cpp index 01325d3c8bf3..999eaed61802 100644 --- a/test/SemaCXX/cxx11-attr-print.cpp +++ b/test/SemaCXX/cxx11-attr-print.cpp @@ -42,9 +42,6 @@ int f3 [[gnu::warn_unused_result]] (); // CHECK: {{\[}}[noreturn]]; void f4 [[noreturn]] (); -// CHECK: {{\[}}[std::noreturn]]; -void f5 [[std::noreturn]] (); - // CHECK: __attribute__((gnu_inline)); inline void f6() __attribute__((gnu_inline));