diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-06-13 16:07:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-06-13 16:07:18 +0000 |
commit | 05a2e9459baa92ab0b739fc31411660ca9d9ec99 (patch) | |
tree | 1ac4b6ff7011e39328ea3dc915bc78e1f825be99 /lib/Sema/SemaDeclObjC.cpp | |
parent | db11b0187bafe77263036eafc3977fa5da3bcf1a (diff) |
Document CheckObjCMethodOverrides
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index de9097e98b..bfa2ef45d0 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -73,7 +73,15 @@ bool Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, return false; } - +/// \brief Check for consistency between a given method declaration and the +/// methods it overrides within the class hierarchy. +/// +/// This method walks the inheritance hierarchy starting at the given +/// declaration context (\p DC), invoking Sema::CheckObjCMethodOverride() with +/// the given new method (\p NewMethod) and any method it directly overrides +/// in the hierarchy. Sema::CheckObjCMethodOverride() is responsible for +/// checking consistency, e.g., among return types for methods that return a +/// related result type. static bool CheckObjCMethodOverrides(Sema &S, ObjCMethodDecl *NewMethod, DeclContext *DC, bool SkipCurrent = true) { |