]> granicus.if.org Git - clang/commitdiff
Testing, 1, 2, 3...
authorCharles Davis <cdavis@mines.edu>
Fri, 5 Feb 2010 17:53:51 +0000 (17:53 +0000)
committerCharles Davis <cdavis@mines.edu>
Fri, 5 Feb 2010 17:53:51 +0000 (17:53 +0000)
Also make the comments I added in r95291 consistent.

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

lib/Sema/SemaDeclAttr.cpp

index 5e7788ef40fe85f37ae85851b30fb72702aa88f6..681a3b7813ab9921b8c49697914980ea5b87d2f2 100644 (file)
@@ -987,7 +987,8 @@ static void HandleStdCallAttr(Decl *d, const AttributeList &Attr, Sema &S) {
 
   // Attribute can be applied only to functions.
   // If we try to apply it to a function pointer, don't warn, but don't
-  // do anything, either.
+  // do anything, either. All the function-pointer stuff is handled in
+  // SemaType.cpp.
   ValueDecl *VD = dyn_cast<ValueDecl>(d);
   if (VD && VD->getType()->isFunctionPointerType())
     return;
@@ -1031,7 +1032,8 @@ static void HandleFastCallAttr(Decl *d, const AttributeList &Attr, Sema &S) {
   }
 
   // If we try to apply it to a function pointer, don't warn, but don't
-  // do anything, either.
+  // do anything, either. All the function-pointer stuff is handled in
+  // SemaType.cpp.
   ValueDecl *VD = dyn_cast<ValueDecl>(d);
   if (VD && VD->getType()->isFunctionPointerType())
     return;