aboutsummaryrefslogtreecommitdiff
path: root/mod/build-config-module.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-05-30 17:46:42 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-05-30 17:49:42 +0300
commita66efed44af2f9bc917d265ca7640ded40683f05 (patch)
tree8b034529c8a16d9eb9cce9b9bab0e21212823b85 /mod/build-config-module.hxx
parentc46d9c4b40d340470d1a9d30be9761f6334ab4d3 (diff)
Don't print classes derived from hidden on build configuration classes page
Diffstat (limited to 'mod/build-config-module.hxx')
-rw-r--r--mod/build-config-module.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/build-config-module.hxx b/mod/build-config-module.hxx
index c1630b0..bbbe952 100644
--- a/mod/build-config-module.hxx
+++ b/mod/build-config-module.hxx
@@ -54,15 +54,20 @@ namespace brep
default_all_ucs);
}
+ // Return true if a class is derived from the base class, recursively.
+ //
+ bool
+ derived (const string&, const char* base_class) const;
+
// Check if the configuration belongs to the specified class.
//
bool
belongs (const build_target_config&, const char*) const;
bool
- belongs (const build_target_config& cfg, const string& cls) const
+ belongs (const build_target_config& cfg, const string& classes) const
{
- return belongs (cfg, cls.c_str ());
+ return belongs (cfg, classes.c_str ());
}
// Target/configuration/toolchain combination that, in particular, can be