Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CppGenerator Class Reference

#include <cppgenerator.h>

Collaboration diagram for CppGenerator:

Classes

struct  SecurityHeader

Public Member Functions

 CppGenerator (const Recognizer &p, Grammar &grammar, Automaton &aut, bool verbose)
void operator() ()
bool debugInfo () const
void setDebugInfo (bool d)
void setUsePragmaOnce (bool use)
void setSecurityHeader (SecurityHeader header)
void setCopyright (bool t)
void setCopyrightText (const QString &text)
void setEmitQtCode (bool t)
void setWarningsAreErrors (bool e)

Detailed Description

Definition at line 16 of file cppgenerator.h.

Constructor & Destructor Documentation

◆ CppGenerator()

CppGenerator::CppGenerator ( const Recognizer & p,
Grammar & grammar,
Automaton & aut,
bool verbose )
inline

Definition at line 34 of file cppgenerator.h.

Referenced by main().

Here is the caller graph for this function:

Member Function Documentation

◆ debugInfo()

bool CppGenerator::debugInfo ( ) const
inline

Definition at line 45 of file cppgenerator.h.

◆ operator()()

void CppGenerator::operator() ( )

Definition at line 153 of file cppgenerator.cpp.

References Grammar::expected_reduce_reduce, Grammar::expected_shift_reduce, Grammar::goal, Automaton::id(), Grammar::isNonTerminal(), Grammar::non_terminals, QT_FORWARD_DECLARE_CLASS(), Grammar::rules, Automaton::states, and Grammar::terminals.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCopyright()

void CppGenerator::setCopyright ( bool t)
inline

Definition at line 54 of file cppgenerator.h.

Referenced by main().

Here is the caller graph for this function:

◆ setCopyrightText()

void CppGenerator::setCopyrightText ( const QString & text)
inline

Definition at line 55 of file cppgenerator.h.

◆ setDebugInfo()

void CppGenerator::setDebugInfo ( bool d)
inline

Definition at line 46 of file cppgenerator.h.

Referenced by main().

Here is the caller graph for this function:

◆ setEmitQtCode()

void CppGenerator::setEmitQtCode ( bool t)
inline

Definition at line 56 of file cppgenerator.h.

Referenced by main().

Here is the caller graph for this function:

◆ setSecurityHeader()

void CppGenerator::setSecurityHeader ( SecurityHeader header)
inline

Definition at line 49 of file cppgenerator.h.

Referenced by main().

Here is the caller graph for this function:

◆ setUsePragmaOnce()

void CppGenerator::setUsePragmaOnce ( bool use)
inline

Definition at line 48 of file cppgenerator.h.

Referenced by main().

Here is the caller graph for this function:

◆ setWarningsAreErrors()

void CppGenerator::setWarningsAreErrors ( bool e)
inline

Definition at line 58 of file cppgenerator.h.

Referenced by main().

Here is the caller graph for this function:

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