Quellcode durchsuchen

Move comment on Sema::isFunctionPointerVarDecl() to the header file

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184677 91177308-0d34-0410-b5e6-96231b3b80d8
Dmitri Gribenko vor 12 Jahren
Ursprung
Commit
a558d2e298
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 3 0
      include/clang/AST/CommentSema.h
  2. 1 3
      lib/AST/CommentSema.cpp

+ 3 - 0
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();

+ 1 - 3
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;