Open JonathanFoo0523 opened 1 month ago
Related info: Koenig lookup
Perhaps this could be used to provide a work around and avoid mutating calls that use argument dependent lookup?
https://clang.llvm.org/doxygen/classclang_1_1CallExpr.html#a16460619f757c5a63ca6b80999d768cd
Given files
include.h
and file
main.cc
:Note that
main.cc
compile successfully, even thoughfoo
is not explicitly stated with namespacebar::foo
. However, applying dredd tomain.cc
changes the sole statement toand results in compilation error: