[cfe-dev] a basic question about stmt printPretty() and float point constant without "f"

Dmitri Gribenko gribozavr at gmail.com
Thu Sep 20 13:01:42 PDT 2012


On Thu, Sep 20, 2012 at 3:57 PM, Olaf Krzikalla
<Olaf.Krzikalla at tu-dresden.de> wrote:
> Am 19.09.2012 22:51, schrieb Dmitri Gribenko:
>>
>> On Wed, Sep 19, 2012 at 11:28 PM, Shuang GAO <gaoshuang at gmail.com> wrote:
>>>
>>> Would anyone help me to know what i should do to keep the ".0" in the
>>> dumped
>>> code. I tried to look through PrintingPolicy struct, but have no idea for
>>> this...
>>
>>
>> Patches are always welcome!  If you are interested in fixing this,
>> take a look at StmtPrinter::VisitFloatingLiteral function.
>
> The sad truth is that I've already provided a patch for exactly that problem
> some month ago. And after nobody cared here, I retried at cfe-commits. Same
> result: nobody cared.

Seems like I missed it then.  Do you have commit access or you need
someone to commit it for you?

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list