Skip to content

Commit ccde80d

Browse files
authored
enabled and fixed modernize-use-equals-default clang-tidy warnings (#561)
1 parent 31164c2 commit ccde80d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.clang-tidy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Checks: >
3131
-modernize-pass-by-value,
3232
-modernize-return-braced-init-list,
3333
-modernize-use-auto,
34-
-modernize-use-equals-default,
3534
-modernize-use-equals-delete,
3635
-modernize-use-default-member-init,
3736
-modernize-use-nodiscard,

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void simplecpp::Token::printOut() const
245245
// cppcheck-suppress noConstructor - we call init() in the inherited to initialize the private members
246246
class simplecpp::TokenList::Stream {
247247
public:
248-
virtual ~Stream() {}
248+
virtual ~Stream() = default;
249249

250250
virtual int get() = 0;
251251
virtual int peek() = 0;

simplecpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace simplecpp {
7878
public:
7979
explicit Location(const std::vector<std::string> &f) : files(f), fileIndex(0), line(1U), col(0U) {}
8080

81-
Location(const Location &loc) : files(loc.files), fileIndex(loc.fileIndex), line(loc.line), col(loc.col) {}
81+
Location(const Location &loc) = default;
8282

8383
Location &operator=(const Location &other) {
8484
if (this != &other) {

0 commit comments

Comments
 (0)