bugGNU indent - Bugs: bug #48972, Make -T support extended regexes.

 
 

bug #48972: Make -T support extended regexes.

Submitted by:  Donovan Baarda <dbaarda>
Submitted on:  Fri 02 Sep 2016 01:13:01 AM UTC  
 
Category: CSeverity: 3 - Normal
Item Group: WishlistStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 02 Sep 2016 01:15:30 AM UTC, comment #1:

Note I've added support for this and other issues in my tidyc wrapper using sed pre/post processing available at;

https://github.com/dbaarda/tidyc

Donovan Baarda <dbaarda>
Fri 02 Sep 2016 01:13:01 AM UTC, original submission:

Currently indent requires that all user defined types be specified with -T options for code using them to be formatted correctly with options like --space-after-cast and to not put a space between '*' or '&' and the variable name in variable declarations.

Unfortunately it's not very practical to have a continuously growing list of user defined types for an evolving project just for indent reformatting.

However, most project use naming conventions for user defined types that can be matched with regular expressions. A common example is '\w+_t'. It would be nice if -T supported extended regular expressions, indicating them by bracketing the variable name in '/' delimiters like '-T /<regex>/'.

Example;

Donovan Baarda <dbaarda>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dbaarda (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1