@@ -85,7 +85,7 @@ llvm::StringRef GetString(const llvm::json::Object *obj, llvm::StringRef key,
8585// /
8686// / \return
8787// / The unsigned integer value for the specified \a key, or
88- // / std::nullopt if there is no key that matches or if the
88+ // / \a std::nullopt if there is no key that matches or if the
8989// / value is not an integer.
9090std::optional<uint64_t > GetUnsigned (const llvm::json::Object &obj,
9191 llvm::StringRef key);
@@ -102,7 +102,7 @@ std::optional<uint64_t> GetUnsigned(const llvm::json::Object *obj,
102102// / The key to use when extracting the value
103103// /
104104// / \return
105- // / The boolean value for the specified \a key, or std::nullopt
105+ // / The boolean value for the specified \a key, or \a std::nullopt
106106// / if there is no key that matches or if the value is not a
107107// / boolean value of an integer.
108108// / @{
@@ -123,12 +123,12 @@ std::optional<bool> GetBoolean(const llvm::json::Object *obj,
123123// /
124124// / \return
125125// / The signed integer value for the specified \a key, or
126- // / \a fail_value if there is no key that matches or if the
126+ // / \a std::nullopt if there is no key that matches or if the
127127// / value is not an integer.
128- int64_t GetSigned (const llvm::json::Object &obj, llvm::StringRef key ,
129- int64_t fail_value );
130- int64_t GetSigned (const llvm::json::Object *obj, llvm::StringRef key ,
131- int64_t fail_value );
128+ std::optional< int64_t > GetSigned (const llvm::json::Object &obj,
129+ llvm::StringRef key );
130+ std::optional< int64_t > GetSigned (const llvm::json::Object *obj,
131+ llvm::StringRef key );
132132
133133// / Check if the specified key exists in the specified object.
134134// /
0 commit comments