]> granicus.if.org Git - clang/commitdiff
Add comment indicating that we intentionally don't add the noreturn
authorTed Kremenek <kremenek@apple.com>
Fri, 26 Mar 2010 22:57:10 +0000 (22:57 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 26 Mar 2010 22:57:10 +0000 (22:57 +0000)
attribute to a FunctionDecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99662 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index a81ad768b8c31426b6e25d12e3a9cc55e08a5616..b3041129dba5265640e438b8c7d71be50959d5cb 100644 (file)
@@ -490,6 +490,9 @@ static bool HandleCommonNoReturnAttr(Decl *d, const AttributeList &Attr,
 }
 
 static void HandleNoReturnAttr(Decl *d, const AttributeList &Attr, Sema &S) {
+  // NOTE: We don't add the attribute to a FunctionDecl because the noreturn
+  //  trait will be part of the function's type.
+
   // Don't apply as a decl attribute to ValueDecl.
   // FIXME: probably ought to diagnose this.
   if (isa<ValueDecl>(d))