Formatting support for programming languages

I've recently starting working with metal code, and objective c, and it's not particulary clear to me whether RStudio has formatting support for .metal and .m files? or if there already is, how to associate that formatting to those files types?

Also for .cl, and .cu files?