Skip to content

Commit db68225

Browse files
committed
Check for TY_PP_CXXModule in hasCXXNamedModuleInput
1 parent dc65534 commit db68225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ModulesDriver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ using tooling::dependencies::ScanningMode;
7777
using tooling::dependencies::ScanningOutputFormat;
7878
using tooling::dependencies::TranslationUnitDeps;
7979

80-
/// Returns true if any source input is of type c++-module.
80+
/// Returns true if any source input signals C++ module usage.
8181
static bool hasCXXNamedModuleInput(const InputList &Inputs) {
8282
const auto IsTypeCXXModule = [](const auto &Input) -> bool {
8383
const auto TypeID = Input.first;
84-
return (TypeID == types::TY_CXXModule);
84+
return (TypeID == types::TY_CXXModule || TypeID == types::TY_PP_CXXModule);
8585
};
8686
return any_of(Inputs, IsTypeCXXModule);
8787
}

0 commit comments

Comments
 (0)