aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/ArrayRefTest.cpp
diff options
context:
space:
mode:
authorSamuel Benzaquen <sbenza@google.com>2016-05-03 20:11:09 +0000
committerSamuel Benzaquen <sbenza@google.com>2016-05-03 20:11:09 +0000
commit4e05b82cc495a15dac4ce05ad1d2648ba3c739bc (patch)
treeabafe757df576d40f9865c5911ea4e8503a42b3c /llvm/unittests/ADT/ArrayRefTest.cpp
parent296d12cd403fc1d813a145201f8369d5c068a5e4 (diff)
downloadllvm-4e05b82cc495a15dac4ce05ad1d2648ba3c739bc.zip
llvm-4e05b82cc495a15dac4ce05ad1d2648ba3c739bc.tar.gz
llvm-4e05b82cc495a15dac4ce05ad1d2648ba3c739bc.tar.bz2
[clang-tidy] Speedup misc-static-assert.
Summary: Speedup the misc-static-assert check by not use `stmt()` as the toplevel matcher. The framework runs a filter on the matchers before trying them on each node and uses the toplevel type for this. Using `stmt()` as the toplevel causes the matcher to be run on every `Stmt` node, even if the node doesn't match the desired types. This change speeds up clang-tidy by ~5% in a benchmark. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19877 llvm-svn: 268430
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions