DynamicTypeInfo -> Optional<DynamicTypeInfo>,
which removes the method bool isValid().
Details
Details
- Reviewers
NoQ
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I actually like the idea, it makes it consistent with other maps. But you'll need to clean up memory management here. Given that you can't modify the state in getDynamicTypeInfo(), i guess you'll have to resort to smart pointers.
clang/lib/StaticAnalyzer/Core/DynamicType.cpp | ||
---|---|---|
53–57 | Do i have to do a delete manually every time i call this function? | |
96 | Who is responsible for deallocating this memory? |
Comment Actions
Sorry, I was sure it is working as expected.
clang/lib/StaticAnalyzer/Core/DynamicType.cpp | ||
---|---|---|
53–57 | Well, from now you do not. |
Do i have to do a delete manually every time i call this function?