aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Sema
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2013-03-19 07:04:25 +0000
committerJohn McCall <rjmccall@apple.com>2013-03-19 07:04:25 +0000
commit7cca821e1acf0f1b4fe892c3111bfb2086832e4e (patch)
tree52d32c5d35d69267c5b5ea16f7e5e6e89a55c6fb /include/clang/Sema
parenta5a3e01c504c00b1860286540090695ec0167531 (diff)
Add a clarifying note when a return statement is rejected because
we expect a related result type. rdar://12493140 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema')
-rw-r--r--include/clang/Sema/Sema.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h
index 9205e2a4a8..3f3fcb57a1 100644
--- a/include/clang/Sema/Sema.h
+++ b/include/clang/Sema/Sema.h
@@ -7026,6 +7026,11 @@ public:
/// with a related result type, emit a note describing what happened.
void EmitRelatedResultTypeNote(const Expr *E);
+ /// \brief Given that we had incompatible pointer types in a return
+ /// statement, check whether we're in a method with a related result
+ /// type, and if so, emit a note describing what happened.
+ void EmitRelatedResultTypeNoteForReturn(QualType destType);
+
/// CheckBooleanCondition - Diagnose problems involving the use of
/// the given expression as a boolean condition (e.g. in an if
/// statement). Also performs the standard function and array