From 64cbdf370984783911bb6d3bc25ec35a8b59e998 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Tue, 31 May 2011 23:49:32 +0000 Subject: 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 --- unittests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unittests/CMakeLists.txt') diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index cc2d5f4f83..1fc11ab66e 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -69,3 +69,8 @@ add_clang_unittest(JsonCompileCommandLineDatabase Tooling/JsonCompileCommandLineDatabaseTest.cpp USED_LIBS gtest gtest_main clangTooling ) + +add_clang_unittest(ASTMatchersTest + Tooling/ASTMatchersTest.cpp + USED_LIBS gtest gtest_main clangTooling + ) -- cgit v1.2.3