[Bug 978952] Re: indent duplicate const

Andrej Shadura andrewsh at debian.org
Thu Nov 8 18:55:32 UTC 2018


This has been fixed upstream, but won’t be ported to this version.


** Changed in: indent (Ubuntu)
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to indent in Ubuntu.
https://bugs.launchpad.net/bugs/978952

Title:
  indent duplicate const

Status in indent package in Ubuntu:
  Fix Committed

Bug description:
  using GNU indent 2.2.11

  file in test.cpp

  void test::test () const
       {
       }

  file out test.cpp after indent
  void
  test::test () const const
  {
  }

  
  this is reported here
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=349065

  for resolve change in handletoken.c

  
  1452     if ((parser_state_tos->last_token == rparen) &&
  1453         parser_state_tos->in_parameter_declaration &&
  1454         parser_state_tos->saw_double_colon &&
  1455         !strncmp (token, "const", 5))

  to

  1452     if ((parser_state_tos->last_token == rparen) &&
  1453         parser_state_tos->in_parameter_declaration &&
  1454         parser_state_tos->saw_double_colon &&
  1455         (!strncmp (token, "const", 5)==0))

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indent/+bug/978952/+subscriptions



More information about the foundations-bugs mailing list