From d0639fb5b36bf711a9dc65ab4534ee459a7b71d7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Sep 2024 16:34:19 +0200 Subject: [PATCH] Completion: add "pure" attribute --- src/Completion.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Completion.hxx b/src/Completion.hxx index 73fb7059..98c0d578 100644 --- a/src/Completion.hxx +++ b/src/Completion.hxx @@ -59,6 +59,7 @@ public: Range range; }; + [[nodiscard]] [[gnu::pure]] Result Complete(std::string_view prefix) const noexcept; virtual void Pre(std::string_view value) noexcept = 0;