Skip to content

Commit

Permalink
enabled and mitigated performance-noexcept-swap clang-tidy warnings (
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Aug 12, 2024
1 parent 11df5ae commit d3dda9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Checks: >
-performance-avoid-endl,
-performance-inefficient-string-concatenation,
-performance-no-automatic-move,
-performance-noexcept-swap,
-portability-simd-intrinsics,
-portability-std-allocator-const,
-readability-avoid-const-params-in-decls,
Expand Down
1 change: 0 additions & 1 deletion clang-tidy.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ We run this separately via `clang-include-cleaner` in the `iwyu.yml` workflow as
`concurrency-mt-unsafe`<br/>
`misc-use-anonymous-namespace`<br/>
`performance-avoid-endl`<br/>
`performance-noexcept-swap`<br/>
`bugprone-switch-missing-default-case`<br/>
`bugprone-empty-catch`<br/>
`readability-avoid-nested-conditional-operator`<br/>
Expand Down
4 changes: 3 additions & 1 deletion gui/cppchecklibrarydata.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef CPPCHECKLIBRARYDATA_H
#define CPPCHECKLIBRARYDATA_H

#include "config.h"

#include <cstdint>

#include <QList>
Expand Down Expand Up @@ -227,7 +229,7 @@ class CppcheckLibraryData {
entrypoints.clear();
}

void swap(CppcheckLibraryData &other) {
void swap(CppcheckLibraryData &other) NOEXCEPT {
containers.swap(other.containers);
defines.swap(other.defines);
undefines.swap(other.undefines);
Expand Down

0 comments on commit d3dda9f

Please sign in to comment.