Implement C++11 semantics for [[noreturn]] attribute. This required splitting
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jan 2013 01:30:42 +0000 (01:30 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jan 2013 01:30:42 +0000 (01:30 +0000)
commit10876ef5714f95abf4f7cd271f288a811be370e9
tree1b37adc55e48f9f7b045f876fc35f1e749ed448a
parentc406cb73648483276b6c938ab5ff6812c3fbcad9
Implement C++11 semantics for [[noreturn]] attribute. This required splitting
it apart from [[gnu::noreturn]] / __attribute__((noreturn)), since their
semantics are not equivalent (for instance, we treat [[gnu::noreturn]] as
affecting the function type, whereas [[noreturn]] does not).

llvm-svn: 172691
24 files changed:
clang/include/clang/AST/Decl.h
clang/include/clang/AST/Type.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/AST/Decl.cpp
clang/lib/Analysis/CFG.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Parse/Parser.cpp
clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Sema/SemaType.cpp
clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.noreturn/p1.cpp [new file with mode: 0644]
clang/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp
clang/test/CXX/expr/expr.prim/expr.prim.lambda/templates.cpp
clang/test/CodeGenCXX/cxx11-noreturn.cpp [new file with mode: 0644]
clang/test/Parser/cxx0x-attributes.cpp
clang/test/Parser/objcxx11-attributes.mm