Skip to content

Commit 6c3679d

Browse files
committed
mitigated some bugprone-exception-escape clang-tidy warnings by marking fucntions noexcept
1 parent 08c4e6a commit 6c3679d

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
@@ -512,7 +512,7 @@ simplecpp::TokenList::TokenList(const TokenList &other) : frontToken(nullptr), b
512512
*this = other;
513513
}
514514

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

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)