{"action":"created","comment":{"url":"https://api.github.com/repos/justmao945/vim-clang/pulls/comments/28118694","id":28118694,"diff_hunk":"@@ -152,6 +152,22 @@ func! s:PLog(head, info)\n   echom printf(\"Clang: log: %s >>> %s\", string(a:head), string(a:info))\n endf\n \"}}}\n+\"{{{ s:PDumpfile\n+\"@data list\n+\"@filename string\n+func! s:PDumpfile(data, filename)\n+  let l:lv = 5\n+  let l:is_windows = has('win32') || has('win64')\n+  if l:lv <= g:clang_debug && !l:is_windows\n+    let l:fn = a:filename\n+    if l:fn == ''\n+      let l:fn = 'vim-clang-debug.log'\n+    endif\n+    let l:fullpath = '/tmp/'.l:fn\n+    call writefile(a:data, l:fullpath)\n+  endif\n+endf","path":"plugin/clang.vim","position":18,"original_position":18,"commit_id":"9b297d578710b230dd1d077203e22105afb4f906","original_commit_id":"9b297d578710b230dd1d077203e22105afb4f906","user":{"login":"justmao945","id":619331,"avatar_url":"https://avatars.githubusercontent.com/u/619331?v=3","gravatar_id":"","url":"https://api.github.com/users/justmao945","html_url":"https://github.com/justmao945","followers_url":"https://api.github.com/users/justmao945/followers","following_url":"https://api.github.com/users/justmao945/following{/other_user}","gists_url":"https://api.github.com/users/justmao945/gists{/gist_id}","starred_url":"https://api.github.com/users/justmao945/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justmao945/subscriptions","organizations_url":"https://api.github.com/users/justmao945/orgs","repos_url":"https://api.github.com/users/justmao945/repos","events_url":"https://api.github.com/users/justmao945/events{/privacy}","received_events_url":"https://api.github.com/users/justmao945/received_events","type":"User","site_admin":false},"body":"This function is different from any other Pxxx functions(P here means print). So I don't think is a good idea that we put some debug info into messages and some other into a file, may be confused. I recommend to use `PDebug`","created_at":"2015-04-10T02:09:21Z","updated_at":"2015-04-10T02:09:21Z","html_url":"https://github.com/justmao945/vim-clang/pull/40#discussion_r28118694","pull_request_url":"https://api.github.com/repos/justmao945/vim-clang/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/justmao945/vim-clang/pulls/comments/28118694"},"html":{"href":"https://github.com/justmao945/vim-clang/pull/40#discussion_r28118694"},"pull_request":{"href":"https://api.github.com/repos/justmao945/vim-clang/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/justmao945/vim-clang/pulls/40","id":32762768,"html_url":"https://github.com/justmao945/vim-clang/pull/40","diff_url":"https://github.com/justmao945/vim-clang/pull/40.diff","patch_url":"https://github.com/justmao945/vim-clang/pull/40.patch","issue_url":"https://api.github.com/repos/justmao945/vim-clang/issues/40","number":40,"state":"open","locked":false,"title":"[RDY] Add neovim memory tmps support, also add PDumpfile to debug.","user":{"login":"syswow","id":10815286,"avatar_url":"https://avatars.githubusercontent.com/u/10815286?v=3","gravatar_id":"","url":"https://api.github.com/users/syswow","html_url":"https://github.com/syswow","followers_url":"https://api.github.com/users/syswow/followers","following_url":"https://api.github.com/users/syswow/following{/other_user}","gists_url":"https://api.github.com/users/syswow/gists{/gist_id}","starred_url":"https://api.github.com/users/syswow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syswow/subscriptions","organizations_url":"https://api.github.com/users/syswow/orgs","repos_url":"https://api.github.com/users/syswow/repos","events_url":"https://api.github.com/users/syswow/events{/privacy}","received_events_url":"https://api.github.com/users/syswow/received_events","type":"User","site_admin":false},"body":"Make vim-clang in neovim faster.","created_at":"2015-04-07T13:20:05Z","updated_at":"2015-04-10T02:09:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf34dbb2c877a633f967e3af5271944dc40fa713","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/justmao945/vim-clang/pulls/40/commits","review_comments_url":"https://api.github.com/repos/justmao945/vim-clang/pulls/40/comments","review_comment_url":"https://api.github.com/repos/justmao945/vim-clang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/justmao945/vim-clang/issues/40/comments","statuses_url":"https://api.github.com/repos/justmao945/vim-clang/statuses/9b297d578710b230dd1d077203e22105afb4f906","head":{"label":"syswow:vim-add-nvim-mem-tmps","ref":"vim-add-nvim-mem-tmps","sha":"9b297d578710b230dd1d077203e22105afb4f906","user":{"login":"syswow","id":10815286,"avatar_url":"https://avatars.githubusercontent.com/u/10815286?v=3","gravatar_id":"","url":"https://api.github.com/users/syswow","html_url":"https://github.com/syswow","followers_url":"https://api.github.com/users/syswow/followers","following_url":"https://api.github.com/users/syswow/following{/other_user}","gists_url":"https://api.github.com/users/syswow/gists{/gist_id}","starred_url":"https://api.github.com/users/syswow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syswow/subscriptions","organizations_url":"https://api.github.com/users/syswow/orgs","repos_url":"https://api.github.com/users/syswow/repos","events_url":"https://api.github.com/users/syswow/events{/privacy}","received_events_url":"https://api.github.com/users/syswow/received_events","type":"User","site_admin":false},"repo":{"id":33310602,"name":"nvim-clang","full_name":"syswow/nvim-clang","owner":{"login":"syswow","id":10815286,"avatar_url":"https://avatars.githubusercontent.com/u/10815286?v=3","gravatar_id":"","url":"https://api.github.com/users/syswow","html_url":"https://github.com/syswow","followers_url":"https://api.github.com/users/syswow/followers","following_url":"https://api.github.com/users/syswow/following{/other_user}","gists_url":"https://api.github.com/users/syswow/gists{/gist_id}","starred_url":"https://api.github.com/users/syswow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syswow/subscriptions","organizations_url":"https://api.github.com/users/syswow/orgs","repos_url":"https://api.github.com/users/syswow/repos","events_url":"https://api.github.com/users/syswow/events{/privacy}","received_events_url":"https://api.github.com/users/syswow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/syswow/nvim-clang","description":"Clang completion plugin for Neovim","fork":true,"url":"https://api.github.com/repos/syswow/nvim-clang","forks_url":"https://api.github.com/repos/syswow/nvim-clang/forks","keys_url":"https://api.github.com/repos/syswow/nvim-clang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syswow/nvim-clang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syswow/nvim-clang/teams","hooks_url":"https://api.github.com/repos/syswow/nvim-clang/hooks","issue_events_url":"https://api.github.com/repos/syswow/nvim-clang/issues/events{/number}","events_url":"https://api.github.com/repos/syswow/nvim-clang/events","assignees_url":"https://api.github.com/repos/syswow/nvim-clang/assignees{/user}","branches_url":"https://api.github.com/repos/syswow/nvim-clang/branches{/branch}","tags_url":"https://api.github.com/repos/syswow/nvim-clang/tags","blobs_url":"https://api.github.com/repos/syswow/nvim-clang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syswow/nvim-clang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syswow/nvim-clang/git/refs{/sha}","trees_url":"https://api.github.com/repos/syswow/nvim-clang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syswow/nvim-clang/statuses/{sha}","languages_url":"https://api.github.com/repos/syswow/nvim-clang/languages","stargazers_url":"https://api.github.com/repos/syswow/nvim-clang/stargazers","contributors_url":"https://api.github.com/repos/syswow/nvim-clang/contributors","subscribers_url":"https://api.github.com/repos/syswow/nvim-clang/subscribers","subscription_url":"https://api.github.com/repos/syswow/nvim-clang/subscription","commits_url":"https://api.github.com/repos/syswow/nvim-clang/commits{/sha}","git_commits_url":"https://api.github.com/repos/syswow/nvim-clang/git/commits{/sha}","comments_url":"https://api.github.com/repos/syswow/nvim-clang/comments{/number}","issue_comment_url":"https://api.github.com/repos/syswow/nvim-clang/issues/comments{/number}","contents_url":"https://api.github.com/repos/syswow/nvim-clang/contents/{+path}","compare_url":"https://api.github.com/repos/syswow/nvim-clang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syswow/nvim-clang/merges","archive_url":"https://api.github.com/repos/syswow/nvim-clang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syswow/nvim-clang/downloads","issues_url":"https://api.github.com/repos/syswow/nvim-clang/issues{/number}","pulls_url":"https://api.github.com/repos/syswow/nvim-clang/pulls{/number}","milestones_url":"https://api.github.com/repos/syswow/nvim-clang/milestones{/number}","notifications_url":"https://api.github.com/repos/syswow/nvim-clang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syswow/nvim-clang/labels{/name}","releases_url":"https://api.github.com/repos/syswow/nvim-clang/releases{/id}","created_at":"2015-04-02T13:34:35Z","updated_at":"2015-04-09T11:54:39Z","pushed_at":"2015-04-09T11:54:39Z","git_url":"git://github.com/syswow/nvim-clang.git","ssh_url":"git@github.com:syswow/nvim-clang.git","clone_url":"https://github.com/syswow/nvim-clang.git","svn_url":"https://github.com/syswow/nvim-clang","homepage":"","size":537,"stargazers_count":1,"watchers_count":1,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"justmao945:master","ref":"master","sha":"6e2c8bc800b5acb2b2436b57e9b5df8dfe538fa6","user":{"login":"justmao945","id":619331,"avatar_url":"https://avatars.githubusercontent.com/u/619331?v=3","gravatar_id":"","url":"https://api.github.com/users/justmao945","html_url":"https://github.com/justmao945","followers_url":"https://api.github.com/users/justmao945/followers","following_url":"https://api.github.com/users/justmao945/following{/other_user}","gists_url":"https://api.github.com/users/justmao945/gists{/gist_id}","starred_url":"https://api.github.com/users/justmao945/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justmao945/subscriptions","organizations_url":"https://api.github.com/users/justmao945/orgs","repos_url":"https://api.github.com/users/justmao945/repos","events_url":"https://api.github.com/users/justmao945/events{/privacy}","received_events_url":"https://api.github.com/users/justmao945/received_events","type":"User","site_admin":false},"repo":{"id":7955642,"name":"vim-clang","full_name":"justmao945/vim-clang","owner":{"login":"justmao945","id":619331,"avatar_url":"https://avatars.githubusercontent.com/u/619331?v=3","gravatar_id":"","url":"https://api.github.com/users/justmao945","html_url":"https://github.com/justmao945","followers_url":"https://api.github.com/users/justmao945/followers","following_url":"https://api.github.com/users/justmao945/following{/other_user}","gists_url":"https://api.github.com/users/justmao945/gists{/gist_id}","starred_url":"https://api.github.com/users/justmao945/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justmao945/subscriptions","organizations_url":"https://api.github.com/users/justmao945/orgs","repos_url":"https://api.github.com/users/justmao945/repos","events_url":"https://api.github.com/users/justmao945/events{/privacy}","received_events_url":"https://api.github.com/users/justmao945/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/justmao945/vim-clang","description":"Clang completion plugin for vim","fork":false,"url":"https://api.github.com/repos/justmao945/vim-clang","forks_url":"https://api.github.com/repos/justmao945/vim-clang/forks","keys_url":"https://api.github.com/repos/justmao945/vim-clang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justmao945/vim-clang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justmao945/vim-clang/teams","hooks_url":"https://api.github.com/repos/justmao945/vim-clang/hooks","issue_events_url":"https://api.github.com/repos/justmao945/vim-clang/issues/events{/number}","events_url":"https://api.github.com/repos/justmao945/vim-clang/events","assignees_url":"https://api.github.com/repos/justmao945/vim-clang/assignees{/user}","branches_url":"https://api.github.com/repos/justmao945/vim-clang/branches{/branch}","tags_url":"https://api.github.com/repos/justmao945/vim-clang/tags","blobs_url":"https://api.github.com/repos/justmao945/vim-clang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justmao945/vim-clang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justmao945/vim-clang/git/refs{/sha}","trees_url":"https://api.github.com/repos/justmao945/vim-clang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justmao945/vim-clang/statuses/{sha}","languages_url":"https://api.github.com/repos/justmao945/vim-clang/languages","stargazers_url":"https://api.github.com/repos/justmao945/vim-clang/stargazers","contributors_url":"https://api.github.com/repos/justmao945/vim-clang/contributors","subscribers_url":"https://api.github.com/repos/justmao945/vim-clang/subscribers","subscription_url":"https://api.github.com/repos/justmao945/vim-clang/subscription","commits_url":"https://api.github.com/repos/justmao945/vim-clang/commits{/sha}","git_commits_url":"https://api.github.com/repos/justmao945/vim-clang/git/commits{/sha}","comments_url":"https://api.github.com/repos/justmao945/vim-clang/comments{/number}","issue_comment_url":"https://api.github.com/repos/justmao945/vim-clang/issues/comments{/number}","contents_url":"https://api.github.com/repos/justmao945/vim-clang/contents/{+path}","compare_url":"https://api.github.com/repos/justmao945/vim-clang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justmao945/vim-clang/merges","archive_url":"https://api.github.com/repos/justmao945/vim-clang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justmao945/vim-clang/downloads","issues_url":"https://api.github.com/repos/justmao945/vim-clang/issues{/number}","pulls_url":"https://api.github.com/repos/justmao945/vim-clang/pulls{/number}","milestones_url":"https://api.github.com/repos/justmao945/vim-clang/milestones{/number}","notifications_url":"https://api.github.com/repos/justmao945/vim-clang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justmao945/vim-clang/labels{/name}","releases_url":"https://api.github.com/repos/justmao945/vim-clang/releases{/id}","created_at":"2013-02-01T09:48:37Z","updated_at":"2015-04-09T09:19:44Z","pushed_at":"2015-04-09T11:54:05Z","git_url":"git://github.com/justmao945/vim-clang.git","ssh_url":"git@github.com:justmao945/vim-clang.git","clone_url":"https://github.com/justmao945/vim-clang.git","svn_url":"https://github.com/justmao945/vim-clang","homepage":null,"size":909,"stargazers_count":48,"watchers_count":48,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":11,"forks":12,"open_issues":11,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/justmao945/vim-clang/pulls/40"},"html":{"href":"https://github.com/justmao945/vim-clang/pull/40"},"issue":{"href":"https://api.github.com/repos/justmao945/vim-clang/issues/40"},"comments":{"href":"https://api.github.com/repos/justmao945/vim-clang/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/justmao945/vim-clang/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/justmao945/vim-clang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/justmao945/vim-clang/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/justmao945/vim-clang/statuses/9b297d578710b230dd1d077203e22105afb4f906"}}}}