forked from litalbarkai/open-redatam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix clang-specific note about std::move() vs using std::move + move()
- Loading branch information
1 parent
86278b7
commit 0371290
Showing
33 changed files
with
39,912 additions
and
40,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,54 @@ | ||
#!/bin/bash | ||
|
||
# Find clang-format | ||
# Find clang-format and clang-tidy | ||
clang_format=$(which clang-format-19) | ||
clang_tidy=$(which clang-tidy-19) | ||
|
||
# Check if clang-format is installed | ||
if [ -z "$clang_format" ]; then | ||
echo "clang-format-19 is not installed. Please install it first." | ||
exit 1 | ||
fi | ||
|
||
# Find all .h, .hpp, and .cpp files, excluding those in the vendor/ directory | ||
files=$(find . -path ./vendor -path ./rpkg/src/vendor -path ./pypkg/redatam/vendor -prune -o -name '*.h' -o -name '*.hpp' -o -name '*.cpp' -print) | ||
# Check if clang-tidy is installed | ||
if [ -z "$clang_tidy" ]; then | ||
echo "clang-tidy-19 is not installed. Please install it first." | ||
exit 1 | ||
fi | ||
|
||
# Format each file | ||
# Find relevant files, excluding specific directories | ||
files=$(find . \( -path './dev' -o -path './vendor' -o -path './rpkg' -o -path './pypkg' -o -path './gui' \) -prune -o \ | ||
-type f \( -name '*.hpp' -o -name '*.cpp' \) -print) | ||
|
||
# Format each file with clang-format | ||
for file in $files; do | ||
echo "Formatting $file" | ||
$clang_format -i "$file" | ||
done | ||
|
||
echo "Formatting complete." | ||
# Include directories (using absolute paths) | ||
include_dirs=( | ||
"-I$(realpath ./include)" | ||
"-I$(realpath ./include/database)" | ||
"-I$(realpath ./include/entities)" | ||
"-I$(realpath ./include/exporters)" | ||
"-I$(realpath ./include/readers)" | ||
"-I$(realpath ./include/utils)" | ||
"-I$(realpath ./src)" | ||
"-I$(realpath ./src/database)" | ||
"-I$(realpath ./src/entities)" | ||
"-I$(realpath ./src/exporters)" | ||
"-I$(realpath ./src/readers)" | ||
"-I$(realpath ./src/utils)" | ||
"-I$(realpath ./vendor/pugixml)" | ||
) | ||
|
||
# Apply clang-tidy to each .cpp file | ||
for file in $files; do | ||
if [[ $file == *.cpp ]]; then | ||
echo "Running clang-tidy on $file" | ||
$clang_tidy "$file" --extra-arg=-v -- -std=c++11 ${include_dirs[@]} | ||
fi | ||
done | ||
|
||
echo "Formatting and clang-tidy checks complete." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "redatam" | ||
version = "2.0.0" | ||
version = "2.1.0" | ||
description = "A package for Redatam data conversion" | ||
authors = [ | ||
{ name="Mauricio Vargas Sepulveda", email="[email protected]" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.