{"action":"created","issue":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/1003","repository_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx","labels_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/1003/labels{/name}","comments_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/1003/comments","events_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/1003/events","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/1003","id":193747413,"number":1003,"title":"The token column will get wrong when include file has macro","user":{"login":"WoolenWang","id":3388253,"avatar_url":"https://avatars.githubusercontent.com/u/3388253?v=3","gravatar_id":"","url":"https://api.github.com/users/WoolenWang","html_url":"https://github.com/WoolenWang","followers_url":"https://api.github.com/users/WoolenWang/followers","following_url":"https://api.github.com/users/WoolenWang/following{/other_user}","gists_url":"https://api.github.com/users/WoolenWang/gists{/gist_id}","starred_url":"https://api.github.com/users/WoolenWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WoolenWang/subscriptions","organizations_url":"https://api.github.com/users/WoolenWang/orgs","repos_url":"https://api.github.com/users/WoolenWang/repos","events_url":"https://api.github.com/users/WoolenWang/events{/privacy}","received_events_url":"https://api.github.com/users/WoolenWang/received_events","type":"User","site_admin":false},"labels":[{"id":15973031,"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"assignees":[{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/milestones/8","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/milestone/8","labels_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/milestones/8/labels","id":1845404,"number":8,"title":"0.9.7","description":"support of SQ 5.6 to SQ 6.2","creator":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":111,"state":"open","created_at":"2016-06-23T14:00:06Z","updated_at":"2016-12-26T11:31:19Z","due_on":"2016-12-31T08:00:00Z","closed_at":null},"comments":6,"created_at":"2016-12-06T11:23:39Z","updated_at":"2016-12-26T14:30:44Z","closed_at":null,"body":"I use snoar-cxx as a tool to analysis the c/cxx code to get all node. and then write the code checklist by using xpath.\r\n\r\nwhen the code file include the headers has some macro the token column will get wrong .\r\ni use lua lang Interpreter src to test this .\r\n![image](https://cloud.githubusercontent.com/assets/3388253/20923835/4e66e2d0-bbe9-11e6-8393-1a4b65eef4bc.png)\r\n\r\ni change the toolkit code just add one include dir\r\n![image](https://cloud.githubusercontent.com/assets/3388253/20923859/78ab323a-bbe9-11e6-8dc8-4e22ba87f280.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/comments/269216095","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/1003#issuecomment-269216095","issue_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/1003","id":269216095,"user":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T14:30:44Z","updated_at":"2016-12-26T14:30:44Z","body":"Simple sample to reproduce:\r\n```C++\r\n#define api_check(a, b, c) x(a, b, c)\r\n\r\nvoid test () {\r\n    api_check(Param1, Param2, Param3); // offset wrong: seems to use offset of macro x instead of api_check?\r\n}\r\n\r\nchar test[] =\r\n   \"line1-\"\r\n   \"line2-\"\r\n   \"line3\"; // end of line and offset wrong\r\nchar line_after;\r\n```\r\n"}}
{"actor":{"display_login":"guwirth"}}