summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
-rw-r--r--compile_commands.json8
-rwxr-xr-xremove.sh (renamed from replace.sh)4
-rw-r--r--removeFunctionCall.cpp (renamed from replaceFunctionCall.cpp)0
4 files changed, 9 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9840a6f..b1cd1d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,11 +14,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_CMAKE_DIR}")
# import LLVM CMake functions
include(AddLLVM)
-add_clang_executable(replace-function-call
- replaceFunctionCall.cpp
+add_clang_executable(remove-function-call
+ removeFunctionCall.cpp
)
-clang_target_link_libraries(replace-function-call
+clang_target_link_libraries(remove-function-call
PRIVATE
clangAST
clangASTMatchers
diff --git a/compile_commands.json b/compile_commands.json
index 4b63725..ff109c6 100644
--- a/compile_commands.json
+++ b/compile_commands.json
@@ -1,8 +1,8 @@
[
{
- "directory": "/home/aotrix/development/clang_AST/replaceFunctionCall/build",
- "command": "/usr/bin/c++ -std=gnu++20 -fno-exceptions -funwind-tables -o CMakeFiles/replace-function-call.dir/replaceFunctionCall.cpp.o -c /home/aotrix/development/clang_AST/replaceFunctionCall/replaceFunctionCall.cpp -I/usr/lib/gcc/x86_64-pc-linux-gnu/16/include",
- "file": "/home/aotrix/development/clang_AST/replaceFunctionCall/replaceFunctionCall.cpp",
- "output": "CMakeFiles/replace-function-call.dir/replaceFunctionCall.cpp.o"
+ "directory": "/home/aotrix/development/clang_AST/removeFunctionCall/build",
+ "command": "/usr/bin/c++ -std=gnu++20 -fno-exceptions -funwind-tables -o CMakeFiles/remove-function-call.dir/removeFunctionCall.cpp.o -c /home/aotrix/development/clang_AST/removeFunctionCall/removeFunctionCall.cpp -I/usr/lib/gcc/x86_64-pc-linux-gnu/16/include",
+ "file": "/home/aotrix/development/clang_AST/removeFunctionCall/removeFunctionCall.cpp",
+ "output": "CMakeFiles/remove-function-call.dir/removeFunctionCall.cpp.o"
}
]
diff --git a/replace.sh b/remove.sh
index a0746ac..c2f12b9 100755
--- a/replace.sh
+++ b/remove.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-echo "Replacing calls..."
-./build/replace-function-call $1
+echo "Removing calls..."
+./build/remove-function-call $1
clang-tidy $1 -checks=-*,readability-simplify-boolean-expr -fix >/dev/null 2>&1
echo "Done."
diff --git a/replaceFunctionCall.cpp b/removeFunctionCall.cpp
index 3e0d4cb..3e0d4cb 100644
--- a/replaceFunctionCall.cpp
+++ b/removeFunctionCall.cpp