thakis added a subscriber: thakis. thakis added a comment. I agree with Aaron. Maybe you could change Matcher.UnresolvedLookupExpr to call bar() from a new function foo() so that it gets instantiated? http://reviews.llvm.org/D20369