This is an archive of the discontinued LLVM Phabricator instance.

Add a way to tell MatchFinder not to visit template instantiations and implicit code.
AbandonedPublic

Authored by alexfh on Dec 9 2014, 6:19 AM.

Details

Reviewers
djasper
Summary

We need this desperately in clang-tidy. There's currently no way to
easily avoid matches of typeLocs in implicit code.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 17078.Dec 9 2014, 6:19 AM
alexfh retitled this revision from to Add a way to tell MatchFinder not to visit template instantiations and implicit code..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: djasper.
alexfh added a subscriber: Unknown Object (MLST).
djasper edited edge metadata.Apr 16 2015, 1:47 AM

What's the status here?

IIRC, Manuel expressed a concern offline that adding another way to configure matchers would make matchers more difficult to develop and use and will also add more complexities wrt dynamic matchers and tools like clang_query. I may be wrong or missing something, so it would be nice if Manuel answered himself. I remember us talking about different alternatives, but don't recall any idea that would work well with memoization etc.

One of the problems I was going to solve with this is avoid matching of typelocs, variables and expressions generated from range-based for loop and implicit assignment operators.

alexfh abandoned this revision.Oct 12 2020, 6:59 AM