diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-06 16:29:26 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-06 16:29:26 +0000 |
commit | 88815f3f81361692dd281000e3e46bf163b2f28b (patch) | |
tree | 7387551544bd1abfbff86fee11b3773d70b79cc8 /lib/AST/Comment.cpp | |
parent | 427435fb15593f19f86aee0c25e2b96e03aadf69 (diff) |
Comment diagnostics: \return in void function: specialize diagnostic text for
ObjC methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r-- | lib/AST/Comment.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp index ac224ccecd..e35b2a3d5e 100644 --- a/lib/AST/Comment.cpp +++ b/lib/AST/Comment.cpp @@ -145,6 +145,7 @@ void DeclInfo::fill() { IsTemplateDecl = false; IsTemplateSpecialization = false; IsTemplatePartialSpecialization = false; + IsObjCMethod = false; IsInstanceMethod = false; IsClassMethod = false; ParamVars = ArrayRef<const ParmVarDecl *>(); @@ -193,6 +194,7 @@ void DeclInfo::fill() { ParamVars = ArrayRef<const ParmVarDecl *>(MD->param_begin(), MD->param_size()); ResultType = MD->getResultType(); + IsObjCMethod = true; IsInstanceMethod = MD->isInstanceMethod(); IsClassMethod = !IsInstanceMethod; break; |