diff options
| author | John McCall <rjmccall@apple.com> | 2011-04-26 20:42:42 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-04-26 20:42:42 +0000 |
| commit | 0009fcc39e19e1576495533f06e980acc0a954fd (patch) | |
| tree | 951bcaea4ed6e770a431362d0d8954be2ce5d9b2 /clang/lib/AST/ASTContext.cpp | |
| parent | 1b06c71668183c30c54704ed02a0071318295481 (diff) | |
| download | bcm5719-llvm-0009fcc39e19e1576495533f06e980acc0a954fd.tar.gz bcm5719-llvm-0009fcc39e19e1576495533f06e980acc0a954fd.zip | |
Make yet another placeholder type, this one marking that an expression is a bound
member function, i.e. something of the form 'x.f' where 'f' is a non-static
member function. Diagnose this in the general case. Some of the new diagnostics
are probably worse than the old ones, but we now get this right much more
universally, and there's certainly room for improvement in the diagnostics.
llvm-svn: 130239
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 3d74d3a9380..a31969dc907 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -402,6 +402,9 @@ void ASTContext::InitBuiltinTypes() { // Placeholder type for functions. InitBuiltinType(OverloadTy, BuiltinType::Overload); + // Placeholder type for bound members. + InitBuiltinType(BoundMemberTy, BuiltinType::BoundMember); + // "any" type; useful for debugger-like clients. InitBuiltinType(UnknownAnyTy, BuiltinType::UnknownAny); |

