diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-06-24 01:33:34 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-06-24 01:33:34 +0000 |
commit | c0510b9c970fff35a8ebca89a318403a4b8be6bf (patch) | |
tree | ee33b6462b044f44ca5665e3c9767be0bfead61c | |
parent | 761f801cb2e1d0e07a194a24ad9d2a9cf6e8e694 (diff) | |
download | bcm5719-llvm-c0510b9c970fff35a8ebca89a318403a4b8be6bf.tar.gz bcm5719-llvm-c0510b9c970fff35a8ebca89a318403a4b8be6bf.zip |
Move comment on Sema::isFunctionPointerVarDecl() to the header file
llvm-svn: 184677
-rw-r--r-- | clang/include/clang/AST/CommentSema.h | 3 | ||||
-rw-r--r-- | clang/lib/AST/CommentSema.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/clang/include/clang/AST/CommentSema.h b/clang/include/clang/AST/CommentSema.h index 21d3add0ef0..c6b59bb11b7 100644 --- a/clang/include/clang/AST/CommentSema.h +++ b/clang/include/clang/AST/CommentSema.h @@ -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(); diff --git a/clang/lib/AST/CommentSema.cpp b/clang/lib/AST/CommentSema.cpp index 00e47225c92..55ccfb339d6 100644 --- a/clang/lib/AST/CommentSema.cpp +++ b/clang/lib/AST/CommentSema.cpp @@ -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; |