Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Parser][QoI] Offer fixit for changing the platform condition kind #25977
In case there’s an exact match with a value of an alternate kind, this solution offers a single fixit to change the platform conditional kind. For example:
In case there’s only a case-insensitive match with a value of an alternate kind, this solution offers two fixits: one for the kind and one for the value. For example:
To search for a match in an alternate platform conditional kind, we need a way to loop through the different platform conditional value arrays (SupportedConditionalCompilationOSs, SupportedConditionalCompilationArches, …), for which I’m using a std::pair<const StringRef*, size_t> to represent each array. I’m open to suggestions on an alternate representation.