This is an archive of the discontinued LLVM Phabricator instance.

[ASTMatchers] Don't assert-fail in specifiesTypeLoc().
ClosedPublic

Authored by dlj on Jun 18 2018, 1:40 AM.

Details

Summary

The specifiesTypeLoc() matcher narrows a nestedNameSpecifier matcher based on a
typeloc within the NNS. However, the matcher does not guard against NNS which
are a namespace, and cause getTypeLoc to assert-fail.

Diff Detail

Repository
rC Clang

Event Timeline

dlj created this revision.Jun 18 2018, 1:40 AM
klimek accepted this revision.Jun 18 2018, 1:59 AM

lg, thanks!

This revision is now accepted and ready to land.Jun 18 2018, 1:59 AM