Skip to content

Commit

Permalink
Cleaned up clang-tidy diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
i-ky committed Mar 7, 2023
1 parent 5d1a936 commit dfdcd49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Checks: |-
-*-avoid-c-arrays,
-*-member-init,
-*-vararg,
-altera-*,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-pro-type-union-access,
Expand All @@ -11,4 +12,11 @@ Checks: |-
-fuchsia-overloaded-operator,
-hicpp-no-array-decay,
-hicpp-signed-bitwise,
-modernize-use-trailing-return-type
-llvmlibc-*,
-modernize-use-trailing-return-type,
-readability-identifier-length
CheckOptions:
- key: cppcoreguidelines-avoid-magic-numbers.IgnorePowersOf2IntegerValues
value: true
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues
value: true
3 changes: 1 addition & 2 deletions src/basset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

using std::cerr;
using std::cout;
using std::forward;
using std::ifstream;
using std::make_unique;
using std::ofstream;
Expand Down Expand Up @@ -169,7 +168,7 @@ class CompilationDatabase : ofstream {

template <typename... Args>
CompilationDatabase::CompilationDatabase(Args &&... args)
: ofstream(forward<Args>(args)...) {
: ofstream(std::forward<Args>(args)...) {
*this << "[";
}

Expand Down

0 comments on commit dfdcd49

Please sign in to comment.