Skip to content

Commit 4eddddd

Browse files
committed
mitigated some bugprone-exception-escape clang-tidy warnings by marking fucntions noexcept
1 parent f1edc0f commit 4eddddd

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
@@ -307,7 +307,7 @@ namespace simplecpp {
307307
/** generates a token list from the given filename parameter */
308308
TokenList(const std::string &filename, std::vector<std::string> &filenames SIMPLECPP_LIFETIMEBOUND, OutputList *outputList = nullptr);
309309
TokenList(const TokenList &other);
310-
TokenList(TokenList &&other);
310+
TokenList(TokenList &&other) noexcept;
311311
~TokenList();
312312
TokenList &operator=(const TokenList &other);
313313
TokenList &operator=(TokenList &&other);

0 commit comments

Comments
 (0)