diff options
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 9fb2dc1a94..820288eae3 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -61,6 +61,10 @@ const RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { assert(D); + // User can not attach documentation to implicit declarations. + if (D->isImplicit()) + return NULL; + // TODO: handle comments for function parameters properly. if (isa<ParmVarDecl>(D)) return NULL; |