summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-13 16:07:18 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-13 16:07:18 +0000
commitc0629e031ce7f1114eb3a6d0cdc3afc3e3057eb6 (patch)
tree03f9478f8b34f599fe2249449bba181345f30eae /clang/lib
parented58a95c33737ffe52745b3a4c17c8ec0b092402 (diff)
downloadbcm5719-llvm-c0629e031ce7f1114eb3a6d0cdc3afc3e3057eb6.tar.gz
bcm5719-llvm-c0629e031ce7f1114eb3a6d0cdc3afc3e3057eb6.zip
Document CheckObjCMethodOverrides
llvm-svn: 132917
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index de9097e98b4..bfa2ef45d08 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud