-
- Downloads
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
Showing
- examples/Tooling/CMakeLists.txt 1 addition, 0 deletionsexamples/Tooling/CMakeLists.txt
- examples/Tooling/RemoveCStrCalls/CMakeLists.txt 5 additions, 0 deletionsexamples/Tooling/RemoveCStrCalls/CMakeLists.txt
- examples/Tooling/RemoveCStrCalls/RemoveCStrCalls.cpp 229 additions, 0 deletionsexamples/Tooling/RemoveCStrCalls/RemoveCStrCalls.cpp
- examples/Tooling/replace.py 50 additions, 0 deletionsexamples/Tooling/replace.py
- include/clang/Tooling/ASTMatchers.h 1736 additions, 0 deletionsinclude/clang/Tooling/ASTMatchers.h
- include/clang/Tooling/Tooling.h 2 additions, 2 deletionsinclude/clang/Tooling/Tooling.h
- include/clang/Tooling/VariadicFunction.h 1398 additions, 0 deletionsinclude/clang/Tooling/VariadicFunction.h
- lib/Tooling/ASTMatchers.cpp 564 additions, 0 deletionslib/Tooling/ASTMatchers.cpp
- lib/Tooling/CMakeLists.txt 1 addition, 0 deletionslib/Tooling/CMakeLists.txt
- lib/Tooling/Tooling.cpp 30 additions, 30 deletionslib/Tooling/Tooling.cpp
- test/Tooling/remove-cstr-calls.cpp 20 additions, 0 deletionstest/Tooling/remove-cstr-calls.cpp
- unittests/CMakeLists.txt 5 additions, 0 deletionsunittests/CMakeLists.txt
- unittests/Tooling/ASTMatchersTest.cpp 1602 additions, 0 deletionsunittests/Tooling/ASTMatchersTest.cpp
Loading
Please register or sign in to comment