mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -139,7 +139,7 @@ public:
|
||||
|
||||
bool isInputPrimary(StringRef file) const;
|
||||
|
||||
unsigned numberOfPrimaryInputsEndingWith(const char *extension) const;
|
||||
unsigned numberOfPrimaryInputsEndingWith(StringRef extension) const;
|
||||
|
||||
// Multi-facet readers
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ bool FrontendInputsAndOutputs::isInputPrimary(StringRef file) const {
|
||||
}
|
||||
|
||||
unsigned FrontendInputsAndOutputs::numberOfPrimaryInputsEndingWith(
|
||||
const char *extension) const {
|
||||
StringRef extension) const {
|
||||
unsigned n = 0;
|
||||
(void)forEachPrimaryInput([&](const InputFile &input) -> bool {
|
||||
if (llvm::sys::path::extension(input.file()).endswith(extension))
|
||||
|
||||
Reference in New Issue
Block a user