diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-10-21 16:13:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-10-21 16:13:35 +0000 |
commit | 8e9bebdea69c590dedfbf27374114cb76fe12fbd (patch) | |
tree | a23d60f1da3648dcff20b6db034b2f5bf30ac50f /include/clang/Analysis/Support/ExprDeclBitVector.h | |
parent | 6d34893fc886f4153f104de8880876764981cb7f (diff) |
Preliminary support for function overloading
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/Support/ExprDeclBitVector.h')
-rw-r--r-- | include/clang/Analysis/Support/ExprDeclBitVector.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/clang/Analysis/Support/ExprDeclBitVector.h b/include/clang/Analysis/Support/ExprDeclBitVector.h index 7b44fd7c6b..362ce161ab 100644 --- a/include/clang/Analysis/Support/ExprDeclBitVector.h +++ b/include/clang/Analysis/Support/ExprDeclBitVector.h @@ -18,14 +18,14 @@ #define LLVM_CLANG_EXPRDECLBVDVAL_H #include "clang/AST/CFG.h" +#include "clang/AST/Decl.h" // for ScopedDecl* -> NamedDecl* conversion #include "llvm/ADT/BitVector.h" #include "llvm/ADT/DenseMap.h" namespace clang { class Expr; - class ScopedDecl; - + struct DeclBitVector_Types { class Idx { @@ -49,7 +49,7 @@ struct DeclBitVector_Types { class AnalysisDataTy { public: - typedef llvm::DenseMap<const ScopedDecl*, unsigned > DMapTy; + typedef llvm::DenseMap<const NamedDecl*, unsigned > DMapTy; typedef DMapTy::const_iterator decl_iterator; protected: @@ -61,16 +61,16 @@ struct DeclBitVector_Types { AnalysisDataTy() : NDecls(0) {} virtual ~AnalysisDataTy() {} - bool isTracked(const ScopedDecl* SD) { return DMap.find(SD) != DMap.end(); } + bool isTracked(const NamedDecl* SD) { return DMap.find(SD) != DMap.end(); } - Idx getIdx(const ScopedDecl* SD) const { + Idx getIdx(const NamedDecl* SD) const { DMapTy::const_iterator I = DMap.find(SD); return I == DMap.end() ? Idx() : Idx(I->second); } unsigned getNumDecls() const { return NDecls; } - void Register(const ScopedDecl* SD) { + void Register(const NamedDecl* SD) { if (!isTracked(SD)) DMap[SD] = NDecls++; } |