-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 42193 |
| Resolution | FIXED |
| Resolved on | Feb 27, 2020 04:13 |
| Version | unspecified |
| OS | Windows NT |
| Blocks | #43900 |
| CC | @zmodem,@zygoloid |
| Fixed by commit(s) | rG16cabf278fc8c14d415e677ce0bc40d46a6de30d |
Extended Description
Given the following code:
namespace foo {
extern "C" void test() {}
}
... I expect an AST matcher declared as functionDecl(hasName("::foo::test")) to match the function, but functionDecl(hasName("::test")) should not match. However, the opposite is the case. (see the example on Compiler Explorer: http://ce.steveire.com/z/VDTi_g)
When I do this locally with a build with assertions, I get an assertion failure at
| assert(matchesNodeFullFast(Node) == matchesNodeFullSlow(Node)); |
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"