From 1fe1fc7008ec4f7561925f3c0f5b59424af70c84 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 6 Mar 2019 10:57:59 +0100 Subject: [PATCH] gnu.cfg: Add support for non-GNU _(string) macro. (#1726) As can be read here: https://www.gnu.org/software/gettext//manual/html_node/Mark-Keywords.html The _(str) macro is typically defined for a project to abbreviate the gettext(str) call. Although this is not part of GNU it would enhance the analysis. Cppcheck often does not know what _() is. In daca@home it is reported thousands of times as a function without configuration. --- cfg/gnu.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cfg/gnu.cfg b/cfg/gnu.cfg index 4302732fb..6c9efb5ec 100644 --- a/cfg/gnu.cfg +++ b/cfg/gnu.cfg @@ -837,6 +837,9 @@ + + + false