Re: [cfe-users] Clang (with Visual Studio) wrongly complains about missing variables

2021-09-22 Thread Reid Kleckner via cfe-users
Looking back in the thread, I found the example code, and I see that MSVC refuses to inline this helper, but clang will inline it. I believe clang is permitted to inline it, MSVC will export the static data member (_the_keyboard), so everything should work as long as you provide a definition of _th

Re: [cfe-users] Writing gcc-style dependency files with clang-cl

2018-03-12 Thread Reid Kleckner via cfe-users
-Xclang escapes through to the -cc1 command line, which you can see by adding -### to see what subcommands clang or clang-cl are running. It looks like -MD and -MF map to '-dependency-file foo.dep' at the -cc1 level, so 'clang-cl -Xclang -dependency-file -Xclang foo.dep' should write makefile depen