| 10 | namespace ftg { |
| 11 | |
| 12 | class ASTDefNode { |
| 13 | public: |
| 14 | ASTDefNode(clang::VarDecl &D, clang::ASTUnit &Unit); |
| 15 | ASTDefNode(clang::BinaryOperator &B, clang::ASTUnit &Unit); |
| 16 | ASTDefNode(clang::Expr &E, clang::ASTUnit &Unit); |
| 17 | ASTDefNode(clang::Expr &E, unsigned ArgIdx, clang::ASTUnit &Unit); |
| 18 | ASTDefNode(clang::ReturnStmt &S, clang::ASTUnit &Unit); |
| 19 | ASTDefNode(clang::CXXCtorInitializer &CCI, clang::ASTUnit &U); |
| 20 | |
| 21 | LocIndex getLocIndex() const; |
| 22 | const ASTNode &getAssignee() const; |
| 23 | const ASTNode *getAssigned() const; |
| 24 | const ASTNode *getNodeForType() const; |
| 25 | friend llvm::raw_ostream &operator<<(llvm::raw_ostream &, const ASTDefNode &); |
| 26 | |
| 27 | private: |
| 28 | LocIndex SourceLoc; |
| 29 | std::unique_ptr<ASTNode> Assignee; |
| 30 | std::unique_ptr<ASTNode> Assigned; |
| 31 | }; |
| 32 | |
| 33 | } // namespace ftg |
| 34 |
nothing calls this directly
no outgoing calls
no test coverage detected