Appearance
Exclusion Gates & Ignore Filters
In large enterprise codebases, documentation portals can easily become cluttered with private boilerplates and internal helpers. Flude provides a small, precise set of exclusion mechanisms to keep your public developer API documentation clean — but it is important to know exactly what is and isn't filtered automatically. As of v2.0, path/file-based scoping is partially available (three collector-config keys, documented below) — a general namespace-based scope or a true include allowlist is not yet available; see the corrected section below.
🚪 Why Filter Documentation?
Not all code is meant to be exposed. Internal helper classes and low-level implementation details distract external developers and increase cognitive load. By filtering out non-public APIs, you:
- Ensure users focus only on public, supported APIs.
- Keep compiled index sizes small for fast search and load times.
- Prevent leaks of internal implementation details.
🛠️ Exclusion Techniques
Flude supports the following real, source-level filtering mechanisms:
1. Member & Class Tagging (@internal / \internal)
The @internal or \internal tag, placed anywhere in a docstring, causes the entire class, method, enum, or field/variable to be silently dropped from the catalog entirely — not rendered, not linked, not even counted anywhere downstream. This check is applied independently at the class, method, enum, and field/variable level.
cpp
/**
* \internal
* This class handles memory buffer layouts and should not be public.
*/
class BufferLayoutManager { ... };2. Conditional / Ignored Blocks (DOM-IGNORE-BEGIN/END, \cond/\endcond, @cond/@endcond)
cpp
// DOM-IGNORE-BEGIN
class PrivateHelperEngine {
void InternalSetup();
};
// DOM-IGNORE-ENDcpp
/// @cond
void SecretCallbackAPI();
/// @endcond/// @cond ... /// @endcond is Doxygen's own mechanism. The DOM-IGNORE-BEGIN / DOM-IGNORE-END markers are converted into \cond / \endcond before Doxygen runs, by an input filter, so Doxygen leaves the whole block out of its XML: nothing inside it reaches the catalog. If the markers are unbalanced, or the braces inside the block are, the filter leaves that file untouched and reports the reason, so a broken marker never removes more than it should.
3. Anonymous Doxygen-Generated Enums
An anonymous enum that is a member of a class (Doxygen names it @N) is kept under a stable, class-scoped name, <ClassName>Enum, so that a legal idiom like enum { ... } m_flag; does not disappear; one marked @internal is still dropped.
4. Doxygen-Synthesized "Phantom" Namespaces
Namespaces Doxygen synthesizes with no real source file (marked location file="[generated]") are automatically skipped.
:::note Functional Traceability: Direct support for inline annotation filtering traces to REQ-FUN-13: Ignore Tags & Range Boundaries (previously mis-linked here as REQ-FUN-30, which was later reassigned to an unrelated TOC-hierarchy requirement — corrected 2026-07-21; link retargeted 2026-08-14 from the retired srs/functional page to the new requirements catalog). :::
🤖 SWIG Boilerplate Filtering — Opt-In
The doxygen parser backend can drop the plumbing that SWIG generates. It is off by default and is switched on in the parser section of the doc config:
json
{
"parser": { "exclude_swig_internals": true }
}With it on, a specific hardcoded set of names is dropped:
- Fields:
swigCPtr,swigCMemOwn - Methods:
Dispose,getCPtr
A related key, exclude_pinvoke_bridge, is read from the same section (default off). Nothing else is filtered automatically, and do not expect a filter_wrappers, exclude_namespaces, or similar JSON key: it does not exist.
📁 Path/File Exclusion — Available Since v2.0 (corrected 2026-08-14)
This section previously stated that no path/file-based exclusion existed. That was wrong as of v2.0 and has been corrected. Three declared ude_doc_config.json collector keys are wired directly into the generated Doxyfile (collectors/doxygen.py, verified against source):
exclude— a list of real file/directory paths (anchored to the source directory), wired to Doxygen'sEXCLUDEkey.exclude_patterns— wildcard patterns (e.g."*/Gi/*"), passed through verbatim to Doxygen'sEXCLUDE_PATTERNSkey.file_patterns— file-extension/name patterns (e.g."**/*.h"), wired to Doxygen'sFILE_PATTERNSkey. A leading**/is stripped automatically so "match at any depth" keeps its meaning against Doxygen's own per-directoryFILE_PATTERNSmatching.
These are real, declared config keys — not the collector.doxyfile_template escape hatch described below — and are already used in production. Worked example:
json
{
"collector": {
"file_patterns": ["**/*.h", "**/*.hpp"],
"exclude_patterns": ["*/internal/*", "*/detail/*"]
}
}Still genuinely missing (tracked as REQ-FUN-51 / REQ-V3-09: Path/File/Namespace Include-Exclude Scoping, traces to REQ-BUS-14, targeted V3.0 — not the banned "v2.0+" catch-all this section used to cite):
- A true
includeallowlist distinct fromfile_patterns-style narrowing. - Namespace-name-based scoping (as opposed to file-path-based scoping — the keys above operate on paths, never on a parsed namespace or symbol name).
- An implementation independent of Doxygen — the current mechanism is entirely a Doxyfile pass-through, so it will need reimplementing once native (non-Doxygen) parsers ship.
Two mechanisms remain genuinely absent, unchanged from before this correction:
- A
.agyignorefile exists in the engine repo, but it is a standard.gitignore-style file — it is never read by any engine code. It is not a Flude ignore mechanism. - A project can additionally reach Doxygen's own
EXCLUDE/FILE_PATTERNSkeys by supplying a customcollector.doxyfile_templatefile, since Doxyfile tiers are merged generically — this remains a valid Doxygen-level escape hatch alongside the three declared keys above, useful for Doxygen options the declared keys don't expose.
📊 Coverage Gate vs. Exclusion — These Are Different Things
The documentation coverage gate (ude audit, or the automatic post-compile audit table) is not a file/entity exclusion mechanism. It never removes anything from output. It only excludes specific names from its own coverage-percentage calculation: private _foo/dunder __foo__ names, logger, and a small hardcoded set of known Doxygen/Python-parser false-positive artifacts.
- Entities removed by
@internal, conditional blocks, anonymous enums, or phantom namespaces never reach the catalog at all — they don't appear in output or in coverage statistics, because they were never counted in the first place. - Entities the coverage gate excludes by name (private/dunder members,
logger, known parser artifacts) still appear in rendered output — they're just excluded from the coverage percentage, satisfying REQ-BUS-08: Documentation Coverage & Quality Gate Separation.
