From ade70d176aad656c3f897ca9a4e00678800ad5a6 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Sat, 23 Oct 2021 18:37:08 +0800 Subject: [PATCH] makefile: specify C99/C++17 standards in .clangd --- .clangd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.clangd b/.clangd index e741499..b597d3c 100644 --- a/.clangd +++ b/.clangd @@ -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]