Skip to content

Change __builtin_types to __builtin_types_compatible_p#1647

Merged
semmle-qlci merged 4 commits intogithub:masterfrom
zlaski-semmle:zlaski/builtin-types-compatible-p
Jul 30, 2019
Merged

Change __builtin_types to __builtin_types_compatible_p#1647
semmle-qlci merged 4 commits intogithub:masterfrom
zlaski-semmle:zlaski/builtin-types-compatible-p

Conversation

@zlaski-semmle
Copy link
Contributor

Noting that (1) __builtin_types has no known definition or uses and (2) the QL library does not handle __builtin_types_compatible_p, I propose to rename the former to the latter.

@zlaski-semmle zlaski-semmle requested a review from a team as a code owner July 29, 2019 22:44
*/
class BuiltInOperationBuiltInTypes extends BuiltInOperation, @typescompexpr {
override string toString() { result = "__builtin_types" }
class BuiltInOperationBuiltInTypesCompatibleP extends BuiltInOperation, @typescompexpr {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably being overly paranoid here, but since the name BuiltInOperationBuiltInTypes was part of the supported API, we shouldn't make that name go away without deprecating it for a few releases first. I recommend adding an alias from the old name to the new name, something like:

  /**
   * DEPRECATED: Use `BuiltInOperationBuiltInTypesCompatibleP instead.instead.
   */
  deprecated
  class BuiltInOperationBuiltInTypes = BuiltInOperationBuiltInTypesCompatibleP;this.getChild(0) }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll add that.

…nBuiltInTypesCompatibleP,

for backward compatibility.
Co-Authored-By: Dave Bartolomeo <42150477+dave-bartolomeo@users.noreply.github.com>
Copy link
Contributor

@dave-bartolomeo dave-bartolomeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments