{"action":"created","issue":{"url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/issues/162","repository_url":"https://api.github.com/repos/include-what-you-use/include-what-you-use","labels_url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/issues/162/comments","events_url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/issues/162/events","html_url":"https://github.com/include-what-you-use/include-what-you-use/issues/162","id":88342673,"number":162,"title":"Pragma export not working for inline files","user":{"login":"vsapsai","id":421892,"avatar_url":"https://avatars.githubusercontent.com/u/421892?v=3","gravatar_id":"","url":"https://api.github.com/users/vsapsai","html_url":"https://github.com/vsapsai","followers_url":"https://api.github.com/users/vsapsai/followers","following_url":"https://api.github.com/users/vsapsai/following{/other_user}","gists_url":"https://api.github.com/users/vsapsai/gists{/gist_id}","starred_url":"https://api.github.com/users/vsapsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsapsai/subscriptions","organizations_url":"https://api.github.com/users/vsapsai/orgs","repos_url":"https://api.github.com/users/vsapsai/repos","events_url":"https://api.github.com/users/vsapsai/events{/privacy}","received_events_url":"https://api.github.com/users/vsapsai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"include-what-you-use","id":11830272,"avatar_url":"https://avatars.githubusercontent.com/u/11830272?v=3","gravatar_id":"","url":"https://api.github.com/users/include-what-you-use","html_url":"https://github.com/include-what-you-use","followers_url":"https://api.github.com/users/include-what-you-use/followers","following_url":"https://api.github.com/users/include-what-you-use/following{/other_user}","gists_url":"https://api.github.com/users/include-what-you-use/gists{/gist_id}","starred_url":"https://api.github.com/users/include-what-you-use/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/include-what-you-use/subscriptions","organizations_url":"https://api.github.com/users/include-what-you-use/orgs","repos_url":"https://api.github.com/users/include-what-you-use/repos","events_url":"https://api.github.com/users/include-what-you-use/events{/privacy}","received_events_url":"https://api.github.com/users/include-what-you-use/received_events","type":"Organization","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-06-15T07:13:25Z","updated_at":"2016-06-08T20:40:34Z","closed_at":null,"body":"Originally reported on Google Code with ID 162\n```\nWhat steps will reproduce the problem?  Give the *exact* arguments passed\nto include-what-you-use, and attach the input source file that gives the\nproblem (minimal test-cases are much appreciated!)\n\r\nI'm working on a smaller test case, but for now the error comes up here: \r\n\r\n0. Built IWYU in-tree\r\n1. clone https://github.com/aherlihy/mongo-cxx-driver legacy branch.\r\n2. add \"// IWYU pragma: export\" to src/mongo/base/status.h:150 (at https://github.com/aherlihy/mongo-cxx-driver/blob/iwyu-PNT/src/mongo/base/status.h#L150)\r\n2. Run IWYU:\r\n          a. Need to write little wrappers around iwyu because scons requires successful\nexit status. I've attached my two wrapper scripts (they'll need to be changed to match\nthe path to iwyu).\r\n          b. Run \"scons --cc=iwyu.cc --cxx=iwyu.cxx build-base/parse_number_test\"\r\n4. Apply IWYU changes to code base: python fix_includes.py < iwyu_cxx.out\r\n\r\nWhat is the expected output? What do you see instead?\n\r\nWe expect status.h to be included instead of status-inl.h. Instead, in places where\nstatus.h is used, status-inl.h is added to the include list. One example of many is\nin mongo/src/base/parse_number_test.cpp.\r\n\r\n\r\nWhat version of the product are you using? On what operating system?\n\r\nThe most recent pull from svn: I ran svn co http://include-what-you-use.googlecode.com/svn/trunk/\ninclude-what-you-use on Mac OSX 10.9.5 on 2.6GHz on Intel Core i5.\r\n\r\n\r\nPlease provide any additional information below.\n\r\nI will try my best to recreate the issue with smaller test files, but so far I've been\nunsuccessful. I will let you know as soon as I do. Thank you!\r\n\r\n\n```\n\nReported by `anna.herlihy@10gen.com` on 2014-11-07 22:07:10\n\n<hr>\n * *Attachment: [iwyu.cxx](https://storage.googleapis.com/google-code-attachments/include-what-you-use/issue-162/comment-0/iwyu.cxx)*\n * *Attachment: [iwyu.cc](https://storage.googleapis.com/google-code-attachments/include-what-you-use/issue-162/comment-0/iwyu.cc)*"},"comment":{"url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/issues/comments/224720469","html_url":"https://github.com/include-what-you-use/include-what-you-use/issues/162#issuecomment-224720469","issue_url":"https://api.github.com/repos/include-what-you-use/include-what-you-use/issues/162","id":224720469,"user":{"login":"kimgr","id":169074,"avatar_url":"https://avatars.githubusercontent.com/u/169074?v=3","gravatar_id":"","url":"https://api.github.com/users/kimgr","html_url":"https://github.com/kimgr","followers_url":"https://api.github.com/users/kimgr/followers","following_url":"https://api.github.com/users/kimgr/following{/other_user}","gists_url":"https://api.github.com/users/kimgr/gists{/gist_id}","starred_url":"https://api.github.com/users/kimgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimgr/subscriptions","organizations_url":"https://api.github.com/users/kimgr/orgs","repos_url":"https://api.github.com/users/kimgr/repos","events_url":"https://api.github.com/users/kimgr/events{/privacy}","received_events_url":"https://api.github.com/users/kimgr/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T20:40:34Z","updated_at":"2016-06-08T20:40:34Z","body":"This is still an issue after PR #276. When handling `pragma: export`, we don't have access to the includer of the includer (which would be the right thing to pass to `ConvertToQuotedInclude`). I think we could actually produce that information, and now that `ConvertToQuotedInclude` accepts it, this could be made to work."}}
{"actor":{"display_login":"kimgr"}}