[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: Re: [cfe-dev] clang-tidy, clang-modernize, and remove-cstr-calls
From: Mario Lang <mlang () delysid ! org>
Date: 2015-01-30 21:25:54
Message-ID: 87386sx8nx.fsf () fx ! delysid ! org
[Download RAW message or body]
Richard <legalize@xmission.com> writes:
> Should remove-cstr-calls be migrated to a clang-tidy check?
I've thought the same in the past, and I think yes. It would fit clang-tidy.
> What about clang-modernize? Are the transformations there considered
> to be of the lint variety? Should those transformations be migrated
> to clang-tidy as well?
I think clang-modernize should stay separate, as it doesn't strictly
search for programming errors of inefficiencies. It is really a source-code upgrade
tool, something you run once you've decided to switch your standard
level. One might argue that clang-modernize could be run as part of
clang-tidy, if LangOpts specified CPlusPlus11, but I am not convinced.
OTOH, the check-enabling syntax of clang-tidy makes it rather easy to
run modernize as part of it... "clang-tidy -fix -checks=modernize"
wouldn't be particularily hard to type. But keep in mind that clang-modernize seems
to be able to run without a compilation database, which doesn't apply to
clang-tidy.
--
CYa,
⡍
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic