commit | 64cbdf370984783911bb6d3bc25ec35a8b59e998 | [log] [tgz] |
---|---|---|
author | Manuel Klimek <klimek@google.com> | Tue May 31 23:49:32 2011 +0000 |
committer | Manuel Klimek <klimek@google.com> | Tue May 31 23:49:32 2011 +0000 |
tree | d9f1e5c11584852365aeef877c1f1a36db5548e3 | |
parent | d65e091631cc521fcb95a16d6587c0fed8b7164b [diff] |
This patch implements an AST matching framework that allows to write tools that match on the C++ ASTs. The main interface is in ASTMatchers.h, an example implementation of a tool that removes redundant .c_str() calls is in the example RemoveCStrCalls.cpp. Various contributions: Zhanyong Wan, Chandler Carruth, Marcin Kowalczyk, Wei Xu, James Dennett. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132374 91177308-0d34-0410-b5e6-96231b3b80d8