Prevent warning when the values are initialized using fields that will be initialized later or VarDecls defined in the constructors body.
Both of these cases can't be safely fixed.
Also improve logic of finding where to insert member initializers, previously it could be confused by in class member initializers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Fix potential crash if macros are used, Now we just don't try to emit a fix.
Fix issue where FixIt for member initializers would be inserted at the start of the constructor decl due to implicit member initializers confusing it.
Streamlined method for finding where to create member initializers when there's no member initializer list.
Comment Actions
I can try, but I'm not sure of the exact cause of it. It happened when running the check over clang codebase.
The assert was caused by not checking the Optional returned from findNextToken which can fail if the location passed is at the end of a macro expansion.