summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-02-03 20:19:35 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-02-03 20:19:35 +0000
commit3d3f75a995cee883428f3e5c331433c9c1d76725 (patch)
treec025daba400ead4ffbb37cc81f9ac5158a791e21 /clang/lib/Sema/Sema.h
parentfc7c76159cf5027dc28e95e3d2471d4becbc53aa (diff)
downloadbcm5719-llvm-3d3f75a995cee883428f3e5c331433c9c1d76725.tar.gz
bcm5719-llvm-3d3f75a995cee883428f3e5c331433c9c1d76725.zip
Allow taking the address of data members, resulting in a member pointer.
Pointers to functions don't work yet, and pointers to overloaded functions even less. Also, far too much illegal code is accepted. llvm-svn: 63655
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index 0969cd03872..6360dcc44f1 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -1030,17 +1030,20 @@ public:
virtual OwningExprResult ActOnIdentifierExpr(Scope *S, SourceLocation Loc,
IdentifierInfo &II,
bool HasTrailingLParen,
- const CXXScopeSpec *SS = 0);
+ const CXXScopeSpec *SS = 0,
+ bool isAddressOfOperand = false);
virtual OwningExprResult ActOnCXXOperatorFunctionIdExpr(Scope *S,
SourceLocation OperatorLoc,
OverloadedOperatorKind Op,
bool HasTrailingLParen,
- const CXXScopeSpec &SS);
+ const CXXScopeSpec &SS,
+ bool isAddressOfOperand);
virtual OwningExprResult ActOnCXXConversionFunctionExpr(Scope *S,
SourceLocation OperatorLoc,
TypeTy *Ty,
bool HasTrailingLParen,
- const CXXScopeSpec &SS);
+ const CXXScopeSpec &SS,
+ bool isAddressOfOperand);
DeclRefExpr *BuildDeclRefExpr(NamedDecl *D, QualType Ty, SourceLocation Loc,
bool TypeDependent, bool ValueDependent,
const CXXScopeSpec *SS = 0);
@@ -1053,7 +1056,8 @@ public:
DeclarationName Name,
bool HasTrailingLParen,
const CXXScopeSpec *SS,
- bool ForceResolution = false);
+ bool ForceResolution = false,
+ bool isAddressOfOperand = false);
virtual OwningExprResult ActOnPredefinedExpr(SourceLocation Loc,
tok::TokenKind Kind);
OpenPOWER on IntegriCloud