diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-12 23:21:09 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-12 23:21:09 +0000 |
commit | b6acda0f3606fec82a782b8c0e316335696e4b4e (patch) | |
tree | 83587ca83a45dc07a5582a476d2f56496fda08dd /clang/lib/Sema/Sema.h | |
parent | c208f4617c2e1391bf2593492d3c17032fc16366 (diff) | |
download | bcm5719-llvm-b6acda0f3606fec82a782b8c0e316335696e4b4e.tar.gz bcm5719-llvm-b6acda0f3606fec82a782b8c0e316335696e4b4e.zip |
Don't build identifiers for C++ constructors, destructors, or
conversion functions. Instead, we just use a placeholder identifier
for these (e.g., "<constructor>") and override NamedDecl::getName() to
provide a human-readable name.
This is one potential solution to the problem; another solution would
be to replace the use of IdentifierInfo* in NamedDecl with a different
class that deals with identifiers better. I'm also prototyping that to
see how it compares, but this commit is better than what we had
previously.
llvm-svn: 59193
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 6a86a8ab78d..efe481abaef 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -284,7 +284,6 @@ public: // virtual TypeTy *isTypeName(const IdentifierInfo &II, Scope *S, const CXXScopeSpec *SS); - virtual std::string getTypeAsString(TypeTy *Type); virtual DeclTy *ActOnDeclarator(Scope *S, Declarator &D, DeclTy *LastInGroup); virtual DeclTy *ActOnParamDeclarator(Scope *S, Declarator &D); virtual void ActOnParamDefaultArgument(DeclTy *param, |