{"action":"closed","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1258","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1258/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1258/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/1258/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/1258","id":69436003,"number":1258,"title":"c-c++-mode flycheck loads .clang_complete too late","user":{"login":"edwintorok","id":721894,"avatar_url":"https://avatars.githubusercontent.com/u/721894?v=3","gravatar_id":"","url":"https://api.github.com/users/edwintorok","html_url":"https://github.com/edwintorok","followers_url":"https://api.github.com/users/edwintorok/followers","following_url":"https://api.github.com/users/edwintorok/following{/other_user}","gists_url":"https://api.github.com/users/edwintorok/gists{/gist_id}","starred_url":"https://api.github.com/users/edwintorok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwintorok/subscriptions","organizations_url":"https://api.github.com/users/edwintorok/orgs","repos_url":"https://api.github.com/users/edwintorok/repos","events_url":"https://api.github.com/users/edwintorok/events{/privacy}","received_events_url":"https://api.github.com/users/edwintorok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/bug%20:-(","name":"bug :-(","color":"fc2929"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/C/C++","name":"C/C++","color":"207de5"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/Fixed%20in%20develop","name":"Fixed in develop","color":"006b75"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/Syntax-checking","name":"Syntax-checking","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-19T15:31:57Z","updated_at":"2016-01-04T08:43:33Z","closed_at":"2016-01-04T08:43:33Z","body":"Looks like `flycheck-clang-args` is supposed to be set from `.clang_complete` at https://github.com/syl20bnr/spacemacs/blob/master/contrib/lang/c-c%2B%2B/packages.el#L122.\r\nBut the first time I open a file that doesn't happen, I have to call `clang-complete`, and then disable/re-enable flycheck (or make a modification and save the file) for it to take effect.\r\n\r\nWould it be possible to invoke this from `flycheck-mode-hook` so that the compilation flags are correct the first time the syntax check is run? Or provide a keybinding to load/refresh these arguments."}}