-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-valid
Description
If an inline namespace has the same name as its direct parent, This can lead to assertions (or missed matches in release builds.
Take this example below with the matcher cxxRecordDecl(hasName("::a::A"))
namespace a {
inline namespace a {
class A;
}
} // namespace aThe matcher should match as the inline namespace can safely be ignored, but currently it sees that it consume the inline namespace, Then when it tries to consume the enclosing namespace a it fails and reports no match.
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partycrash-on-valid