r184677 - Move comment on Sema::isFunctionPointerVarDecl() to the header file
Dmitri Gribenko
gribozavr at gmail.com
Sun Jun 23 18:33:35 PDT 2013
Author: gribozavr
Date: Sun Jun 23 20:33:34 2013
New Revision: 184677
URL: http://llvm.org/viewvc/llvm-project?rev=184677&view=rev
Log:
Move comment on Sema::isFunctionPointerVarDecl() to the header file
Modified:
cfe/trunk/include/clang/AST/CommentSema.h
cfe/trunk/lib/AST/CommentSema.cpp
Modified: cfe/trunk/include/clang/AST/CommentSema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/CommentSema.h?rev=184677&r1=184676&r2=184677&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/CommentSema.h (original)
+++ cfe/trunk/include/clang/AST/CommentSema.h Sun Jun 23 20:33:34 2013
@@ -208,6 +208,9 @@ public:
bool isFunctionDecl();
bool isAnyFunctionDecl();
+
+ /// \returns \c true if declaration that this comment is attached to declares
+ /// a function pointer.
bool isFunctionPointerVarDecl();
bool isObjCMethodDecl();
bool isObjCPropertyDecl();
Modified: cfe/trunk/lib/AST/CommentSema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CommentSema.cpp?rev=184677&r1=184676&r2=184677&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CommentSema.cpp (original)
+++ cfe/trunk/lib/AST/CommentSema.cpp Sun Jun 23 20:33:34 2013
@@ -801,9 +801,7 @@ bool Sema::isObjCMethodDecl() {
return isFunctionDecl() && ThisDeclInfo->CurrentDecl &&
isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl);
}
-
-/// isFunctionPointerVarDecl - returns 'true' if declaration is a pointer to
-/// function decl.
+
bool Sema::isFunctionPointerVarDecl() {
if (!ThisDeclInfo)
return false;
More information about the cfe-commits
mailing list