diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-17 15:07:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-17 20:40:01 +0200 |
commit | 476fb5d26ea766ae1aa3238e2967480857872d29 (patch) | |
tree | 31ff870497f7e6ca29747f157f687fe9d2557533 /compilerplugins/clang/unreffun.cxx | |
parent | 254c20f025e2b1b93751489b82bef3a20231866a (diff) |
Revert "simplify sharedplugin PostTraverse calls"
This reverts commit ff55ad1aceb10b900254c8ad3629775b7789d60a,
Lubos prefers it the way it was.
Change-Id: I68edc21c438b6aa2fc819245dd9a3d590af3a278
Reviewed-on: https://gerrit.libreoffice.org/75790
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'compilerplugins/clang/unreffun.cxx')
-rw-r--r-- | compilerplugins/clang/unreffun.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/unreffun.cxx b/compilerplugins/clang/unreffun.cxx index ab0e01b70ecb..353eee5f0b31 100644 --- a/compilerplugins/clang/unreffun.cxx +++ b/compilerplugins/clang/unreffun.cxx @@ -57,13 +57,14 @@ public: friendFunction.push( dyn_cast_or_null<FunctionDecl>(decl->getFriendDecl())); return true; } - void PostTraverseFriendDecl(FriendDecl *) { + bool PostTraverseFriendDecl(FriendDecl *, bool ) { friendFunction.pop(); + return true; } bool TraverseFriendDecl(FriendDecl * decl) { PreTraverseFriendDecl(decl); auto const ret = RecursiveASTVisitor::TraverseFriendDecl(decl); - PostTraverseFriendDecl(decl); + PostTraverseFriendDecl(decl, ret); return ret; } |