Details
Diff Detail
Event Timeline
Hrm, I kind of worry about this masking bugs when delayed template parsing is enabled (which it is by default on MSVC-built versions of clang).
I agree with Aaron. Maybe you could change Matcher.UnresolvedLookupExpr to call bar() from a new function foo() so that it gets instantiated?
This will break the intention of the testcase. We don't want the function get instantiated here. Update the code now only restrict -fno-delayed-template-parsing in this test.
unittests/ASTMatchers/ASTMatchersNodeTest.cpp | ||
---|---|---|
187 | Doesn't referencing bar() after it's defined help too? If not, this is cool too -- maybe add a /*ExpectMatch=*/ in front of true so it's clear what the true means. |
Ah, you answered my question while I was writing it.
Doesn't that mean whatever feature this test is testing is broken on Windows?
(If so, maybe add a FIXME comment to make things work without delayed template parsing. In any case, getting the bot green is the most important thing, so landing this as is is definitely fine.)
unittests/ASTMatchers/ASTMatchersNodeTest.cpp | ||
---|---|---|
187 | Yes, please add an argument comment and a FIXME to the code that is known to be broken with delayed template parsing. Thanks! |
unittests/ASTMatchers/ASTMatchersNodeTest.cpp | ||
---|---|---|
187 | Done in http://reviews.llvm.org/rL269957. |
Doesn't referencing bar() after it's defined help too? If not, this is cool too -- maybe add a /*ExpectMatch=*/ in front of true so it's clear what the true means.