Mercurial > octave
diff libinterp/corefcn/help.h @ 33139:4e0f8b80bd2f stable
Find class/ctor help for 'CLS.m' if CLS has no method named 'm' (bug #65398)
* help.h, help.cc (help_system::raw_help_for_class): New function,
extracted from help_system:raw_help_from_symbol_table.
* help.cc (help_system:raw_help_from_symbol_table): Call raw_help_for_class twice:
first in the location of the original code and then again at the end of the
function in a last attempt to find help for CLS if we are searching for the
documentation for CLS.m and there is no method 'm' in the class CLS.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 04 Mar 2024 00:41:31 -0500 |
parents | 2faec354b977 |
children |
line wrap: on
line diff
--- a/libinterp/corefcn/help.h Sun Mar 03 11:55:08 2024 -0800 +++ b/libinterp/corefcn/help.h Mon Mar 04 00:41:31 2024 -0500 @@ -38,6 +38,7 @@ OCTAVE_BEGIN_NAMESPACE(octave) +class cdef_class; class interpreter; class help_system @@ -191,6 +192,10 @@ string_vector local_functions () const; + bool raw_help_for_class (const cdef_class& cls, const std::string& nm, + std::string& h, std::string& w, + bool& symbol_found) const; + bool raw_help_from_symbol_table (const std::string& nm, std::string& h, std::string& w, bool& symbol_found) const;