Many standard class templates have default arguments
15
Some types are aliases for longer things, too
16
Reporting type information accurately means long lines
17
Emacs can help - Treat C++ type names as just another kind of balanced expression
18
Add overlays to improve readability
19
Create a minor mode that runs during compilation
20
Parsing types as balanced expressions
21
Indent and fill with overlays - Use ancient "pretty printing" algorithms"
22
Overlays can mimic line breaks and indentation
23
Hiding details - Marking depths with overlays
24
Hiding to a target depth
25
Demo
26
Conclusion
Description:
Explore how to enhance C++ compiler diagnostics using Emacs overlays in this 21-minute conference talk from EmacsConf 2023. Learn about overlay creation, properties, and manipulation techniques before diving into practical applications for improving C++ error message readability. Discover how to treat C++ type names as balanced expressions, create a minor mode for compilation, and implement indentation and hiding strategies using overlays. Gain insights into parsing complex types, applying pretty printing algorithms, and customizing overlay depth for optimal diagnostics display. Conclude with a demonstration showcasing the power of overlays in simplifying C++ compiler output within Emacs.
Improving Compiler Diagnostics with Overlays in Emacs - EmacsConf 2023