Style (format) generated code.
More...
#include <style.h>
|
| Style (const std::string &file_name, const std::string &options) |
|
int | style () const |
| Call the astyle child process to style the generated C++ code. More...
|
|
|
static int | style (const std::string &file_name, const std::string &options) |
| Call the astyle child process to style the generated C++ code. More...
|
|
Style (format) generated code.
This class will call child process from 'astyle'.
◆ Style()
Style::Style |
( |
const std::string & |
file_name, |
|
|
const std::string & |
options |
|
) |
| |
◆ style() [1/2]
int Style::style |
( |
| ) |
const |
Call the astyle child process to style the generated C++ code.
- Returns
- (int) Exit code of 'astyle'.
◆ style() [2/2]
int Style::style |
( |
const std::string & |
file_name, |
|
|
const std::string & |
options |
|
) |
| |
|
static |
Call the astyle child process to style the generated C++ code.
- Parameters
-
file_name | The generated C++ file name to be formatted. |
options | The 'astyle' format options. |
- Returns
- (int) Exit code of 'astyle'.
◆ _file_name
std::string Style::_file_name |
|
private |
The generated C++ file name to be formatted.
◆ _options
std::string Style::_options |
|
private |
The 'astyle' format options.
The documentation for this class was generated from the following files: