GCC Middle and Back End API Reference
|
#include <diagnostic-digraphs.h>
Public Member Functions | |
virtual | ~lazy_digraphs () |
const std::vector< std::unique_ptr< digraph > > & | get_or_create_digraphs () const |
Private Member Functions | |
virtual std::unique_ptr< std::vector< std::unique_ptr< digraph > > > | create_digraphs () const =0 |
Private Attributes | |
std::unique_ptr< std::vector< std::unique_ptr< digraph > > > | m_digraphs |
Abstract base class for lazily creating a collection of digraphs on demand. This allows us to avoid the work of creating the digraphs for the common case where we just have a text sink.
|
inlinevirtual |
|
privatepure virtual |
Implemented in prebuilt_digraphs.
Referenced by get_or_create_digraphs().
const std::vector< std::unique_ptr< diagnostics::digraphs::digraph > > & diagnostics::digraphs::lazy_digraphs::get_or_create_digraphs | ( | ) | const |
References create_digraphs(), gcc_assert, and m_digraphs.
|
mutableprivate |
Referenced by get_or_create_digraphs().