Speed up clang-tidy when profiling in on.
authorSamuel Benzaquen <sbenza@google.com>
Mon, 27 Oct 2014 15:22:59 +0000 (15:22 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Mon, 27 Oct 2014 15:22:59 +0000 (15:22 +0000)
commit7af88000955b692547f6bc378f06a1be9a1391c9
treeec58d4c16bd2f030fa7bff073e96fd3e0bd05c6f
parent49e40687810eefce02c7c81e5ccb09699a761e95
Speed up clang-tidy when profiling in on.

Summary:
Speed up clang-tidy when profiling in on.
It makes profiling runs twice as fast by reusing the time samples between the
different actions.
It also joins together the sampling of different matchers of the same check.

Reviewers: alexfh

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D5972

llvm-svn: 220682
clang/lib/ASTMatchers/ASTMatchFinder.cpp