We should implement a visibility check on all lookup results. Atm we check visibility only in case of FunctionDecl and VarDecl. We should however do that with all other Decl nodes (TypedefNameDecl, RecordDecl, etc). This is important because unnamed namespaces of different TUs may have nodes with the same name but with different definition.
We should implement a visibility check on all lookup results. Atm we check visibility only in case of
FunctionDecl
andVarDecl
. We should however do that with all otherDecl
nodes (TypedefNameDecl
,RecordDecl
, etc). This is important because unnamed namespaces of different TUs may have nodes with the same name but with different definition.