Skip to content

Commit 68ae054

Browse files
committed
mitigated some bugprone-exception-escape clang-tidy warnings by marking fucntions noexcept
1 parent 3c9769b commit 68ae054

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
@@ -515,7 +515,7 @@ simplecpp::TokenList::TokenList(const TokenList &other) : frontToken(nullptr), b
515515
*this = other;
516516
}
517517

518-
simplecpp::TokenList::TokenList(TokenList &&other) : frontToken(nullptr), backToken(nullptr), files(other.files)
518+
simplecpp::TokenList::TokenList(TokenList &&other) noexcept : frontToken(nullptr), backToken(nullptr), files(other.files)
519519
{
520520
*this = std::move(other);
521521
}

simplecpp.h

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

0 commit comments

Comments
 (0)