forked from qt-creator/qt-creator
Clangformat: Brings back some of checkboxes
Brought back checkboxes: format while typing, format on save. Brought back format while typing feature. Global checkboxes will be hidden in project settings, and visible for global. Change-Id: I193cf9e13b10de22091edb5fe04aef957dd74586 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -49,9 +49,17 @@ public:
|
||||
void setMode(Mode mode);
|
||||
Mode mode() const;
|
||||
|
||||
void setFormatWhileTyping(bool enable);
|
||||
bool formatWhileTyping() const;
|
||||
|
||||
void setFormatOnSave(bool enable);
|
||||
bool formatOnSave() const;
|
||||
|
||||
private:
|
||||
bool m_overrideDefaultFile = false;
|
||||
Mode m_mode;
|
||||
bool m_overrideDefaultFile = false;
|
||||
bool m_formatWhileTyping = false;
|
||||
bool m_formatOnSave = false;
|
||||
};
|
||||
|
||||
} // namespace ClangFormat
|
||||
|
||||
Reference in New Issue
Block a user