[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] autosprintf, C++ ?

From: Ben RUBSON
Subject: Re: [bug-gettext] autosprintf, C++ ?
Date: Fri, 20 Oct 2017 19:47:41 +0200

On 20 Oct 2017 17:35, Bruno Haible wrote:


Ben RUBSON wrote:
Hello Bruno,

Please write to address@hidden, not to me personally.

Sorry for this, actually your mail is in the autosprintf header :|
But thank you for the tip !

I am using your autosprintf library, it works perfectly, thank you very much.

I included it into a C++ program, however clang-tidy complains with the
following :
  warning: do not define a C-style variadic function; consider using a function 
parameter pack or currying instead [cert-dcl50-cpp]
  autosprintf::autosprintf(const char *format, ...) {

I'm not really sure how to tranform autosprintf to make it fully C++
May I then ask you, do you have an idea how to do this ?

A web search for 'cert-dcl50-cpp' leads me to [1] -> [2].

Note that gettext is explicitly mentioned in the comments of [2].

I'll then try to deal with this, many thanks !

[1] https://clang.llvm.org/extra/clang-tidy/checks/cert-dcl50-cpp.html
[2] https://www.securecoding.cert.org/confluence/display/cplusplus/DCL50-CPP.+Do+not+define+a+C-style+variadic+function

reply via email to

[Prev in Thread] Current Thread [Next in Thread]