Skip to content

Commit ed2d4e4

Browse files
committed
enabled and fixed modernize-use-equals-default clang-tidy warnings
1 parent d1db554 commit ed2d4e4

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.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
@@ -240,7 +240,7 @@ void simplecpp::Token::printOut() const
240240
// cppcheck-suppress noConstructor - we call init() in the inherited to initialize the private members
241241
class simplecpp::TokenList::Stream {
242242
public:
243-
virtual ~Stream() {}
243+
virtual ~Stream() = default;
244244

245245
virtual int get() = 0;
246246
virtual int peek() = 0;

simplecpp.h

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

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

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

0 commit comments

Comments
 (0)