makefile: specify C99/C++17 standards in .clangd

This commit is contained in:
Edgaru089 2021-10-23 18:37:08 +08:00
parent c504b5dc31
commit ade70d176a

10
.clangd
View File

@ -1,3 +1,13 @@
CompileFlags:
Add: [-I/usr/include/efi, -I/usr/include/efi/x86_64, -DHELOS]
---
If:
PathMatch: [.*\.h, .*\.c]
CompileFlags:
Add: [-xc, -std=c99]
---
If:
PathMatch: [.*\.hpp, .*\.cpp]
CompileFlags:
Add: [-xc++, -std=c++17]