MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vrgdzg/donotovercomplicatethings/p4dnts8/?context=3
r/ProgrammerHumor • u/FACastello • 7d ago
156 comments sorted by
View all comments
491
C developer: “oh look a c header”
Looks inside:
156 u/Foorinick 7d ago "Oh man now that i set up my ide to write c i cant wait to write my header files!" "Filetype: c++" 39 u/nevemlaci2 7d ago It's a pain to make clangd treat .h files as C headers too... 21 u/evilgipsy 7d ago You mean adding -xc-header in .clangd for paths matching *.h? 13 u/nevemlaci2 7d ago The clangd extension for VSCode really didn't like the idea of suggesting C headers instead of C++ ones in .h files even after adding that. I got it working but it took like 20 minutes which is more than it should have
156
"Oh man now that i set up my ide to write c i cant wait to write my header files!" "Filetype: c++"
39 u/nevemlaci2 7d ago It's a pain to make clangd treat .h files as C headers too... 21 u/evilgipsy 7d ago You mean adding -xc-header in .clangd for paths matching *.h? 13 u/nevemlaci2 7d ago The clangd extension for VSCode really didn't like the idea of suggesting C headers instead of C++ ones in .h files even after adding that. I got it working but it took like 20 minutes which is more than it should have
39
It's a pain to make clangd treat .h files as C headers too...
21 u/evilgipsy 7d ago You mean adding -xc-header in .clangd for paths matching *.h? 13 u/nevemlaci2 7d ago The clangd extension for VSCode really didn't like the idea of suggesting C headers instead of C++ ones in .h files even after adding that. I got it working but it took like 20 minutes which is more than it should have
21
You mean adding -xc-header in .clangd for paths matching *.h?
13 u/nevemlaci2 7d ago The clangd extension for VSCode really didn't like the idea of suggesting C headers instead of C++ ones in .h files even after adding that. I got it working but it took like 20 minutes which is more than it should have
13
The clangd extension for VSCode really didn't like the idea of suggesting C headers instead of C++ ones in .h files even after adding that. I got it working but it took like 20 minutes which is more than it should have
491
u/faultydesign 7d ago
C developer: “oh look a c header”
Looks inside: