wex v24.10.0
|
This class adds functionality to factory to beautify source code from stc. More...
#include <wex/stc/beautify.h>
Public Member Functions | |
beautify (beautify_t=SOURCE) | |
Default constructor. | |
beautify (const path &p) | |
Constructor using a path. | |
bool | is_supported (const lexer &l) const |
Returns true if specified lexer can be beautified. | |
bool | stc (wex::stc &s) const |
Beautifies the specified stc component Return false if it did not succeed. | |
Public Member Functions inherited from wex::factory::beautify | |
beautify (beautify_t=UNKNOWN) | |
Default constructor, specify the beautify type. | |
beautify (const path &p) | |
Constructor, the path is used to set the beautify type. | |
bool | check (const path &p) |
Checks if a beautifier exists for specified path and sets type if so. | |
bool | file (const path &p) const |
Beautifies the specified file (the auto beautifier should explicitly be enabled). | |
bool | is_active () const |
Returns true if beautifier is set non-empty in the config. | |
bool | is_auto () const |
Returns true if auto beautifier is set in the config. | |
bool | is_supported (const path &p) const |
Returns true if specified path can be beautified. | |
config::strings_t | list () const |
Returns default beautifiers. | |
const std::string | name () const |
Returns the actual beautifier, or empty string if none selected. | |
beautify_t | type () const |
Returns the beautify type. | |
Additional Inherited Members | |
Public Types inherited from wex::factory::beautify | |
enum | beautify_t { CMAKE , SOURCE , UNKNOWN } |
The supported beautify types. More... | |
This class adds functionality to factory to beautify source code from stc.