[cfe-commits] r95394 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Charles Davis
cdavis at mines.edu
Fri Feb 5 09:53:51 PST 2010
Author: cdavis
Date: Fri Feb 5 11:53:51 2010
New Revision: 95394
URL: http://llvm.org/viewvc/llvm-project?rev=95394&view=rev
Log:
Testing, 1, 2, 3...
Also make the comments I added in r95291 consistent.
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=95394&r1=95393&r2=95394&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Fri Feb 5 11:53:51 2010
@@ -987,7 +987,8 @@
// 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 @@
}
// 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;
More information about the cfe-commits
mailing list