Skip to content

Conversation

@CodaFi
Copy link
Member

@CodaFi CodaFi commented Jan 21, 2017

Includes a simple demonstration of what variable definitions look like that can be reverted upon request.

@CodaFi CodaFi requested a review from harlanhaskins January 22, 2017 00:07
Copy link
Member

@harlanhaskins harlanhaskins left a comment

Choose a reason for hiding this comment

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

LGTM


// This holds all the current filecheck variables.
var variableTable = [String:String]()
var variableTable = BoxedTable()
Copy link
Member

Choose a reason for hiding this comment

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

No Box<T>?

Copy link
Member Author

Choose a reason for hiding this comment

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

I considered it, then realized I only wrote this thing because the C++ just throws a reference to this dictionary everywhere so I only need reference semantics until I can find a way to remove the abstraction altogether.

// VariableTable[VariableDef.0] = MatchInfo[VariableDef.second]
for (v, index) in self.variableDefs {
assert(index < fullMatch.numberOfRanges, "Internal paren error")
#if os(macOS)
Copy link
Member

Choose a reason for hiding this comment

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

Sad!

@CodaFi
Copy link
Member Author

CodaFi commented Jan 22, 2017

Besides pretty diagnostics, the last thing to do here to get feature parity with file check is to support implicit-not.

@harlanhaskins
Copy link
Member

:shipit:

@CodaFi
Copy link
Member Author

CodaFi commented Jan 22, 2017

⛵️

@CodaFi CodaFi merged commit 20173ff into llvm-swift:master Jan 22, 2017
@CodaFi CodaFi deleted the varmint-grease branch January 22, 2017 00:13
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.

2 participants