From 10969fd003919ba32072ead5d134e024bd37f228 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 6 Jul 2021 16:11:42 +0200 Subject: cmLocalGenerator: Remove unnecessary parentheses in a condition --- Source/cmLocalGenerator.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 051b15a..5fbff6c 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1253,15 +1253,15 @@ std::vector> cmLocalGenerator::GetIncludeDirectoriesImplicit( auto notExcluded = [this, &implicitSet, &implicitExclude, isCorCxx](std::string const& dir) -> bool { std::string const& real_dir = this->GlobalGenerator->GetRealPath(dir); - return ( + return // Do not exclude directories that are not in an excluded set. - ((!cm::contains(implicitSet, real_dir)) && - (!cm::contains(implicitExclude, dir))) + (!cm::contains(implicitSet, real_dir) && + !cm::contains(implicitExclude, dir)) // Do not exclude entries of the CPATH environment variable even though // they are implicitly searched by the compiler. They are meant to be // user-specified directories that can be re-ordered or converted to // -isystem without breaking real compiler builtin headers. - || (isCorCxx && cm::contains(this->EnvCPATH, dir))); + || (isCorCxx && cm::contains(this->EnvCPATH, dir)); }; // Get the target-specific include directories. -- cgit v0.12