[ITK] [ITK-dev] Clang scripting to make code changes

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Fri Sep 9 13:18:50 EDT 2016


Hans,

If I recall correctly you have used a clang based tool to make context based changes on ITK code before.

To addresses some dynamic_cast failures which can occur with Xcode based tools, we are considering the patch to change dynamic_cast to Object::SafeDownCast[1]. One issue is finding a good way to to update dynamic_casts.

With the clang based tool can we change “dynamic_cast<TObject>(arg)” to “TObject::SafeDownCast(arg)” only if TObject has itk::LightObject as some ancestor class?

Thanks,
Brad

[1] http://review.source.kitware.com/#/c/21499/
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list