Skip to content

Commit e590ed9

Browse files
committed
mitigated some bugprone-exception-escape calng-tidy warnings by marking fucntions noexcept
1 parent c88ad58 commit e590ed9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ simplecpp::TokenList::TokenList(const TokenList &other) : frontToken(nullptr), b
510510
*this = other;
511511
}
512512

513-
simplecpp::TokenList::TokenList(TokenList &&other) : frontToken(nullptr), backToken(nullptr), files(other.files)
513+
simplecpp::TokenList::TokenList(TokenList &&other) noexcept : frontToken(nullptr), backToken(nullptr), files(other.files)
514514
{
515515
*this = std::move(other);
516516
}

simplecpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ namespace simplecpp {
311311
/** generates a token list from the given filename parameter */
312312
TokenList(const std::string &filename, std::vector<std::string> &filenames SIMPLECPP_LIFETIMEBOUND, OutputList *outputList = nullptr);
313313
TokenList(const TokenList &other);
314-
TokenList(TokenList &&other);
314+
TokenList(TokenList &&other) noexcept;
315315
~TokenList();
316316
TokenList &operator=(const TokenList &other);
317317
TokenList &operator=(TokenList &&other);

0 commit comments

Comments
 (0)