forked from openscad/openscad
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed some clang-tidy warnings, slightly adjusted clang-tidy config (
- Loading branch information
Showing
14 changed files
with
322 additions
and
255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
Checks: ' | ||
-*, | ||
boost-*, | ||
bugprone-*, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-exception-escape, | ||
-bugprone-narrowing-conversions, | ||
clang-analyzer-*, | ||
-clang-analyzer-cplusplus.NewDelete, | ||
-clang-analyzer-cplusplus.NewDeleteLeaks, | ||
misc-*, | ||
-misc-definitions-in-headers, | ||
-misc-no-recursion, | ||
-misc-non-private-member-variables-in-classes, | ||
modernize-*, | ||
-modernize-avoid-c-arrays, | ||
-modernize-use-nodiscard, | ||
-modernize-use-trailing-return-type, | ||
performance-* | ||
' | ||
Checks: | ||
- '-*' | ||
- 'boost-*' | ||
# We use ranges where it suits us, but not everywhere. | ||
- '-boost-use-ranges' | ||
- 'bugprone-*' | ||
# We have too much code violating this. Consider re-enabling in the future (nice to have) | ||
- '-bugprone-easily-swappable-parameters' | ||
# We should enable this, but we have some tricky cases to fix first | ||
- '-bugprone-exception-escape' | ||
# We have too much code violating this. Consider re-enabling in the future | ||
- '-bugprone-narrowing-conversions' | ||
# Sometimes, assignment in if make code more readable | ||
- '-bugprone-assignment-in-if-condition' | ||
- 'clang-analyzer-*' | ||
- 'misc-*' | ||
# We do allow using recursive functions | ||
- '-misc-no-recursion' | ||
# We have too much code violating this. Consider re-enabling in the future. | ||
- '-misc-non-private-member-variables-in-classes' | ||
- 'modernize-*' | ||
# We have too much code violating this. Consider re-enabling in the future. | ||
- '-modernize-avoid-c-arrays' | ||
# We use nodiscard in some key classes, but it's a bit noisy to enable everywhere. | ||
- '-modernize-use-nodiscard' | ||
# We're not using trailing return types for regular functions | ||
- '-modernize-use-trailing-return-type' | ||
- 'performance-*' | ||
# We use std::endl in some places, where we want to flush the stream | ||
- '-performance-avoid-endl' | ||
|
||
CheckOptions: | ||
misc-include-cleaner.IgnoreHeaders: 'boost/.*;fontconfig/.*;glib.h' | ||
|
||
WarningsAsErrors: '' |
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,6 +1,5 @@ | ||
#pragma once | ||
|
||
#include <cstdio> | ||
#include <string> | ||
#include <map> | ||
#include <vector> | ||
|
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.