[cfe-dev] RFC: Easier AST Matching by Default

Gábor Horváth via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 16 16:21:34 PST 2020


On Mon, Jan 13, 2020 at 8:39 AM Dmitri Gribenko via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

>
> - The cost of ClangTidy. ClangTidy runs all matchers simultaneously in one
> AST traversal. If we implement implicit/no-implicit modes as separate AST
> traversals, ClangTidy would need to run two traversals, one for "easier"
> matchers (skipping implicit code), and one for "expert" matchers
> (traversing implicit code). We would also need to build two parent maps.
>

Probably I am missing something but wouldn't it be possible to do the two
traversals at once? There is an implementation cost to it for sure, but I
do not see anything that would prevent that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200116/3a890e2b/attachment.html>


More information about the cfe-dev mailing list