forked from qt-creator/qt-creator
ClangFormat: Use relevant settings for each file
Existing Clang Format settings may not follow the project/global pattern but can be expected to be used for the indentation/formatting. So let's proceed with UI for global/project settings but use global settings only if there's no configuration found for the current file. Change-Id: I87c25ab3feb7e2e3deb0290848088657783cf972 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -27,4 +27,6 @@
|
||||
|
||||
namespace ClangFormat {
|
||||
static const char SETTINGS_FILE_NAME[] = ".clang-format";
|
||||
static const char SETTINGS_FILE_ALT_NAME[] = "_clang-format";
|
||||
static const char SAMPLE_FILE_NAME[] = "test.cpp";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user