summaryrefslogtreecommitdiffstats
path: root/include/clang/AST/ParentMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/AST/ParentMap.h')
-rw-r--r--include/clang/AST/ParentMap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/AST/ParentMap.h b/include/clang/AST/ParentMap.h
index 62eae02..bd2ebf5 100644
--- a/include/clang/AST/ParentMap.h
+++ b/include/clang/AST/ParentMap.h
@@ -29,6 +29,11 @@ public:
/// visited and updated or inserted but not the parents of S.
void addStmt(Stmt* S);
+ /// Manually sets the parent of \p S to \p Parent.
+ ///
+ /// If \p S is already in the map, this method will update the mapping.
+ void setParent(const Stmt *S, const Stmt *Parent);
+
Stmt *getParent(Stmt*) const;
Stmt *getParentIgnoreParens(Stmt *) const;
Stmt *getParentIgnoreParenCasts(Stmt *) const;
OpenPOWER on IntegriCloud