wex  v21.04.0
Public Member Functions | List of all members
wex::beautify Class Reference

This class defines a class that allows to beautify source code. More...

#include <wex/beautify.h>

Public Member Functions

bool file (const path &p) const
 Beautifies the specified file. More...
 
bool is_active () const
 Return true if beautifier is set non-empty in the config.
 
bool is_auto () const
 Return true if auto beautifier is set in the config.
 
bool is_supported (const lexer &l) const
 Returns true if specified lexer can be beautified.
 
std::list< std::string > list () const
 Returns default beautifiers.
 
bool stc (stc &s) const
 Beautifies the specified stc component. More...
 

Detailed Description

This class defines a class that allows to beautify source code.

Member Function Documentation

◆ file()

bool wex::beautify::file ( const path p) const

Beautifies the specified file.

Return false if it did not succeed.

◆ stc()

bool wex::beautify::stc ( stc s) const

Beautifies the specified stc component.

Return false if it did not succeed.