[all-commits] [llvm/llvm-project] 0a57d1: [ASTMatchers] Fix parent traversal with InitListExpr
Stephen Kelly via All-commits
all-commits at lists.llvm.org
Mon Jan 27 03:20:08 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0a57d14abf993331111fbfab15fb918a863aa391
https://github.com/llvm/llvm-project/commit/0a57d14abf993331111fbfab15fb918a863aa391
Author: Stephen Kelly <steveire at gmail.com>
Date: 2020-01-27 (Mon, 27 Jan 2020)
Changed paths:
M clang/lib/AST/ParentMapContext.cpp
M clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
Log Message:
-----------
[ASTMatchers] Fix parent traversal with InitListExpr
Children of InitListExpr are traversed twice by RAV, so this code
populates a vector to represent the possibly-multiple parents (in
reality in this situation the parent is the same and is therefore
de-duplicated).
More information about the All-commits
mailing list