Bash++
Bash++ compiler internal documentation
Public Member Functions | List of all members
bpp::ErrorHandling::Warning Class Reference

A compiler warning that is not fatal to compilation This type should never be thrown. Instead, it should be constructed and displayed via the print() method. Throwing it would halt compilation, which is not desired for warnings. This class likewise can be constructed from any listener that satisfies the ErrorReportableListener concept, along with an AST node or token that satisfies the ASTNodePtrORToken concept. More...

#include <SyntaxError.h>

Inheritance diagram for bpp::ErrorHandling::Warning:
Inheritance graph
[legend]
Collaboration diagram for bpp::ErrorHandling::Warning:
Collaboration graph
[legend]

Public Member Functions

 Warning ()=delete
 
 Warning (const std::string &msg)=delete
 
template<bpp::detail::ErrorReportableListener Listener, bpp::detail::ASTNodePtrORToken T>
 Warning (Listener *listener, const T &error_ctx, const std::string &msg)
 
- Public Member Functions inherited from bpp::ErrorHandling::ErrorOrWarning
 ErrorOrWarning ()=delete
 
 ErrorOrWarning (const std::string &msg)=delete
 
template<bpp::detail::ErrorReportableListener Listener, bpp::detail::ASTNodePtrORToken T>
 ErrorOrWarning (Listener *listener, const T &error_ctx, const std::string &msg)
 
void print () const
 

Additional Inherited Members

- Protected Member Functions inherited from bpp::ErrorHandling::ErrorOrWarning
template<bpp::detail::ErrorReportableListener Listener, bpp::detail::ASTNodePtrORToken T>
void set_from_listener (Listener *listener, T error_ctx)
 
- Protected Attributes inherited from bpp::ErrorHandling::ErrorOrWarning
std::string source_file
 
uint32_t line
 
uint32_t column
 
uint32_t text_length
 
std::vector< std::string > include_chain
 
std::shared_ptr< bpp::bpp_programprogram
 
bool lsp_mode
 
bool is_warning
 

Detailed Description

A compiler warning that is not fatal to compilation This type should never be thrown. Instead, it should be constructed and displayed via the print() method. Throwing it would halt compilation, which is not desired for warnings. This class likewise can be constructed from any listener that satisfies the ErrorReportableListener concept, along with an AST node or token that satisfies the ASTNodePtrORToken concept.

Constructor & Destructor Documentation

◆ Warning() [1/3]

bpp::ErrorHandling::Warning::Warning ( )
delete

◆ Warning() [2/3]

bpp::ErrorHandling::Warning::Warning ( const std::string &  msg)
explicitdelete

◆ Warning() [3/3]

bpp::ErrorHandling::Warning::Warning ( Listener *  listener,
const T &  error_ctx,
const std::string &  msg 
)
inline

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