diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-10-21 15:46:57 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-10-21 15:46:57 +0000 |
| commit | 953e985ed02617ee01b32c77ce4ac8b3bc21fb81 (patch) | |
| tree | 024888f300f764e250c12b06a46c06cff0028933 | |
| parent | 79e23cb9724561b9c103c39f04311ffe0acdf6c6 (diff) | |
| download | bcm5719-llvm-953e985ed02617ee01b32c77ce4ac8b3bc21fb81.tar.gz bcm5719-llvm-953e985ed02617ee01b32c77ce4ac8b3bc21fb81.zip | |
The nodebug attribute has a C++11-style spelling supported by GCC as well. This modifies it so we support that spelling as well.
llvm-svn: 220297
| -rw-r--r-- | clang/include/clang/Basic/Attr.td | 2 | ||||
| -rw-r--r-- | clang/test/SemaCXX/attr-nodebug.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td index cc9629334c3..012988b9327 100644 --- a/clang/include/clang/Basic/Attr.td +++ b/clang/include/clang/Basic/Attr.td @@ -835,7 +835,7 @@ def NoCommon : InheritableAttr { } def NoDebug : InheritableAttr { - let Spellings = [GNU<"nodebug">]; + let Spellings = [GCC<"nodebug">]; let Documentation = [Undocumented]; } diff --git a/clang/test/SemaCXX/attr-nodebug.cpp b/clang/test/SemaCXX/attr-nodebug.cpp index b441da21f8e..fd35722f62b 100644 --- a/clang/test/SemaCXX/attr-nodebug.cpp +++ b/clang/test/SemaCXX/attr-nodebug.cpp @@ -1,7 +1,9 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only +// RUN: %clang_cc1 %s -std=c++11 -verify -fsyntax-only // Note: most of the 'nodebug' tests are in attr-nodebug.c. // expected-no-diagnostics class c { void t3() __attribute__((nodebug)); }; + +[[gnu::nodebug]] void f() {} |

