Skip to content

Commit

Permalink
Require all CppSupportCheckers to allow cpp support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Googler authored and mai93 committed Mar 18, 2024
1 parent aae6c5e commit 0fa85d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/src/com/google/idea/blaze/cpp/CppSupportChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public interface CppSupportChecker {
static boolean isSupportedCppConfiguration(
CidrCompilerSwitches compilerSwitches, Path workspaceRoot) {
for (CppSupportChecker checker : EP_NAME.getExtensionList()) {
if (checker.supportsCppConfiguration(compilerSwitches, workspaceRoot)) {
logger.info("CPP support allowed by " + checker.getClass().getName());
return true;
if (!checker.supportsCppConfiguration(compilerSwitches, workspaceRoot)) {
logger.info("CPP support disallowed by " + checker.getClass().getName());
return false;
}
}
return false;
return true;
}

boolean supportsCppConfiguration(CidrCompilerSwitches switches, Path workspaceRoot);
Expand Down

0 comments on commit 0fa85d7

Please sign in to comment.