Help reg. clang

How to match errors using ast matcher?? Since ast has <> where error has occurred and makes matching difficult. How to solve this problem. Please help.