Skip to content

[SR-13237] Remove ModuleDecl::isClangModule() #55678

Closed
@typesanitizer

Description

@typesanitizer
Previous ID SR-13237
Radar rdar://problem/65695036
Original Reporter @typesanitizer
Type Task
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Task, StarterBug
Assignee mateioprea (JIRA)
Priority Medium

md5: 391d6faee40b854813aa4ea3984c1ae5

Issue Description:

The method's name is awfully misleading. A function prefixed with is should not have side-effects. But this method does module loading!!! 🙁

We should get rid of this method and replace call-sites with isNonSwiftModule(). I looked at the two uses and I think both of them are relying on it only for printing and not for module loading, so I'm somewhat confident the behavior is not going to change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions