Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp | ||
---|---|---|
2607 | Can you help me to better understand the proposed change? I find this to be surprising behavior -- the thing the user wrote in the source are the binding declarations, the hidden thing they didn't write in the source was the decomposition declaration. e.g., the user introduced some names f, s, and t in the declaration so I would imagine that these *are* spelled in source. What I don't think is necessarily spelled in source is the decomposition declaration for the int[3] to bind to. So I was expecting this to be EXPECT_TRUE instead of EXPECT_FALSE. |
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp | ||
---|---|---|
2607 |
Indeed. The bindingDecl matches, but the has(expr()) part does not, after this change: https://godbolt.org/z/Mqb9Mx |
LGTM!
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp | ||
---|---|---|
2607 | The test changes nicely clarify what's going on, thank you. |
Can you help me to better understand the proposed change? I find this to be surprising behavior -- the thing the user wrote in the source are the binding declarations, the hidden thing they didn't write in the source was the decomposition declaration. e.g., the user introduced some names f, s, and t in the declaration so I would imagine that these *are* spelled in source. What I don't think is necessarily spelled in source is the decomposition declaration for the int[3] to bind to. So I was expecting this to be EXPECT_TRUE instead of EXPECT_FALSE.