From 0947cc19990efd333857f8cd4aaf4c80fbd5fa4e Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 30 May 2024 11:20:10 +0200 Subject: [PATCH] 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 --- src/plugins/cppeditor/compileroptionsbuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/cppeditor/compileroptionsbuilder.cpp b/src/plugins/cppeditor/compileroptionsbuilder.cpp index a860edbee34..8bd1219a5d2 100644 --- a/src/plugins/cppeditor/compileroptionsbuilder.cpp +++ b/src/plugins/cppeditor/compileroptionsbuilder.cpp @@ -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.