Lumiera  0.pre.03
»edit your freedom«
TypeDisplay_test Class Reference

Description

Test:
verify post processing of demangled C++ type names.

The purpose of those pretty printing functions is to support diagnostics and unit testing by making type names easier to digest. But of course we do not want to pick the wrong primary type for shortened display and we do not want mess up the semantic structure.

  • the first example should be passed through unaltered
  • the second example demonstrates various simplifications
    • strip some frequent namespace prefixes ** std:: ** lib::meta:: ** steam::mobject::
    • omit the standard allocator from STL containers
  • the third example demonstrates an embedded function signature
    • the primary type component is "`function`"
    • anything leading up to anonymous namespaces will be stripped
    • our special smart-ptr lib::P will be simplified

The remainder of the test concentrates on the corner cases of lib::meta::primaryTypeComponent – especially when the solution approach breaks down, e.g. on pure function types.

See also
format-cout.hpp
FormatCOUT_test
FormatHelper_test

Definition at line 93 of file type-display-test.cpp.

Private Member Functions

void run (Arg)
 
+ Inheritance diagram for TypeDisplay_test:
+ Collaboration diagram for TypeDisplay_test:

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