[Qt-creator] Clang utilities (was: include cleaner)
mateusz at loskot.net
Tue Dec 3 15:20:31 CET 2013
On 3 December 2013 14:07, Sergey Shambir <sergey.shambir.auto at gmail.com> wrote:
> 03.12.13, 13:19, Mateusz Loskot пишет:
>> On 3 December 2013 09:14, Przemyslaw Gorszkowski <pgorszkowski at gmail.com> wrote:
>>> Another thing which can be use here from
>>> Clang(https://code.google.com/p/include-what-you-use needs Clang) is Clang
>>> Tools(e.g.: Clang C++ Modernizer:
>> Another one is ClangFormat and its LibFormat, as AStyle replacement
>>> Due to the fact that both base on Clang probably it should be consider in
>>> WIP/Clang branch.
>> BTW, who is the current maintainer of this branch?
> Erik Verbruggen is maintainer.
> One of clang disadvantages is that its parser cannot work when file
> contains errors. If one of important include paths is missed, some
> include will be not resolved and clang will meet fatal error, so
> formatting will fail.
I wasn't aware of that, good point.
> In other cases it should work OK, but a few months ago all ClangFormat
> style rules was hardcoded into its sources - so set of available styles
> is very limited (I'm not sure if it bug or feature :)) ).
Yes, that's a limitation. I'm hoping it's temporary state :)
Mateusz Łoskot, http://mateusz.loskot.net
More information about the Qt-creator