ImplicitParamDecl is always implicit.
authorDevang Patel <dpatel@apple.com>
Wed, 29 Sep 2010 23:08:00 +0000 (23:08 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 29 Sep 2010 23:08:00 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115103 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index c0b8681024c8b5bfa32a7da2253dc8a8450cc1cb..d4c660029264f540423bcf19cf98e451216bf3d2 100644 (file)
@@ -928,7 +928,9 @@ class ImplicitParamDecl : public VarDecl {
 protected:
   ImplicitParamDecl(Kind DK, DeclContext *DC, SourceLocation L,
                     IdentifierInfo *Id, QualType Tw)
-    : VarDecl(DK, DC, L, Id, Tw, /*TInfo=*/0, SC_None, SC_None) {}
+    : VarDecl(DK, DC, L, Id, Tw, /*TInfo=*/0, SC_None, SC_None) {
+    setImplicit();
+  }
 public:
   static ImplicitParamDecl *Create(ASTContext &C, DeclContext *DC,
                                    SourceLocation L, IdentifierInfo *Id,