{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift/pulls/comments/142032600","pull_request_review_id":66339594,"id":142032600,"diff_hunk":"@@ -76,6 +76,11 @@ class CompilerInvocation {\n \n   CodeCompletionCallbacksFactory *CodeCompletionFactory = nullptr;\n \n+  /// \\brief Used for holding the Swift code passed into the command line via\n+  /// the \"-e\" flag.\n+  // SR-5860 WIP: commented out for now because it produces a compiler error\n+  //  std::unique_ptr<llvm::MemoryBuffer> ImmediateExecutionBuffer;","path":"include/swift/Frontend/Frontend.h","position":7,"original_position":7,"commit_id":"bbd2324d686f9b55a3e6d37502ef23d6947f3be9","original_commit_id":"bbd2324d686f9b55a3e6d37502ef23d6947f3be9","user":{"login":"KeithErmel","id":280491,"avatar_url":"https://avatars1.githubusercontent.com/u/280491?v=4","gravatar_id":"","url":"https://api.github.com/users/KeithErmel","html_url":"https://github.com/KeithErmel","followers_url":"https://api.github.com/users/KeithErmel/followers","following_url":"https://api.github.com/users/KeithErmel/following{/other_user}","gists_url":"https://api.github.com/users/KeithErmel/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithErmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithErmel/subscriptions","organizations_url":"https://api.github.com/users/KeithErmel/orgs","repos_url":"https://api.github.com/users/KeithErmel/repos","events_url":"https://api.github.com/users/KeithErmel/events{/privacy}","received_events_url":"https://api.github.com/users/KeithErmel/received_events","type":"User","site_admin":false},"body":"Yeah, that was the plan.\r\n\r\nI suppose we could have `CompilerInstance` own the buffer containing those \"-e\" code snippets. It already contains a couple of `unique_ptr`s so it should be safe to add another, if I'm not mistaken.\r\n\r\nLet me play around with this a bit and see how to make this work. Thanks for the help!\r\n","created_at":"2017-10-01T15:27:57Z","updated_at":"2017-10-01T15:27:58Z","html_url":"https://github.com/apple/swift/pull/12199#discussion_r142032600","pull_request_url":"https://api.github.com/repos/apple/swift/pulls/12199","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/comments/142032600"},"html":{"href":"https://github.com/apple/swift/pull/12199#discussion_r142032600"},"pull_request":{"href":"https://api.github.com/repos/apple/swift/pulls/12199"}},"in_reply_to_id":142013953},"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/12199","id":144041764,"html_url":"https://github.com/apple/swift/pull/12199","diff_url":"https://github.com/apple/swift/pull/12199.diff","patch_url":"https://github.com/apple/swift/pull/12199.patch","issue_url":"https://api.github.com/repos/apple/swift/issues/12199","number":12199,"state":"open","locked":false,"title":"[WIP] SR-5860 Support \"swift -e\" for immediate execution","user":{"login":"KeithErmel","id":280491,"avatar_url":"https://avatars1.githubusercontent.com/u/280491?v=4","gravatar_id":"","url":"https://api.github.com/users/KeithErmel","html_url":"https://github.com/KeithErmel","followers_url":"https://api.github.com/users/KeithErmel/followers","following_url":"https://api.github.com/users/KeithErmel/following{/other_user}","gists_url":"https://api.github.com/users/KeithErmel/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithErmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithErmel/subscriptions","organizations_url":"https://api.github.com/users/KeithErmel/orgs","repos_url":"https://api.github.com/users/KeithErmel/repos","events_url":"https://api.github.com/users/KeithErmel/events{/privacy}","received_events_url":"https://api.github.com/users/KeithErmel/received_events","type":"User","site_admin":false},"body":"WIP - DO NOT MERGE","created_at":"2017-09-30T19:46:56Z","updated_at":"2017-10-01T15:27:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e888e6344bfcb9a97e544390d69c21e8a40f248","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift/pulls/12199/commits","review_comments_url":"https://api.github.com/repos/apple/swift/pulls/12199/comments","review_comment_url":"https://api.github.com/repos/apple/swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift/issues/12199/comments","statuses_url":"https://api.github.com/repos/apple/swift/statuses/bbd2324d686f9b55a3e6d37502ef23d6947f3be9","head":{"label":"KeithErmel:immediate-execution","ref":"immediate-execution","sha":"bbd2324d686f9b55a3e6d37502ef23d6947f3be9","user":{"login":"KeithErmel","id":280491,"avatar_url":"https://avatars1.githubusercontent.com/u/280491?v=4","gravatar_id":"","url":"https://api.github.com/users/KeithErmel","html_url":"https://github.com/KeithErmel","followers_url":"https://api.github.com/users/KeithErmel/followers","following_url":"https://api.github.com/users/KeithErmel/following{/other_user}","gists_url":"https://api.github.com/users/KeithErmel/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithErmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithErmel/subscriptions","organizations_url":"https://api.github.com/users/KeithErmel/orgs","repos_url":"https://api.github.com/users/KeithErmel/repos","events_url":"https://api.github.com/users/KeithErmel/events{/privacy}","received_events_url":"https://api.github.com/users/KeithErmel/received_events","type":"User","site_admin":false},"repo":{"id":103748882,"name":"swift","full_name":"KeithErmel/swift","owner":{"login":"KeithErmel","id":280491,"avatar_url":"https://avatars1.githubusercontent.com/u/280491?v=4","gravatar_id":"","url":"https://api.github.com/users/KeithErmel","html_url":"https://github.com/KeithErmel","followers_url":"https://api.github.com/users/KeithErmel/followers","following_url":"https://api.github.com/users/KeithErmel/following{/other_user}","gists_url":"https://api.github.com/users/KeithErmel/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithErmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithErmel/subscriptions","organizations_url":"https://api.github.com/users/KeithErmel/orgs","repos_url":"https://api.github.com/users/KeithErmel/repos","events_url":"https://api.github.com/users/KeithErmel/events{/privacy}","received_events_url":"https://api.github.com/users/KeithErmel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KeithErmel/swift","description":"The Swift Programming Language","fork":true,"url":"https://api.github.com/repos/KeithErmel/swift","forks_url":"https://api.github.com/repos/KeithErmel/swift/forks","keys_url":"https://api.github.com/repos/KeithErmel/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KeithErmel/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KeithErmel/swift/teams","hooks_url":"https://api.github.com/repos/KeithErmel/swift/hooks","issue_events_url":"https://api.github.com/repos/KeithErmel/swift/issues/events{/number}","events_url":"https://api.github.com/repos/KeithErmel/swift/events","assignees_url":"https://api.github.com/repos/KeithErmel/swift/assignees{/user}","branches_url":"https://api.github.com/repos/KeithErmel/swift/branches{/branch}","tags_url":"https://api.github.com/repos/KeithErmel/swift/tags","blobs_url":"https://api.github.com/repos/KeithErmel/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KeithErmel/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KeithErmel/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/KeithErmel/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KeithErmel/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/KeithErmel/swift/languages","stargazers_url":"https://api.github.com/repos/KeithErmel/swift/stargazers","contributors_url":"https://api.github.com/repos/KeithErmel/swift/contributors","subscribers_url":"https://api.github.com/repos/KeithErmel/swift/subscribers","subscription_url":"https://api.github.com/repos/KeithErmel/swift/subscription","commits_url":"https://api.github.com/repos/KeithErmel/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/KeithErmel/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/KeithErmel/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/KeithErmel/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/KeithErmel/swift/contents/{+path}","compare_url":"https://api.github.com/repos/KeithErmel/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KeithErmel/swift/merges","archive_url":"https://api.github.com/repos/KeithErmel/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KeithErmel/swift/downloads","issues_url":"https://api.github.com/repos/KeithErmel/swift/issues{/number}","pulls_url":"https://api.github.com/repos/KeithErmel/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/KeithErmel/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/KeithErmel/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KeithErmel/swift/labels{/name}","releases_url":"https://api.github.com/repos/KeithErmel/swift/releases{/id}","deployments_url":"https://api.github.com/repos/KeithErmel/swift/deployments","created_at":"2017-09-16T12:02:02Z","updated_at":"2017-09-16T12:02:34Z","pushed_at":"2017-09-30T19:45:11Z","git_url":"git://github.com/KeithErmel/swift.git","ssh_url":"git@github.com:KeithErmel/swift.git","clone_url":"https://github.com/KeithErmel/swift.git","svn_url":"https://github.com/KeithErmel/swift","homepage":"https://swift.org/","size":228391,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apple:master","ref":"master","sha":"469521463d55431d94bbfda829802e9000aa2d32","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars0.githubusercontent.com/u/10639145?v=4","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":44838949,"name":"swift","full_name":"apple/swift","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars0.githubusercontent.com/u/10639145?v=4","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift","description":"The Swift Programming Language","fork":false,"url":"https://api.github.com/repos/apple/swift","forks_url":"https://api.github.com/repos/apple/swift/forks","keys_url":"https://api.github.com/repos/apple/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift/teams","hooks_url":"https://api.github.com/repos/apple/swift/hooks","issue_events_url":"https://api.github.com/repos/apple/swift/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift/events","assignees_url":"https://api.github.com/repos/apple/swift/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift/tags","blobs_url":"https://api.github.com/repos/apple/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift/languages","stargazers_url":"https://api.github.com/repos/apple/swift/stargazers","contributors_url":"https://api.github.com/repos/apple/swift/contributors","subscribers_url":"https://api.github.com/repos/apple/swift/subscribers","subscription_url":"https://api.github.com/repos/apple/swift/subscription","commits_url":"https://api.github.com/repos/apple/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift/merges","archive_url":"https://api.github.com/repos/apple/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift/downloads","issues_url":"https://api.github.com/repos/apple/swift/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift/releases{/id}","deployments_url":"https://api.github.com/repos/apple/swift/deployments","created_at":"2015-10-23T21:15:07Z","updated_at":"2017-10-01T15:25:47Z","pushed_at":"2017-10-01T14:35:09Z","git_url":"git://github.com/apple/swift.git","ssh_url":"git@github.com:apple/swift.git","clone_url":"https://github.com/apple/swift.git","svn_url":"https://github.com/apple/swift","homepage":"https://swift.org/","size":228488,"stargazers_count":40677,"watchers_count":40677,"language":"C++","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6282,"mirror_url":null,"open_issues_count":180,"forks":6282,"open_issues":180,"watchers":40677,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/12199"},"html":{"href":"https://github.com/apple/swift/pull/12199"},"issue":{"href":"https://api.github.com/repos/apple/swift/issues/12199"},"comments":{"href":"https://api.github.com/repos/apple/swift/issues/12199/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift/pulls/12199/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift/pulls/12199/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift/statuses/bbd2324d686f9b55a3e6d37502ef23d6947f3be9"}},"author_association":"NONE"}}
{"actor":{"display_login":"KeithErmel"}}