CppEditor: Blacklist another gcc-only option for clang tools

As per https://lists.qt-project.org/pipermail/qt-creator/2024-May/
009262.html.

Change-Id: Id8993f874c7bfc8d1cbdf03045a0f0f953d86ca4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2024-05-30 11:20:10 +02:00
parent 876f131b84
commit 0947cc1999

View File

@@ -899,8 +899,8 @@ void CompilerOptionsBuilder::evaluateCompilerFlags()
continue;
}
// GCC option that clang doesn't know.
if (option.contains("direct-extern-access"))
// GCC options that clang doesn't know.
if (option.contains("direct-extern-access") || option == "-fnothrow-opt")
continue;
// These were already parsed into ProjectPart::includedFiles.