commit | 8357746fe68cdc45052de4fc9d1d8b03e14ab900 | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Thu Jul 25 09:32:14 2013 +0000 |
committer | Daniel Jasper <djasper@google.com> | Thu Jul 25 09:32:14 2013 +0000 |
tree | 0d73ee55347a54c832b1862d15c85400f79416fd | |
parent | 2c4b2e42c5af83dc2138ecceab7f492fe9d6c555 [diff] |
Use memoization for has()-matcher. In TUs with large classes, a matcher like methodDecl(ofClass(recordDecl(has(varDecl())))) (finding all member functions of classes with static variables) becomes unbearably slow otherwise. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187115 91177308-0d34-0410-b5e6-96231b3b80d8