-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix #14546 FN uninitMemberVar (in-class initializers but no constructor) #8274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 6 commits
f04a62d
d0c2336
ed7a13a
fef16fb
fb6ba0f
39973d1
6381e50
162cc68
990f673
c8e0baf
0e7eb75
8e2ff1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -694,12 +694,12 @@ class CPPCHECKLIB Tokenizer { | |
| struct TypedefInfo { | ||
| std::string name; | ||
| std::string filename; | ||
| int lineNumber; | ||
| int column; | ||
| int lineNumber{}; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm.. this struct is only accessible in Tokenizer methods and if I look manually I can quite easily see that A user can see this as noise. We could be less pedantic here. If you feel this is wanted even though we can see the code is safe, well I wonder if a tweaked ID can be used for this more noisy warning. |
||
| int column{}; | ||
| int tagLine{-1}; | ||
| int tagColumn{-1}; | ||
| bool used; | ||
| bool isFunctionPointer; | ||
| bool used{}; | ||
| bool isFunctionPointer{}; | ||
| std::vector<TypedefToken> typedefInfoTokens; | ||
| }; | ||
| std::vector<TypedefInfo> mTypedefInfo; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.