forked from qt-creator/qt-creator
Clang: Remove redundant check
Excluding for __cplusplus macro is not required anymore because we currently determine C and C++ files and do not set this macro for C-files. Does not break QTCREATORBUG-12818. Change-Id: I40d5afcb9ef426a6469fb5134ec7d46438201d86 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -487,10 +487,6 @@ QString CompilerOptionsBuilder::includeOption() const
|
|||||||
|
|
||||||
bool CompilerOptionsBuilder::excludeDefineDirective(const ProjectExplorer::Macro ¯o) const
|
bool CompilerOptionsBuilder::excludeDefineDirective(const ProjectExplorer::Macro ¯o) const
|
||||||
{
|
{
|
||||||
// TODO: Remove in QtCreator 4.7
|
|
||||||
if (macro.key == "__cplusplus")
|
|
||||||
return true;
|
|
||||||
|
|
||||||
// Ignore for all compiler toolchains since LLVM has it's own implementation for
|
// Ignore for all compiler toolchains since LLVM has it's own implementation for
|
||||||
// __has_include(STR) and __has_include_next(STR)
|
// __has_include(STR) and __has_include_next(STR)
|
||||||
if (macro.key.startsWith("__has_include"))
|
if (macro.key.startsWith("__has_include"))
|
||||||
|
Reference in New Issue
Block a user