@@ -37,9 +37,9 @@ namespace psr {
3737class CachedTypeGraph : public TypeGraph <CachedTypeGraph> {
3838protected:
3939 struct VertexProperties {
40- std::string name ;
41- std::set<const llvm::StructType *> types ;
42- const llvm::StructType *base_type ;
40+ std::string Name ;
41+ std::set<const llvm::StructType *> Types ;
42+ const llvm::StructType *BaseType = nullptr ;
4343 };
4444
4545 struct EdgeProperties {
@@ -69,9 +69,9 @@ class CachedTypeGraph : public TypeGraph<CachedTypeGraph> {
6969 struct dfs_visitor ;
7070 struct reverse_type_propagation_dfs_visitor ;
7171
72- std::unordered_map<std::string, vertex_t > type_vertex_map ;
73- graph_t g ;
74- bool already_visited = false ;
72+ std::unordered_map<std::string, vertex_t > TypeVertexMap ;
73+ graph_t G ;
74+ bool AlreadyVisited = false ;
7575
7676 FRIEND_TEST (TypeGraphTest, AddType);
7777 FRIEND_TEST (TypeGraphTest, AddLinkSimple);
@@ -84,8 +84,8 @@ class CachedTypeGraph : public TypeGraph<CachedTypeGraph> {
8484 vertex_t addType (const llvm::StructType *NewType);
8585 void reverseTypePropagation (const llvm::StructType *BaseStruct);
8686 void aggregateTypes ();
87- bool addLinkWithoutReversePropagation (const llvm::StructType *from ,
88- const llvm::StructType *to );
87+ bool addLinkWithoutReversePropagation (const llvm::StructType *From ,
88+ const llvm::StructType *To );
8989
9090public:
9191 CachedTypeGraph () = default ;
@@ -96,11 +96,10 @@ class CachedTypeGraph : public TypeGraph<CachedTypeGraph> {
9696 // CachedTypeGraph(CachedTypeGraph &&move) = delete;
9797 // CachedTypeGraph& operator=(CachedTypeGraph &&move) = delete;
9898
99- virtual bool addLink (const llvm::StructType *from,
100- const llvm::StructType *to) override ;
101- virtual void
102- printAsDot (const std::string &path = " typegraph.dot" ) const override ;
103- virtual std::set<const llvm::StructType *>
99+ bool addLink (const llvm::StructType *From,
100+ const llvm::StructType *To) override ;
101+ void printAsDot (const std::string &Path = " typegraph.dot" ) const override ;
102+ std::set<const llvm::StructType *>
104103 getTypes (const llvm::StructType *StructType) override ;
105104};
106105} // namespace psr
0 commit comments