diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-12 16:51:40 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-12 16:51:40 +0000 |
commit | 5e300d1a8e37f24e71f8cf204b982f20f85cf91a (patch) | |
tree | 4ecedfd5067b9578a835d6f0ccb3df0c7bf9b463 /lib/Sema/Sema.h | |
parent | 859ba504e754436e1ccf81f50800e5d2ea647447 (diff) |
It's an error to use a function declared in a class definition as a default argument before the function has been declared.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r-- | lib/Sema/Sema.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 2df1ae2950..c4b3b2d050 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -412,8 +412,14 @@ public: SourceLocation EqualLoc, ExprArg defarg); virtual void ActOnParamUnparsedDefaultArgument(DeclPtrTy param, - SourceLocation EqualLoc); + SourceLocation EqualLoc, + SourceLocation ArgLoc); virtual void ActOnParamDefaultArgumentError(DeclPtrTy param); + + // Contains the locations of the beginning of unparsed default + // argument locations. + llvm::DenseMap<ParmVarDecl *,SourceLocation> UnparsedDefaultArgLocs; + virtual void AddInitializerToDecl(DeclPtrTy dcl, FullExprArg init); void AddInitializerToDecl(DeclPtrTy dcl, ExprArg init, bool DirectInit); void ActOnUninitializedDecl(DeclPtrTy dcl); |