[clang-tidy] use nodiscard
Introduced in C++17. It replaces gcc's warn_unused_result. Found with modernize-use-nodiscard. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -61,10 +61,10 @@ struct WatchDirectory {
|
||||
WatchDirectory(const WatchDirectory &) = delete;
|
||||
WatchDirectory &operator=(const WatchDirectory &) = delete;
|
||||
|
||||
gcc_pure
|
||||
[[nodiscard]] gcc_pure
|
||||
unsigned GetDepth() const noexcept;
|
||||
|
||||
gcc_pure
|
||||
[[nodiscard]] gcc_pure
|
||||
AllocatedPath GetUriFS() const noexcept;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user