diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-17 12:53:34 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-17 12:53:34 +0000 |
commit | 2c6cc48a38455969b4602a2d37ce620101b7eebc (patch) | |
tree | 15949308b28238ed9158f7f444a897bcfe0a7252 /lib/Driver/Tools.cpp | |
parent | ee000bb236fd99f297c253206e5f110a8f49661e (diff) |
Improve handling of comments in static initializers.
Also adding more tests.
We can now keep the formatting of something like:
static SomeType type = { aaaaaaaaaaaaaaaaaaaa, /* comment */
aaaaaaaaaaaaaaaaaaaa /* comment */,
/* comment */ aaaaaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaa, // comment
aaaaaaaaaaaaaaaaaaaa };
Note that the comment in the first line is handled like a trailing line comment
as that is likely what the user intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions