mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
rename .cc files to .cpp
This commit is contained in:
parent
03d7fa8b67
commit
b285d09d6a
4
.github/workflows/clang-format.yml
vendored
4
.github/workflows/clang-format.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
- name: Filename Formatter
|
||||
run: |
|
||||
IFS=$'\n'
|
||||
for fname in `find . -type f -name '*.cpp' -o -name '*.h'`
|
||||
for fname in `find . -type f -name '*.cpp' -o -name '*.cc' -o -name '*.h'`
|
||||
do
|
||||
echo "${fname}"
|
||||
new_fname=`echo ${fname} | tr ' ' '_'`
|
||||
@ -35,6 +35,8 @@ jobs:
|
||||
echo " ${new_fname}"
|
||||
new_fname=`echo ${new_fname} | tr '-' '_'`
|
||||
echo " ${new_fname}"
|
||||
new_fname=${new_fname/.cc/.cpp}
|
||||
echo " ${new_fname}"
|
||||
if [ ${fname} != ${new_fname} ]
|
||||
then
|
||||
echo " ${fname} --> ${new_fname}"
|
||||
|
Loading…
Reference in New Issue
Block a user