r201294 - There is no std namespace for standards-based attributes. Removing the scope qualifier and updating the only affected test case.
Aaron Ballman
aaron at aaronballman.com
Wed Feb 12 20:31:04 PST 2014
Author: aaronballman
Date: Wed Feb 12 22:31:04 2014
New Revision: 201294
URL: http://llvm.org/viewvc/llvm-project?rev=201294&view=rev
Log:
There is no std namespace for standards-based attributes. Removing the scope qualifier and updating the only affected test case.
Modified:
cfe/trunk/include/clang/Basic/Attr.td
cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp
Modified: cfe/trunk/include/clang/Basic/Attr.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=201294&r1=201293&r2=201294&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Attr.td (original)
+++ cfe/trunk/include/clang/Basic/Attr.td Wed Feb 12 22:31:04 2014
@@ -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>;
}
Modified: cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp?rev=201294&r1=201293&r2=201294&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx11-attr-print.cpp Wed Feb 12 22:31:04 2014
@@ -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));
More information about the cfe-commits
mailing list