evolutions: Replace coccinelle script with clang-rename config
As mentioned previously, coccinelle struggles to parse C++. As
such, replace the one coccinelle script so far with the clang-rename
equivalent.
Change-Id: Ic2d971d3aeaf223345add01e1d26c23491015c05
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 82c4311..060df54 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,17 +38,14 @@
1. fru: Deprecate `get_fru_record_by_option_check()`
Users should switch to `get_fru_record_by_option()`. Migration can be
- performed using the [Coccinelle semantic patch][coccinelle]
- `get_fru_record_by_option_check.cocci`:
+ performed using the `apply-renames` script and the [clang-rename][]
+ configuration under `evolutions/`:
- ```text
- $ spatch \
- --sp-file=${LIBPLDM_DIR}/evolutions/current/get_fru_record_by_option_check.cocci \
- --in-place \
- $(git ls-files | grep -E '\.[ch](pp)?')
+ ```
+ $ ./scripts/apply-renames evolutions/current/get_fru_record_by_option_check.yaml
```
-[coccinelle]: https://coccinelle.gitlabpages.inria.fr/website/
+[clang-rename]: https://clang.llvm.org/extra/clang-rename.html
### Removed
diff --git a/evolutions/current/get_fru_record_by_option_check.cocci b/evolutions/current/get_fru_record_by_option_check.cocci
deleted file mode 100644
index 5682f88..0000000
--- a/evolutions/current/get_fru_record_by_option_check.cocci
+++ /dev/null
@@ -1,6 +0,0 @@
-@@
-@@
-- get_fru_record_by_option_check(
-+ get_fru_record_by_option(
- ...
- )
diff --git a/evolutions/current/get_fru_record_by_option_check.yaml b/evolutions/current/get_fru_record_by_option_check.yaml
new file mode 100644
index 0000000..732cbc2
--- /dev/null
+++ b/evolutions/current/get_fru_record_by_option_check.yaml
@@ -0,0 +1,2 @@
+- QualifiedName: get_fru_record_by_option_check
+ NewName: get_fru_record_by_option