forked from qt-creator/qt-creator
ClangCodeModel: Prefer ui headers from ExtraCompilers
... to the ones from the actual build. The former are generally more up- to-date. Fixes: QTCREATORBUG-25937 Change-Id: I20859de9816457c340d9e1ec6a3008c536537d8b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -165,6 +165,11 @@ void CompilerOptionsBuilder::add(const QString &arg, bool gccOnlyOption)
|
||||
add(QStringList{arg}, gccOnlyOption);
|
||||
}
|
||||
|
||||
void CompilerOptionsBuilder::prepend(const QString &arg)
|
||||
{
|
||||
m_options.prepend(arg);
|
||||
}
|
||||
|
||||
void CompilerOptionsBuilder::add(const QStringList &args, bool gccOnlyOptions)
|
||||
{
|
||||
m_options.append((gccOnlyOptions && isClStyle()) ? clangArgsForCl(args) : args);
|
||||
|
||||
Reference in New Issue
Block a user