{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6955","repository_url":"https://api.github.com/repos/syl20bnr/spacemacs","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6955/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6955/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6955/events","html_url":"https://github.com/syl20bnr/spacemacs/pull/6955","id":173790380,"number":6955,"title":"ycmd layer: a better global_conf.py","user":{"login":"deb0ch","id":6248219,"avatar_url":"https://avatars.githubusercontent.com/u/6248219?v=3","gravatar_id":"","url":"https://api.github.com/users/deb0ch","html_url":"https://github.com/deb0ch","followers_url":"https://api.github.com/users/deb0ch/followers","following_url":"https://api.github.com/users/deb0ch/following{/other_user}","gists_url":"https://api.github.com/users/deb0ch/gists{/gist_id}","starred_url":"https://api.github.com/users/deb0ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deb0ch/subscriptions","organizations_url":"https://api.github.com/users/deb0ch/orgs","repos_url":"https://api.github.com/users/deb0ch/repos","events_url":"https://api.github.com/users/deb0ch/events{/privacy}","received_events_url":"https://api.github.com/users/deb0ch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-29T14:40:11Z","updated_at":"2016-08-30T08:30:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/pulls/6955","html_url":"https://github.com/syl20bnr/spacemacs/pull/6955","diff_url":"https://github.com/syl20bnr/spacemacs/pull/6955.diff","patch_url":"https://github.com/syl20bnr/spacemacs/pull/6955.patch"},"body":"Rewrote global_conf.py to use compile_commands.json or .clang_complete to get compilation flags.\r\n\r\nI used the following heuristics to get missing files from compile_commands.json:\r\n\r\n1) If there is a compile_commands.json in a parent directory:\r\n  a) If the file is a header file:\r\n    - search for the header file itself in db\r\n    - search for a sibling source file in the same directory (i.e. a source file with the same name but different extension)\r\n    - search for a source file that includes our header's path\r\n    - search for the nearest source file in db\r\n  b) If the file is a source file:\r\n    - search for the source file itself\r\n    - search for the nearest source file in db\r\n2) If no compile_commands.json, search for a .clang_complete:\r\n    - get flags from .clang_complete\r\n3) Always try to add extra flags from a .ycm_extra_flags file in a parent directory.\r\n(like --sysroot=\"/path/to/your/toolchain/libc if you are cross-compiling)\r\n\r\nThis should bring the ycmd layer closer to working out of the box :smiley: \r\n"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/243369879","html_url":"https://github.com/syl20bnr/spacemacs/pull/6955#issuecomment-243369879","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6955","id":243369879,"user":{"login":"deb0ch","id":6248219,"avatar_url":"https://avatars.githubusercontent.com/u/6248219?v=3","gravatar_id":"","url":"https://api.github.com/users/deb0ch","html_url":"https://github.com/deb0ch","followers_url":"https://api.github.com/users/deb0ch/followers","following_url":"https://api.github.com/users/deb0ch/following{/other_user}","gists_url":"https://api.github.com/users/deb0ch/gists{/gist_id}","starred_url":"https://api.github.com/users/deb0ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deb0ch/subscriptions","organizations_url":"https://api.github.com/users/deb0ch/orgs","repos_url":"https://api.github.com/users/deb0ch/repos","events_url":"https://api.github.com/users/deb0ch/events{/privacy}","received_events_url":"https://api.github.com/users/deb0ch/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T08:30:07Z","updated_at":"2016-08-30T08:30:07Z","body":":smile_cat: \r\n\r\nI don't know what could be further improved. I'm sure a lot of things.\r\n\r\nTell me if you find something :smile: \r\n"}}
{"actor":{"display_login":"deb0ch"}}