forked from qt-creator/qt-creator
ClangFormat: Add the logical settings management
Now there are changeable and unchangeable settings, as it works for usual codestyle settings. They save parallel with codestyle settings but in another dir. In general, the behavior became similar to usual codestyle settings. ToDo: Make indenter use this settings instead standard one and instead project settings when "override" checkbox is checked. Change-Id: I639dbda296932bf9b967a11f1cc4fda120415ed9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -46,10 +46,12 @@ std::string currentGlobalConfigText();
|
||||
|
||||
clang::format::FormatStyle currentProjectStyle();
|
||||
clang::format::FormatStyle currentGlobalStyle();
|
||||
std::string readFile(const QString &path);
|
||||
|
||||
// Is the style from the matching .clang-format file or global one if it's not found.
|
||||
QString configForFile(Utils::FilePath fileName);
|
||||
clang::format::FormatStyle styleForFile(Utils::FilePath fileName);
|
||||
void saveStyleToFile(clang::format::FormatStyle style, Utils::FilePath filePath);
|
||||
|
||||
void addQtcStatementMacros(clang::format::FormatStyle &style);
|
||||
clang::format::FormatStyle qtcStyle();
|
||||
|
||||
Reference in New Issue
Block a user