{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift-clang/issues/237","repository_url":"https://api.github.com/repos/apple/swift-clang","labels_url":"https://api.github.com/repos/apple/swift-clang/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift-clang/issues/237/comments","events_url":"https://api.github.com/repos/apple/swift-clang/issues/237/events","html_url":"https://github.com/apple/swift-clang/pull/237","id":384008041,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzMxMzc3","number":237,"title":"clang-cl: Add \"/clang:\" pass-through arg support.","user":{"login":"compnerd","id":63311,"node_id":"MDQ6VXNlcjYzMzEx","avatar_url":"https://avatars3.githubusercontent.com/u/63311?v=4","gravatar_id":"","url":"https://api.github.com/users/compnerd","html_url":"https://github.com/compnerd","followers_url":"https://api.github.com/users/compnerd/followers","following_url":"https://api.github.com/users/compnerd/following{/other_user}","gists_url":"https://api.github.com/users/compnerd/gists{/gist_id}","starred_url":"https://api.github.com/users/compnerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compnerd/subscriptions","organizations_url":"https://api.github.com/users/compnerd/orgs","repos_url":"https://api.github.com/users/compnerd/repos","events_url":"https://api.github.com/users/compnerd/events{/privacy}","received_events_url":"https://api.github.com/users/compnerd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-24T17:45:46Z","updated_at":"2018-11-24T17:47:23Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/apple/swift-clang/pulls/237","html_url":"https://github.com/apple/swift-clang/pull/237","diff_url":"https://github.com/apple/swift-clang/pull/237.diff","patch_url":"https://github.com/apple/swift-clang/pull/237.patch"},"body":"The clang-cl driver disables access to command line options outside of the\r\n\"Core\" and \"CLOption\" sets of command line arguments. This filtering makes it\r\nimpossible to pass arguments that are interpreted by the clang driver and not\r\nby either 'cc1' (the frontend) or one of the other tools invoked by the driver.\r\n\r\nAn example driver-level flag is the '-fno-slp-vectorize' flag, which is\r\nprocessed by the driver in Clang::ConstructJob and used to set the cc1 flag\r\n\"-vectorize-slp\". There is no negative cc1 flag or -mllvm flag, so it is not\r\ncurrently possible to disable the SLP vectorizer from the clang-cl driver.\r\n\r\nThis change introduces the \"/clang:\" argument that is available when the\r\ndriver mode is set to CL compatibility. This option works similarly to the\r\n\"-Xclang\" option, except that the option values are processed by the clang\r\ndriver rather than by 'cc1'. An example usage is:\r\n\r\n  clang-cl /clang:-fno-slp-vectorize /O2 test.c\r\n\r\nAnother example shows how \"/clang:\" can be used to pass a flag where there is\r\na conflict between a clang-cl compat option and an overlapping clang driver\r\noption:\r\n\r\n  clang-cl /MD /clang:-MD /clang:-MF /clang:test_dep_file.dep test.c\r\n\r\nIn the previous example, the unprefixed /MD selects the DLL version of the msvc\r\nCRT, while the prefixed -MD flag and the -MF flags are used to create a make\r\ndependency file for included headers.\r\n\r\nOne note about flag ordering: the /clang: flags are concatenated to the end of\r\nthe argument list, so in cases where the last flag wins, the /clang: flags\r\nwill be chosen regardless of their order relative to other flags on the driver\r\ncommand line.\r\n\r\nPatch by Neeraj K. Singh!\r\n\r\nDifferential revision: https://reviews.llvm.org/D53457\r\n\r\ngit-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346393 91177308-0d34-0410-b5e6-96231b3b80d8\r\n(cherry picked from commit 8bf07130276f736f15ff2bd346c604a17cd6cc85)"},"comment":{"url":"https://api.github.com/repos/apple/swift-clang/issues/comments/441384087","html_url":"https://github.com/apple/swift-clang/pull/237#issuecomment-441384087","issue_url":"https://api.github.com/repos/apple/swift-clang/issues/237","id":441384087,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM4NDA4Nw==","user":{"login":"compnerd","id":63311,"node_id":"MDQ6VXNlcjYzMzEx","avatar_url":"https://avatars3.githubusercontent.com/u/63311?v=4","gravatar_id":"","url":"https://api.github.com/users/compnerd","html_url":"https://github.com/compnerd","followers_url":"https://api.github.com/users/compnerd/followers","following_url":"https://api.github.com/users/compnerd/following{/other_user}","gists_url":"https://api.github.com/users/compnerd/gists{/gist_id}","starred_url":"https://api.github.com/users/compnerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compnerd/subscriptions","organizations_url":"https://api.github.com/users/compnerd/orgs","repos_url":"https://api.github.com/users/compnerd/repos","events_url":"https://api.github.com/users/compnerd/events{/privacy}","received_events_url":"https://api.github.com/users/compnerd/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T17:47:23Z","updated_at":"2018-11-24T17:47:23Z","author_association":"COLLABORATOR","body":"CC: @tkremenek "}}
{"actor":{"display_login":"compnerd"}}