[cfe-dev] [clang-tidy] new checker to find/replace throw() with noexcept

don hinton via cfe-dev cfe-dev at lists.llvm.org
Sun Mar 27 13:02:45 PDT 2016


Guess I'm just lazy.

If I used a crude tool, I'd have to keep track of context myself, e.g., am
I in a comment or not.  A bit too tedious and error prone for me,
especially for large projects with lots of files.

sent via phone...
On Mar 27, 2016 12:31 PM, "Jonathan Coe" <jbcoe at me.com> wrote:

> This sounds like a good idea, I presume it would go into 'modernise'
>
> Just out of curiosity, how would it differ from a crude textual
> search-and-replace?
>
> Jon
>
> On 26 March 2016 at 21:47, don hinton via cfe-dev <cfe-dev at lists.llvm.org>
> wrote:
>
>> I needed to replace a bunch of "throw()" specifiers with a macro, so I
>> wrote a clang-tidy checker to do it for me.
>>
>> The new checker that will find and replace "throw()" specifiers in
>> function declarations with either "noexcept" or a macro of your choice.
>>
>> Please let me know if this is something you'd like in clang-tidy, and
>> I'll clean it up and submit a patch.
>>
>> thanks...
>> don
>>
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160327/8af8ca51/attachment.html>


More information about the cfe-dev mailing list