LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 17516 - Enumerator indentation using spaces instead of tabs
Summary: Enumerator indentation using spaces instead of tabs
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: Formatter (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Alexander Kornienko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-08 21:10 PDT by Matthew Brush
Modified: 2013-10-14 16:49 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Brush 2013-10-08 21:10:11 PDT
Using "UseTabs:ForIndentation", enumerators tabs get replaced/indented with spaces. Not sure if it's intentional but it stands out as odd (having whitespace display enabled in editor). For example, this:

~~~

enum Foo {
	FOO_1,
	FOO_2,
};

~~~

Becomes this:

~~~

enum Foo {
    FOO_1,
    FOO_2,  
};

~~~

I pasted in hard tabs before the enumerators in the first version, hopefully they are visible enough and don't get nuked when rendered. The second version has 4 spaces.

Using SVN revision 192053.
Comment 1 Alexander Kornienko 2013-10-13 19:50:13 PDT
Fixed in r192563.
Comment 2 Matthew Brush 2013-10-14 16:49:54 PDT
Confirmed. Thanks a lot!