forked from qt-creator/qt-creator
GenericProject: Support forwarding flags to clang code model
...in order to specify e.g. the language version to use. Create the additional files project.cxxflags and project.cflags. These are expected to contain command line flags for the clang code model on one single line. For example, "-std=c++11" can be provided to set the language version for parsing. Fixes: QTCREATORBUG-19668 Change-Id: I7712f546ba1fae536c32adfa5bd449c5b3484521 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -36,5 +36,9 @@ const char FILES_EDITOR_ID[] = "QT4.FilesEditor";
|
||||
// Project
|
||||
const char GENERICPROJECT_ID[] = "GenericProjectManager.GenericProject";
|
||||
|
||||
// File Templates
|
||||
const char GENERICPROJECT_CXXFLAGS_FILE_TEMPLATE[] = "-std=c++17";
|
||||
const char GENERICPROJECT_CFLAGS_FILE_TEMPLATE[] = "-std=c17";
|
||||
|
||||
} // namespace Constants
|
||||
} // namespace GenericProjectManager
|
||||
|
||||
Reference in New Issue
Block a user