diff options
author | Matthias Gehre <M.Gehre@gmx.de> | 2016-09-28 20:06:18 +0000 |
---|---|---|
committer | Matthias Gehre <M.Gehre@gmx.de> | 2016-09-28 20:06:18 +0000 |
commit | 6207d459a417728f4f289b8b091f8160061c134a (patch) | |
tree | eac169b500e27bc4600aeec75ac9afdf0bfccf49 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | e14df4b2365948f67069b9ec378852baf6c9da88 (diff) | |
download | llvm-6207d459a417728f4f289b8b091f8160061c134a.zip llvm-6207d459a417728f4f289b8b091f8160061c134a.tar.gz llvm-6207d459a417728f4f289b8b091f8160061c134a.tar.bz2 |
[clang-tidy] fix false-positive for cppcoreguidelines-pro-type-member-init with in-class initializers
Summary:
This fixes https://llvm.org/bugs/show_bug.cgi?id=30487 where
```
warning: uninitialized record type: 's' [cppcoreguidelines-pro-type-member-init]
```
is emitted on
```
struct MyStruct
{
int a = 5;
int b = 7;
};
int main()
{
MyStruct s;
}
```
Reviewers: alexfh, aaron.ballman
Subscribers: nemanjai, cfe-commits
Differential Revision: https://reviews.llvm.org/D24848
llvm-svn: 282625
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions