Changeset View
Changeset View
Standalone View
Standalone View
src/kconfig_compiler/KConfigCodeGeneratorBase.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
---|---|---|---|---|---|
57 | void addHeaders(const QStringList &header); | 57 | void addHeaders(const QStringList &header); | ||
58 | 58 | | |||
59 | // Create all the namespace indentation levels based on the parsed result and parameters */ | 59 | // Create all the namespace indentation levels based on the parsed result and parameters */ | ||
60 | void beginNamespaces(); | 60 | void beginNamespaces(); | ||
61 | 61 | | |||
62 | // Closes all the namespaces adding lines with single '}' | 62 | // Closes all the namespaces adding lines with single '}' | ||
63 | void endNamespaces(); | 63 | void endNamespaces(); | ||
64 | 64 | | |||
65 | // Add the correct amount of whitespace in the code. | 65 | // Add the correct amount of whitespace in the code. and return the stream | ||
66 | QString whitespace() const; | 66 | QTextStream &whitespace(); | ||
67 | 67 | | |||
68 | // start a block scope `{` and increase indentation level. | 68 | // start a block scope `{` and increase indentation level. | ||
69 | void endScope(ScopeFinalizer finalizer = None); | 69 | void endScope(ScopeFinalizer finalizer = None); | ||
70 | 70 | | |||
71 | // end a block scope `}` and decrease indentation level. | 71 | // end a block scope `}` and decrease indentation level. | ||
72 | void startScope(); | 72 | void startScope(); | ||
73 | 73 | | |||
74 | // start writing to the output file | 74 | // start writing to the output file | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |