MCPcopy Create free account
hub / github.com/Samsung/UTopia / ASTDefNode

Class ASTDefNode

include/ftg/astirmap/ASTDefNode.h:12–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace ftg {
11
12class ASTDefNode {
13public:
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
27private:
28 LocIndex SourceLoc;
29 std::unique_ptr<ASTNode> Assignee;
30 std::unique_ptr<ASTNode> Assigned;
31};
32
33} // namespace ftg
34

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected