We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc65534 commit db68225Copy full SHA for db68225
clang/lib/Driver/ModulesDriver.cpp
@@ -77,11 +77,11 @@ using tooling::dependencies::ScanningMode;
77
using tooling::dependencies::ScanningOutputFormat;
78
using tooling::dependencies::TranslationUnitDeps;
79
80
-/// Returns true if any source input is of type c++-module.
+/// Returns true if any source input signals C++ module usage.
81
static bool hasCXXNamedModuleInput(const InputList &Inputs) {
82
const auto IsTypeCXXModule = [](const auto &Input) -> bool {
83
const auto TypeID = Input.first;
84
- return (TypeID == types::TY_CXXModule);
+ return (TypeID == types::TY_CXXModule || TypeID == types::TY_PP_CXXModule);
85
};
86
return any_of(Inputs, IsTypeCXXModule);
87
}
0 commit comments