llvm-project
[clang-tidy] Add new check `modernize-use-designated-initializers`
#80541
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
65
Changes
View On
GitHub
[clang-tidy] Add new check `modernize-use-designated-initializers`
#80541
SimplyDanny
merged 65 commits into
llvm:main
from
SimplyDanny:use-designated-initializer
llvmbot
added
clang-tools-extra
llvmbot
added
clang-tidy
PiotrZSL
requested changes on 2024-02-03
EugeneZelenko
commented on 2024-02-03
SimplyDanny
force pushed
to
c2bb32a2
1 year ago
SimplyDanny
commented on 2024-02-11
EugeneZelenko
commented on 2024-02-11
5chmidti
requested changes on 2024-02-11
SimplyDanny
requested a review
from
PiotrZSL
1 year ago
EugeneZelenko
commented on 2024-02-13
PiotrZSL
commented on 2024-02-13
PiotrZSL
approved these changes on 2024-02-14
SimplyDanny
force pushed
to
7196618f
1 year ago
SimplyDanny
force pushed
from
7196618f
to
64aebaed
1 year ago
SimplyDanny
force pushed
from
64aebaed
to
0e4bae42
1 year ago
SimplyDanny
requested a review
from
5chmidti
1 year ago
PiotrZSL
requested changes on 2024-02-20
SimplyDanny
force pushed
to
14c991ce
1 year ago
PiotrZSL
approved these changes on 2024-02-20
SimplyDanny
force pushed
to
e50677a7
1 year ago
SimplyDanny
force pushed
to
e50677a7
1 year ago
SimplyDanny
force pushed
1 year ago
SimplyDanny
force pushed
1 year ago
SimplyDanny
force pushed
to
0a633d0b
1 year ago
SimplyDanny
force pushed
from
0a633d0b
to
ee8488f8
1 year ago
SimplyDanny
force pushed
from
ee8488f8
to
e29f6451
1 year ago
SimplyDanny
force pushed
from
e29f6451
to
42885d6c
1 year ago
Trigger on variable declarations
2b58d1b5
Support nested initializer lists
35708255
Rename
511ff53e
Enable for C++20 only
edd2ffd9
Add option to ignore aggregates with single elements
5311c658
Test class
ef99af25
Add documentation and release notes
217b5aa3
Fix typo
8174277d
Specify explicit type
66a136b6
Get only local option
0c22b875
Improve check description
39441a08
Move logic into matcher
599b7dfe
Add template test
6a98ede2
Ignore types inheriting fields
dcabc571
Ignore types with anonymous fields
b00c46c3
Remove restriction to C++ 20
ff051d22
Add option to restrict check to POD types
ab6232d2
Add fix-its
118b9136
Move computation of designated initializers to common place
86868d23
Fully implement fix-its reusing designated initializer computation fr…
f9e72475
Separate by empty line
6a03dc6c
Add test for default-initialized fields
eac967fa
Fix C++20 style
a82f80e3
Have custom AST matchers in anonymous namespace
fa3d438e
Keep public methods public
c2fa7eab
Rename method
a2695b3d
Analyze syntactic form only
9075dcf2
Have separate fixes
9fe89598
Keep order in release notes
fee15abc
Use constexpr
27b9a102
Move after namespace
3f29da4f
Check for null
72511ea2
Use llvm::all_of
3ef14a23
Convert matcher to internal variable
7c7b7921
Check for unset type
10e474c8
Mention options for older standards
fb623ad7
Add -fno-delayed-template-parsing
aa2091cf
Support inline defined structs and unions
20e3a8ef
Support anonymous structs and unions
6d2bd287
Test aggregate in aggregate
5a7ddfcd
Add test for template values
ea369b37
Add option to ignore macros
6ea08a81
Stream full source ranges into diagnostics
cace099f
Use getLocalOrGlobal for IgnoreMacros option
44fe06f5
Avoid negation
dab96ac3
Use llvm::all_of
d86ac9d7
Reduce nesting level
bb16263f
Compute designators lazily and exit/continue early
fea9ac2d
Point to type to initialize
d0e686e0
Mention type or field name in diagnostic
c719b05f
Move designator computation to clang-tidy/utils and link it into Clangd
a1b17e05
Return without block
e97bb92a
Have safety check for both cases
b49e587f
Prefer references to avoid performance issues
54198fc5
Refer to type only
64326163
Improve type hint
5fc2d3d1
Use new option format
5081ecbe
Extract to class to handle missing elements gracefully
3cfce274
Rename and avoid two calls
906b3380
Combine diagnostic details aggregation
6cbf8c4f
Add some doc
cb270ff5
Make intention clearer
70545587
Omit placeholder if there is no designator
f83c0a61
Trim NULL characters
12f1abf5
Fix, format and reorder documentation
4d6446c3
SimplyDanny
force pushed
from
42885d6c
to
4d6446c3
1 year ago
SimplyDanny
merged
525fe449
into main
1 year ago
SimplyDanny
deleted the use-designated-initializer branch
1 year ago
Login to write a write a comment.
Login via GitHub
Reviewers
PiotrZSL
5chmidti
EugeneZelenko
Assignees
No one assigned
Labels
clang-tools-extra
clang-tidy
Milestone
No milestone
Login to write a write a comment.
Login via GitHub