Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::compactness::Metrics Struct Reference

#include <compactness.hpp>

Public Attributes

std::uint64_t files {}
 Number of canonical, distinct input paths.
std::uint64_t sourceBytes {}
 Original file bytes, including BOM and newlines.
std::uint64_t lexicalTokensApprox {}
 Approximate preprocessing tokens, including directives.
std::uint64_t codeLines {}
 Physical lines intersecting token spelling.
std::uint64_t preprocessorDirectives {}
 Directives introduced at logical line start.
std::uint64_t preprocessorTokens {}
 Tokens belonging to directives, including the introducer.
std::uint64_t commentBytes {}
 Normalized source spelling bytes occupied by comments.
std::uint64_t stringLiteralBytes {}
 Normalized string spelling bytes including prefix and suffix.
std::uint64_t maxLineBytes {}
 Maximum physical line length in UTF-8 bytes, excluding BOM/newline.
std::uint64_t maxBraceNesting {}
 Maximum lexical brace depth outside directives, per file.

Detailed Description

Lexical measurements of explicitly supplied complete source files.


The documentation for this struct was generated from the following file: