[Qt-creator] Clang utilities (was: include cleaner)
sergey.shambir.auto at gmail.com
Tue Dec 3 15:07:24 CET 2013
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?
> Best regards,
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.
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 :)) ).
More information about the Qt-creator