[PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2017-02-14 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cert/DontModifyStdNamespaceCheck.cpp:34 + + diag(N->getLocation(), + "modification of '%0' namespace can result in undefined behavior") I think this will still trigger false positives because

[PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2017-02-14 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun updated this revision to Diff 88333. xazax.hun marked 9 inline comments as done. xazax.hun added a comment. - Updated to latest trunk. - The cert rule was renamed, the patch is updated accordingly. - Fixes as per review comments. https://reviews.llvm.org/D23421 Files:

[PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2017-02-07 Thread Benedek Kiss via Phabricator via cfe-commits
falho added a comment. Unfortunately I wont have time to work on this check anymore... thank you for understanding! Repository: rL LLVM https://reviews.llvm.org/D23421 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2017-02-07 Thread Benedek Kiss via cfe-commits
Unfortunatelly I wont have time now to work on this check... Thank you for understanding! On Mon, Feb 6, 2017 at 3:44 PM, Gábor Horváth via Phabricator < revi...@reviews.llvm.org> wrote: > xazax.hun added a comment. > > Benedek, do you have time to address the review comments or do you want me >

[PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2017-02-06 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. Benedek, do you have time to address the review comments or do you want me to commandeer this revision? Repository: rL LLVM https://reviews.llvm.org/D23421 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2016-08-12 Thread Gábor Horváth via cfe-commits
xazax.hun added inline comments. Comment at: test/clang-tidy/cert-dont-modify-std-namespace.cpp:1 @@ +1,2 @@ +// RUN: %check_clang_tidy %s cert-msc53-cpp %t -- -- -std=c++1z + hokein wrote: > Do we need `c++1z` flag here? I think it is there for the following

Re: [PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2016-08-12 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/cert/DontModifyStdNamespaceCheck.cpp:20 @@ +19,3 @@ + +void DontModifyStdNamespaceCheck::registerMatchers(MatchFinder *Finder) { + Finder->addMatcher(namespaceDecl(unless(isExpansionInSystemHeader()), This

Re: [PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2016-08-11 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Thank you for working on this check! There is a slight problem, however, in that the check as-written will flag false positives because there are times when it is permissible to modify the std namespace. The important bit of the CERT requirement is "Do not add