[cfe-dev] Getting DecompositionDecl from BindingDecl
George Karpenkov via cfe-dev
cfe-dev at lists.llvm.org
Wed Mar 28 17:27:37 PDT 2018
Hi,
I am trying to support c++17 structured bindings in the static analyzer, and I was really surprised to learn there is no reasonable way to find a
DecompositionDecl from a BindingDecl (that is often necessary because DecompositionDecl often is the only available VarDecl).
Shouldn’t getParentContext() be usable here?
Any clues for how this can be solved apart from preprocessing and populating parent pointers?
George
More information about the cfe-dev
mailing list