From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202410 header.b=hj4kkN12; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id BCB1C5A062B for ; Wed, 06 Nov 2024 00:27:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202410; t=1730849254; bh=I8Y5oRKS90JIFWCInEfJZF/AF0UkJuju9+aE02WTpNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hj4kkN12Drdf4ORAp928z+F0lY6zX9V6fiMU7iUyzHdVP+2bfZwk4fqurPH6NFATB uD1Da/2xj49mx+Wpf3vljVyzr7OuxbVFMggG+84WwZuAimR2ksaoD+e28I/6VMNl0I OWoLxiA1U5gp8anmXBFA5GJjcb1lUnz6ZD65JdC7zfYqsrH81f1gnPgK7Fqp9M5wmj qnLgUO0qPvwPO2CjPatp4UKNxaxtLrKhaMU/1m8lAkrNdLHvU9h4E+Pxn9ifx+0E1i As3uLpA9tFDMSNZqBT48Ld8sruAzq8BCvtVght5C4aQJ8mX7k4WQtG55+6bKFlAWS9 DwVG0iDHOmn1Q== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4XjkyZ4Ydyz4xGl; Wed, 6 Nov 2024 10:27:34 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 11/12] clang: Add rudimentary clangd configuration Date: Wed, 6 Nov 2024 10:25:27 +1100 Message-ID: <20241105232528.1408144-12-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241105232528.1408144-1-david@gibson.dropbear.id.au> References: <20241105232528.1408144-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: QAWPA2MWVRKPHFROXZ65ETDSQELWRWEL X-Message-ID-Hash: QAWPA2MWVRKPHFROXZ65ETDSQELWRWEL X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: clangd's default configuration seems to try to treat .h files as C++ not C. There are many more spurious warnings generated at present, but this removes some of the most egregious ones. Signed-off-by: David Gibson --- .clangd | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .clangd diff --git a/.clangd b/.clangd new file mode 100644 index 0000000..41bec92 --- /dev/null +++ b/.clangd @@ -0,0 +1,3 @@ +CompileFlags: + # Don't try to interpret our headers as C++' + Add: [-xc, -Wall] -- 2.47.0