Debian Codegraph @

clang_delta/RemoveUnresolvedBase.h

raw symbols SCIP
1 //===----------------------------------------------------------------------===//
2 //
3 // Copyright (c) 2012 The University of Utah
4 // All rights reserved.
5 //
6 // This file is distributed under the University of Illinois Open Source
7 // License. See the file COPYING for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11 #ifndef REMOVE_UNRESOLVED_BASE_H
12 #define REMOVE_UNRESOLVED_BASE_H
13
14 #include "llvm/ADT/SmallPtrSet.h"
15 #include "Transformation.h"
16
17 namespace clang {
18 class DeclGroupRef;
19 class ASTContext;
20 class CXXBaseSpecifier;
21 class CXXRecordDecl;
22 }
23
24 class RemoveUnresolvedBaseASTVisitor;
25 class RemoveUnresolvedBase : public Transformation {
26 friend class RemoveUnresolvedBaseASTVisitor;
27
28 public:
29 RemoveUnresolvedBase(const char *TransName, const char *Desc)
30 : Transformation(TransName, Desc),
31 CollectionVisitor(NULL),
32 TheDerivedClass(NULL),
33 TheBaseSpecifier(NULL),
34 TheIndex(0)
35 { }
36
37 ~RemoveUnresolvedBase(void);
38
39 private:
40 typedef llvm::SmallPtrSet<const clang::CXXRecordDecl *, 20> CXXRecordDeclSet;
41
42 virtual void Initialize(clang::ASTContext &context);
43
44 virtual void HandleTranslationUnit(clang::ASTContext &Ctx);
45
46 void removeBaseSpecifier(void);
47
48 CXXRecordDeclSet VisitedCXXRecordDecls;
49
50 RemoveUnresolvedBaseASTVisitor *CollectionVisitor;
51
52 const clang::CXXRecordDecl *TheDerivedClass;
53
54 const clang::CXXBaseSpecifier *TheBaseSpecifier;
55
56 unsigned TheIndex;
57
58 // Unimplemented
59 RemoveUnresolvedBase(void);
60
61 RemoveUnresolvedBase(const RemoveUnresolvedBase &);
62
63 void operator=(const RemoveUnresolvedBase &);
64 };
65
66 #endif
67