r357921 - Remove a useless assertion in clang-check.

2019-04-08 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Apr 8 09:29:43 2019 New Revision: 357921 URL: http://llvm.org/viewvc/llvm-project?rev=357921&view=rev Log: Remove a useless assertion in clang-check. Re-commit r357915 with a fix for windows. The assertion prevents it from applying fixes when used along with compilation

r357922 - Remove a bogus sed option in test.

2019-04-08 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Apr 8 09:34:38 2019 New Revision: 357922 URL: http://llvm.org/viewvc/llvm-project?rev=357922&view=rev Log: Remove a bogus sed option in test. Modified: cfe/trunk/test/Tooling/clang-check-fixit.cpp Modified: cfe/trunk/test/Tooling/clang-check-fixit.cpp URL: http://l

[clang-tools-extra] r358589 - [clang-tidy] Fix invalid location in readability-misleading-indentation diagnostic

2019-04-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 17 09:19:47 2019 New Revision: 358589 URL: http://llvm.org/viewvc/llvm-project?rev=358589&view=rev Log: [clang-tidy] Fix invalid location in readability-misleading-indentation diagnostic Before this patch readability-misleading-indentation could issue diagnostics wit

[clang-tools-extra] r358621 - [clang-tidy] Don't issue cppcoreguidelines-macro-usage on builtin macros

2019-04-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 17 15:35:36 2019 New Revision: 358621 URL: http://llvm.org/viewvc/llvm-project?rev=358621&view=rev Log: [clang-tidy] Don't issue cppcoreguidelines-macro-usage on builtin macros Before the patch calling clang-tidy with -header-filter=.* -system-headers would result in

r358630 - [clang-format] Remove unused Environment constructor.

2019-04-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Apr 17 17:36:51 2019 New Revision: 358630 URL: http://llvm.org/viewvc/llvm-project?rev=358630&view=rev Log: [clang-format] Remove unused Environment constructor. Modified: cfe/trunk/lib/Format/TokenAnalyzer.h Modified: cfe/trunk/lib/Format/TokenAnalyzer.h URL: http:

Re: [clang-tools-extra] r342388 - [Clang-Tidy: modernize] Fix for modernize-redundant-void-arg: complains about variable cast to void

2018-09-17 Thread Alexander Kornienko via cfe-commits
It looks like this commit breaks buildbots (e.g. http://lab.llvm.org:8011/builders/clang-cmake-armv8-quick/builds/6711). Could you take a look? On Mon, Sep 17, 2018 at 2:33 PM Idriss Riouak via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: idrissrio > Date: Mon Sep 17 05:29:29 2018 >

Re: [clang-tools-extra] r342388 - [Clang-Tidy: modernize] Fix for modernize-redundant-void-arg: complains about variable cast to void

2018-09-17 Thread Alexander Kornienko via cfe-commits
(If there's no clear idea of how to fix this, reverting until the fix is found is usually the best strategy.) On Mon, Sep 17, 2018 at 3:14 PM Alexander Kornienko wrote: > It looks like this commit breaks buildbots (e.g. > http://lab.llvm.org:8011/builders/clang-cmake-armv8-quick/builds/6711). >

Re: [clang-tools-extra] r342388 - [Clang-Tidy: modernize] Fix for modernize-redundant-void-arg: complains about variable cast to void

2018-09-17 Thread Alexander Kornienko via cfe-commits
Ah, now I see your fix in r342389. Thanks! On Mon, Sep 17, 2018 at 3:15 PM Alexander Kornienko wrote: > (If there's no clear idea of how to fix this, reverting until the fix is > found is usually the best strategy.) > > On Mon, Sep 17, 2018 at 3:14 PM Alexander Kornienko > wrote: > >> It looks

Re: [clang-tools-extra] r342388 - [Clang-Tidy: modernize] Fix for modernize-redundant-void-arg: complains about variable cast to void

2018-09-18 Thread Alexander Kornienko via cfe-commits
> > Now on my Mac it compile and all the tests are ok. > Should I try anything else ? > > Il giorno 17 set 2018, alle ore 15:14, Alexander Kornienko via cfe-commits > ha scritto: > > It looks like this commit breaks buildbots (e.g. > http://lab.llvm.org:8011/builders/clang-cma

[clang-tools-extra] r343578 - [clang-tidy] Ignore singe bit bitfield -> bool conversion in readability-implicit-bool-conversion

2018-10-02 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Oct 2 04:38:41 2018 New Revision: 343578 URL: http://llvm.org/viewvc/llvm-project?rev=343578&view=rev Log: [clang-tidy] Ignore singe bit bitfield -> bool conversion in readability-implicit-bool-conversion Modified: clang-tools-extra/trunk/clang-tidy/readability/Imp

[clang-tools-extra] r353382 - [clang-tidy] Expand and clarify the NOLINT documentation a bit.

2019-02-07 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Feb 7 02:34:43 2019 New Revision: 353382 URL: http://llvm.org/viewvc/llvm-project?rev=353382&view=rev Log: [clang-tidy] Expand and clarify the NOLINT documentation a bit. Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst Modified: clang-tools-extra/trunk/d

r353711 - Fixed header underline in docs.

2019-02-11 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Feb 11 07:17:13 2019 New Revision: 353711 URL: http://llvm.org/viewvc/llvm-project?rev=353711&view=rev Log: Fixed header underline in docs. + Removed trailing whitespace. Modified: cfe/trunk/docs/analyzer/checkers.rst Modified: cfe/trunk/docs/analyzer/checkers.rst U

r354183 - clang-format with UseTab: Always sometimes doesn't insert the right amount of tabs.

2019-02-15 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Feb 15 15:07:43 2019 New Revision: 354183 URL: http://llvm.org/viewvc/llvm-project?rev=354183&view=rev Log: clang-format with UseTab: Always sometimes doesn't insert the right amount of tabs. Trailing comments are not always aligned properly when UseTab is set to Always.

[clang-tools-extra] r354266 - [clang-tidy] Fix links in docs.

2019-02-18 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Feb 18 04:50:35 2019 New Revision: 354266 URL: http://llvm.org/viewvc/llvm-project?rev=354266&view=rev Log: [clang-tidy] Fix links in docs. Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst Modified: clang-tools-extra/trunk/docs/clang-tidy/index.rst URL: h

r354795 - Make static counters in ASTContext non-static.

2019-02-25 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Feb 25 08:08:46 2019 New Revision: 354795 URL: http://llvm.org/viewvc/llvm-project?rev=354795&view=rev Log: Make static counters in ASTContext non-static. Summary: Fixes a data race and makes it possible to run clang-based tools in multithreaded environment with TSan. Re

Re: [clang-tools-extra] r312769 - Update for PrintHelpMessage not calling exit.

2017-09-10 Thread Alexander Kornienko via cfe-commits
On Fri, Sep 8, 2017 at 2:33 AM, Rafael Espindola via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rafael > Date: Thu Sep 7 17:33:39 2017 > New Revision: 312769 > > URL: http://llvm.org/viewvc/llvm-project?rev=312769&view=rev > Log: > Update for PrintHelpMessage not calling exit. > >

[clang-tools-extra] r313150 - [clang-tidy] fixed misc-unused-parameters omitting parameters default value

2017-09-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Sep 13 07:55:13 2017 New Revision: 313150 URL: http://llvm.org/viewvc/llvm-project?rev=313150&view=rev Log: [clang-tidy] fixed misc-unused-parameters omitting parameters default value Summary: Bug: https://bugs.llvm.org/show_bug.cgi?id=34450 **Problem:** Clang-tidy chec

r313156 - Update users of llvm::sys::ExecuteAndWait etc.

2017-09-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Sep 13 10:03:58 2017 New Revision: 313156 URL: http://llvm.org/viewvc/llvm-project?rev=313156&view=rev Log: Update users of llvm::sys::ExecuteAndWait etc. Summary: Clang part of https://reviews.llvm.org/D37563 Reviewers: bkramer Subscribers: vsk, cfe-commits Differenti

r313162 - Attempt to fix MSVC build.

2017-09-13 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Sep 13 10:45:51 2017 New Revision: 313162 URL: http://llvm.org/viewvc/llvm-project?rev=313162&view=rev Log: Attempt to fix MSVC build. Modified: cfe/trunk/lib/Driver/Job.cpp Modified: cfe/trunk/lib/Driver/Job.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/li

[clang-tools-extra] r313355 - [clang-tidy] Fixed misc-unused-parameters omitting parameters square brackets

2017-09-15 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Sep 15 04:28:28 2017 New Revision: 313355 URL: http://llvm.org/viewvc/llvm-project?rev=313355&view=rev Log: [clang-tidy] Fixed misc-unused-parameters omitting parameters square brackets Summary: Bug: https://bugs.llvm.org/show_bug.cgi?id=34449 **Problem:** Clang-tidy ch

[clang-tools-extra] r313752 - [clang-tidy] Fix linkage-related compiler errors in clang-tidy tests

2017-09-20 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Sep 20 05:16:35 2017 New Revision: 313752 URL: http://llvm.org/viewvc/llvm-project?rev=313752&view=rev Log: [clang-tidy] Fix linkage-related compiler errors in clang-tidy tests Modified: clang-tools-extra/trunk/test/clang-tidy/misc-inefficient-algorithm.cpp clang-

r364837 - Fixed two issues in clang-tidy -help.

2019-07-01 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Jul 1 11:55:10 2019 New Revision: 364837 URL: http://llvm.org/viewvc/llvm-project?rev=364837&view=rev Log: Fixed two issues in clang-tidy -help. HeaderFilter -> HeaderFilterRegex Modified: cfe/trunk/lib/Tooling/CommonOptionsParser.cpp Modified: cfe/trunk/lib/Toolin

[clang-tools-extra] r364837 - Fixed two issues in clang-tidy -help.

2019-07-01 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Jul 1 11:55:10 2019 New Revision: 364837 URL: http://llvm.org/viewvc/llvm-project?rev=364837&view=rev Log: Fixed two issues in clang-tidy -help. HeaderFilter -> HeaderFilterRegex Modified: clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp clang-tools-ext

[clang-tools-extra] r349758 - [clang-tidy] Use translationUnitDecl() instead of a custom matcher.

2018-12-20 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Dec 20 05:50:04 2018 New Revision: 349758 URL: http://llvm.org/viewvc/llvm-project?rev=349758&view=rev Log: [clang-tidy] Use translationUnitDecl() instead of a custom matcher. Modified: clang-tools-extra/trunk/clang-tidy/readability/SimplifyBooleanExprCheck.cpp cl

r350638 - Fix use-after-free bug in Tooling.

2019-01-08 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Jan 8 08:55:13 2019 New Revision: 350638 URL: http://llvm.org/viewvc/llvm-project?rev=350638&view=rev Log: Fix use-after-free bug in Tooling. Summary: `buildASTFromCodeWithArgs()` was creating a memory buffer referencing a stack-allocated string. This diff changes the i

r350727 - Remove dependency-related arguments in clang-check.

2019-01-09 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jan 9 07:00:06 2019 New Revision: 350727 URL: http://llvm.org/viewvc/llvm-project?rev=350727&view=rev Log: Remove dependency-related arguments in clang-check. This is the default behavior of clang tools, but clang-check overrides default argument adjusters for some reaso

Re: [clang-tools-extra] r329873 - [clang-tidy] [modernize-use-auto] Get only a length of token, not the token itself

2018-04-12 Thread Alexander Kornienko via cfe-commits
On Thu, Apr 12, 2018 at 7:44 AM Zinovy Nis via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: zinovy.nis > Date: Wed Apr 11 22:41:24 2018 > New Revision: 329873 > > URL: http://llvm.org/viewvc/llvm-project?rev=329873&view=rev > Log: > [clang-tidy] [modernize-use-auto] Get only a length

r331207 - Regenerated AST Matchers doc.

2018-04-30 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Apr 30 11:12:15 2018 New Revision: 331207 URL: http://llvm.org/viewvc/llvm-project?rev=331207&view=rev Log: Regenerated AST Matchers doc. Backported a minor fix to the comment in the header. Modified: cfe/trunk/docs/LibASTMatchersReference.html cfe/trunk/include/

[clang-tools-extra] r331456 - [clang-tidy] Remove AnalyzeTemporaryDtors option.

2018-05-03 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu May 3 07:40:37 2018 New Revision: 331456 URL: http://llvm.org/viewvc/llvm-project?rev=331456&view=rev Log: [clang-tidy] Remove AnalyzeTemporaryDtors option. Remove the `AnalyzeTemporaryDtors` option, since the corresponding `cfg-temporary-dtors` option of the Static Anal

[clang-tools-extra] r331460 - Add a trailing period in release notes.

2018-05-03 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu May 3 08:59:39 2018 New Revision: 331460 URL: http://llvm.org/viewvc/llvm-project?rev=331460&view=rev Log: Add a trailing period in release notes. Modified: clang-tools-extra/trunk/clang-tidy/add_new_check.py Modified: clang-tools-extra/trunk/clang-tidy/add_new_chec

[clang-tools-extra] r331461 - Added trailing periods.

2018-05-03 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu May 3 09:01:49 2018 New Revision: 331461 URL: http://llvm.org/viewvc/llvm-project?rev=331461&view=rev Log: Added trailing periods. Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/v

r331520 - Remove explicit cfg-temporary-dtors=true

2018-05-04 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri May 4 07:13:14 2018 New Revision: 331520 URL: http://llvm.org/viewvc/llvm-project?rev=331520&view=rev Log: Remove explicit cfg-temporary-dtors=true Summary: Remove explicit -analyzer-config cfg-temporary-dtors=true in analyzer tests, since this option defaults to true si

Re: r331556 - [analyzer] Treat more const variables and fields as known contants.

2018-05-07 Thread Alexander Kornienko via cfe-commits
It looks like this commit has introduced an assertion failure. See https://bugs.llvm.org/show_bug.cgi?id=37357. On Fri, May 4, 2018 at 10:56 PM Artem Dergachev via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: dergachev > Date: Fri May 4 13:52:39 2018 > New Revision: 331556 > > URL:

[clang-tools-extra] r335736 - [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is mutated within a statement.

2018-06-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jun 27 07:30:55 2018 New Revision: 335736 URL: http://llvm.org/viewvc/llvm-project?rev=335736&view=rev Log: [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is mutated within a statement. Summary: (Originally started as a clang-tidy check but th

r335740 - [analyzer] Allow registering custom statically-linked analyzer checkers

2018-06-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jun 27 07:56:12 2018 New Revision: 335740 URL: http://llvm.org/viewvc/llvm-project?rev=335740&view=rev Log: [analyzer] Allow registering custom statically-linked analyzer checkers Summary: Add an extension point to allow registration of statically-linked Clang Static Anal

Re: [clang-tools-extra] r335799 - Fixup test to compile with -frtti when trying to use typeid() as the PS4 does not have it on by default and it was failing on the PS4 linux bot because of this.

2018-06-28 Thread Alexander Kornienko via cfe-commits
Thank you for fixing the test! On Thu, Jun 28, 2018 at 2:23 AM Douglas Yung via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: dyung > Date: Wed Jun 27 17:19:12 2018 > New Revision: 335799 > > URL: http://llvm.org/viewvc/llvm-project?rev=335799&view=rev > Log: > Fixup test to compile

[clang-tools-extra] r335845 - Fix formatting. NFC.

2018-06-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Jun 28 05:15:17 2018 New Revision: 335845 URL: http://llvm.org/viewvc/llvm-project?rev=335845&view=rev Log: Fix formatting. NFC. Modified: clang-tools-extra/trunk/unittests/clang-tidy/ExprMutationAnalyzerTest.cpp Modified: clang-tools-extra/trunk/unittests/clang-tid

[clang-tools-extra] r335846 - Remove explicit type from an initializer list. NFC.

2018-06-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Jun 28 05:18:42 2018 New Revision: 335846 URL: http://llvm.org/viewvc/llvm-project?rev=335846&view=rev Log: Remove explicit type from an initializer list. NFC. Modified: clang-tools-extra/trunk/unittests/clang-tidy/ExprMutationAnalyzerTest.cpp Modified: clang-tools-

Re: r335854 - Fix unittest build with GCC older than 5.

2018-06-28 Thread Alexander Kornienko via cfe-commits
Thanks! I was going to push the same fix, but you also explained why it's needed ;) On Thu, Jun 28, 2018 at 3:36 PM Benjamin Kramer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: d0k > Date: Thu Jun 28 06:31:36 2018 > New Revision: 335854 > > URL: http://llvm.org/viewvc/llvm-proje

[clang-tools-extra] r335863 - [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode

2018-06-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Jun 28 08:21:25 2018 New Revision: 335863 URL: http://llvm.org/viewvc/llvm-project?rev=335863&view=rev Log: [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode Summary: This addresses https://bugs.llvm.org/show_bug.cgi?id=37467. Reviewers: klimek,

Re: r335740 - [analyzer] Allow registering custom statically-linked analyzer checkers

2018-06-28 Thread Alexander Kornienko via cfe-commits
usr/local/google/home/tra/local/clang/bin/ld.lld: error: undefined > > symbol: clang::PCHContainerOperations::PCHContainerOperations() > > > >>>> referenced by new_allocator.h:136 > (/usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ext/new_allocator.h:136)

Re: r335800 - [analyzer] Add support for pre-C++17 copy elision.

2018-07-04 Thread Alexander Kornienko via cfe-commits
We've started seeing assertion failures after this commit. assert.h assertion failed at llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:485 in static clang::ento::ProgramStateRef clang::ento::ExprEngine::elideDestructor(clang::ento::ProgramStateRef, const clang::CXXBindTemporaryExpr *, cons

Re: r335795 - [CFG] [analyzer] Add construction contexts that explain pre-C++17 copy elision.

2018-07-04 Thread Alexander Kornienko via cfe-commits
We've started seeing an assertion failure after this commit: assert.h assertion failed at llvm/tools/clang/lib/Analysis/CFG.cpp:1266 in void (anonymous namespace)::CFGBuilder::findConstructionContexts(const clang::ConstructionContextLayer *, clang::Stmt *): CE->getNumArgs() == 1 The stack trace is

[clang-tools-extra] r336283 - [clang-tidy] Fix http://llvm.org/PR38055

2018-07-04 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jul 4 08:19:49 2018 New Revision: 336283 URL: http://llvm.org/viewvc/llvm-project?rev=336283&view=rev Log: [clang-tidy] Fix http://llvm.org/PR38055 Modified: clang-tools-extra/trunk/clang-tidy/misc/UnusedParametersCheck.cpp clang-tools-extra/trunk/test/clang-tidy

Re: r335800 - [analyzer] Add support for pre-C++17 copy elision.

2018-07-05 Thread Alexander Kornienko via cfe-commits
Filed https://bugs.llvm.org/show_bug.cgi?id=38072 with an isolated test case. On Wed, Jul 4, 2018 at 4:18 PM Alexander Kornienko wrote: > We've started seeing assertion failures after this commit. > assert.h assertion failed at > llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:485 in sta

[clang] 8dda0f9 - Remove dependency between test files.

2020-04-12 Thread Alexander Kornienko via cfe-commits
Author: Alexander Kornienko Date: 2020-04-13T06:19:09+02:00 New Revision: 8dda0f91995955bb8f484f8d41374aff59118355 URL: https://github.com/llvm/llvm-project/commit/8dda0f91995955bb8f484f8d41374aff59118355 DIFF: https://github.com/llvm/llvm-project/commit/8dda0f91995955bb8f484f8d41374aff59118355

Re: [PATCH] D24881: [clang-tidy] Cleaning up language options.

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Thank you for the cleanup! Please clang-format-diff the files before submitting. Otherwise looks good. Repository: rL LLVM https://reviews.llvm.org/D24881 __

Re: [PATCH] D22507: Clang-tidy - Enum misuse check

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. Thank you for the updates! Please re-run the check on LLVM to see what has changed. Comment at: clang-tidy/misc/SuspiciousEnumUsageCheck.cpp:53 @@ +52,3 @@ +} +stat

Re: [PATCH] D24845: [clang-tidy] fix for NOLINT after macro expansion

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Awesome, thanks! Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:303 @@ +302,3 @@ +if (!Loc.isMacroID()) + break; +Loc = SM.getImmediateExpansionRange(Loc)

Re: [PATCH] D24656: [clang-tidy] Add check readability-redundant-declaration

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. If this kind of an error is not too frequent, it might make sense as a clang diagnostic, indeed. Having it in clang-tidy until then doesn't hurt, though. Comment at

Re: [PATCH] D24652: [clang-tidy] readability-avoid-const-params-in-decls template instantiation bugfix

2016-09-23 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/readability/AvoidConstParamsInDecls.cpp:39 @@ -38,2 +38,3 @@ // generate a non-definition FunctionDecl too. Ignore those. - unless

Re: [PATCH] D24893: [clang-tidy] make readability-redundant-smartptr-get report get() usage in conditions

2016-09-24 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. Thank you! https://reviews.llvm.org/D24893 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D24893: [clang-tidy] make readability-redundant-smartptr-get report get() usage in conditions

2016-09-24 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/RedundantSmartptrGetCheck.cpp:64 @@ -63,3 +63,3 @@ const auto IsAKnownSmartptr = recordDecl( anyOf(hasName("::std::unique_ptr"), hasName("::std::shared_ptr"))); BTW, this can be done usin

Re: [PATCH] D24893: [clang-tidy] make readability-redundant-smartptr-get report get() usage in conditions

2016-09-25 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Still LG. https://reviews.llvm.org/D24893 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D24444: [clang-tidy] modernize-use-default default constructor bugfix

2016-09-26 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a reviewer: alexfh. alexfh added a comment. This revision is now accepted and ready to land. LG. Thank you! https://reviews.llvm.org/D2 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

Re: [PATCH] D24652: [clang-tidy] readability-avoid-const-params-in-decls template instantiation bugfix

2016-09-26 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG https://reviews.llvm.org/D24652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D24914: [clang-rename] Do not print out error message upon encountering multiple replacements in the same SourceLocation.

2016-09-26 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-rename/RenamingAction.cpp:73 @@ -73,1 +72,3 @@ llvm::Error Err = FileToReplaces[Replace.getFilePath()].add(Replace); + // FIXME: As for clang-rename, replacement

[PATCH] D25019: [clang-tidy] Make add_new_check.py Python 3 compatible

2016-10-05 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. > add_new_check.py:58 > +f.write(b'//===--- ') > +f.write((os.path.basename(filename)).encode()) > +f.write(b' - clang-tidy') Too many parentheses. > add_new_check

[PATCH] D25238: [clang-tidy] Ignore empty members and bases in cppcoreguidelines-pro-type-member-init

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. LG https://reviews.llvm.org/D25238 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:331 +void UseAutoCheck::replaceExpr(const DeclStmt *D, ASTContext *Context, + Ty

[PATCH] D24656: [clang-tidy] Add check readability-redundant-declaration

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: clang-tidy/readability/RedundantDeclarationCheck.cpp:39 + bool MultiVar = false; + if (const auto *VD = dyn_cast(D)) { +if (VD && VD->getPrevi

[PATCH] D24572: [clang-tidy] Clean up code after applying replacements.

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh updated this revision to Diff 74160. alexfh marked 6 inline comments as done. alexfh added a comment. Herald added subscribers: mgorny, beanz. - Addressed review comments https://reviews.llvm.org/D24572 Files: clang-tidy/CMakeLists.txt clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyD

[PATCH] D25429: [analyzer] Link libStaticAnalyzerCheckers to libASTMatchers.

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. The change seems to be reasonable, and the size increase is not huge. However, I'm not sure who should make the call. https://reviews.llvm.org/D25429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:252-254 + anyOf(hasType(autoType()), +hasType(pointerType(pointee(autoType(, +hasType(referenceType(pointee(autoType())

[PATCH] D25244: [clang-tidy] Add a whitelist option in google-runtime-references.

2016-10-11 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/google/NonConstReferences.cpp:73 + [&](llvm::StringRef WhiteListType) { + return ReferencedType.getCanonicalType().getAsString( +Result.Context->getPrintingP

[clang-tools-extra] r318905 - clang-tidy/rename_check.py: support for moving between modules

2017-11-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Nov 23 04:08:53 2017 New Revision: 318905 URL: http://llvm.org/viewvc/llvm-project?rev=318905&view=rev Log: clang-tidy/rename_check.py: support for moving between modules Modified: clang-tools-extra/trunk/clang-tidy/rename_check.py Modified: clang-tools-extra/trunk/c

[clang-tools-extra] r318916 - [clang-tidy] rename_check.py misc-string-constructor bugprone-string-constructor

2017-11-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Nov 23 05:49:14 2017 New Revision: 318916 URL: http://llvm.org/viewvc/llvm-project?rev=318916&view=rev Log: [clang-tidy] rename_check.py misc-string-constructor bugprone-string-constructor Summary: Rename misc-string-constructor to bugprone-string-constructor + manually u

[clang-tools-extra] r318918 - [clang-tidy] rename_check.py: Update '=====...' line in the docs.

2017-11-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Nov 23 06:05:32 2017 New Revision: 318918 URL: http://llvm.org/viewvc/llvm-project?rev=318918&view=rev Log: [clang-tidy] rename_check.py: Update '=...' line in the docs. Modified: clang-tools-extra/trunk/clang-tidy/rename_check.py Modified: clang-tools-extra/trun

[clang-tools-extra] r318922 - [clang-tidy] rename_check.py: fix a bug in check presence detection

2017-11-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Nov 23 06:59:19 2017 New Revision: 318922 URL: http://llvm.org/viewvc/llvm-project?rev=318922&view=rev Log: [clang-tidy] rename_check.py: fix a bug in check presence detection Modified: clang-tools-extra/trunk/clang-tidy/rename_check.py Modified: clang-tools-extra/tr

[clang-tools-extra] r318926 - [clang-tidy] rename_check.py misc-argument-comment bugprone-argument-comment

2017-11-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Nov 23 09:02:48 2017 New Revision: 318926 URL: http://llvm.org/viewvc/llvm-project?rev=318926&view=rev Log: [clang-tidy] rename_check.py misc-argument-comment bugprone-argument-comment Summary: + manually convert the unit test to lit test. Reviewers: hokein Reviewed By:

[clang-tools-extra] r318941 - [clang-tidy] rename_check.py misc-dangling-handle bugprone-dangling-handle

2017-11-24 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Nov 24 01:52:05 2017 New Revision: 318941 URL: http://llvm.org/viewvc/llvm-project?rev=318941&view=rev Log: [clang-tidy] rename_check.py misc-dangling-handle bugprone-dangling-handle Reviewers: hokein Reviewed By: hokein Subscribers: mgorny, xazax.hun, cfe-commits Diff

[clang-tools-extra] r318951 - [clang-tidy] rename_check.py: fix header guard handling

2017-11-24 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Nov 24 06:33:06 2017 New Revision: 318951 URL: http://llvm.org/viewvc/llvm-project?rev=318951&view=rev Log: [clang-tidy] rename_check.py: fix header guard handling Modified: clang-tools-extra/trunk/clang-tidy/rename_check.py Modified: clang-tools-extra/trunk/clang-ti

[clang-tools-extra] r318971 - [clang-tidy] Actually fix header guard handling in scripts

2017-11-25 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Sat Nov 25 00:49:04 2017 New Revision: 318971 URL: http://llvm.org/viewvc/llvm-project?rev=318971&view=rev Log: [clang-tidy] Actually fix header guard handling in scripts Modified: clang-tools-extra/trunk/clang-tidy/add_new_check.py clang-tools-extra/trunk/clang-tidy/

[clang-tools-extra] r318972 - [clang-tidy] Fix link error (http://llvm.org/PR35417).

2017-11-25 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Sat Nov 25 00:52:42 2017 New Revision: 318972 URL: http://llvm.org/viewvc/llvm-project?rev=318972&view=rev Log: [clang-tidy] Fix link error (http://llvm.org/PR35417). Modified: clang-tools-extra/trunk/clang-tidy/hicpp/CMakeLists.txt Modified: clang-tools-extra/trunk/clan

[clang-tools-extra] r319021 - [clang-tidy] readability-non-const-parameter fixes should update all declarations

2017-11-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Nov 27 04:42:04 2017 New Revision: 319021 URL: http://llvm.org/viewvc/llvm-project?rev=319021&view=rev Log: [clang-tidy] readability-non-const-parameter fixes should update all declarations Fixes http://llvm.org/PR34410. Modified: clang-tools-extra/trunk/clang-tidy/

[clang-tools-extra] r319023 - [clang-tidy] Move checks from misc- to performance-

2017-11-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Nov 27 05:06:28 2017 New Revision: 319023 URL: http://llvm.org/viewvc/llvm-project?rev=319023&view=rev Log: [clang-tidy] Move checks from misc- to performance- Summary: rename_check.py misc-move-constructor-init performance-move-constructor-init rename_check.py misc-ineff

[clang-tools-extra] r319034 - [clang-tidy] Fix link error in clang-tidy after the recent check renames.

2017-11-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Nov 27 07:17:13 2017 New Revision: 319034 URL: http://llvm.org/viewvc/llvm-project?rev=319034&view=rev Log: [clang-tidy] Fix link error in clang-tidy after the recent check renames. Modified: clang-tools-extra/trunk/clang-tidy/cert/CMakeLists.txt Modified: clang-tool

[clang-tools-extra] r319062 - [clang-tidy] Rename qualified references to check class + support inconsistent names

2017-11-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Nov 27 09:59:26 2017 New Revision: 319062 URL: http://llvm.org/viewvc/llvm-project?rev=319062&view=rev Log: [clang-tidy] Rename qualified references to check class + support inconsistent names Modified: clang-tools-extra/trunk/clang-tidy/rename_check.py Modified: cl

[clang-tools-extra] r319183 - [clang-tidy] Move more checks from misc- to performance-

2017-11-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Nov 28 08:41:03 2017 New Revision: 319183 URL: http://llvm.org/viewvc/llvm-project?rev=319183&view=rev Log: [clang-tidy] Move more checks from misc- to performance- Summary: rename_check.py misc-move-const-arg performance-move-const-arg rename_check.py misc-noexcept-move-

[clang-tools-extra] r319325 - [clang-tidy] make readability-simplify-bool-expr completely ignore macros

2017-11-29 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Nov 29 09:16:09 2017 New Revision: 319325 URL: http://llvm.org/viewvc/llvm-project?rev=319325&view=rev Log: [clang-tidy] make readability-simplify-bool-expr completely ignore macros Modified: clang-tools-extra/trunk/clang-tidy/readability/SimplifyBooleanExprCheck.cpp

[clang-tools-extra] r320406 - [clang-tidy] Correctly classify constant arrays and constant strings as constants when checking identifiers naming

2017-12-11 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Dec 11 11:02:26 2017 New Revision: 320406 URL: http://llvm.org/viewvc/llvm-project?rev=320406&view=rev Log: [clang-tidy] Correctly classify constant arrays and constant strings as constants when checking identifiers naming Summary: They are not locally const qualified so

[clang-tools-extra] 637da9d - Revert "[clang] template / auto deduction deduces common sugar"

2022-09-13 Thread Alexander Kornienko via cfe-commits
Author: Alexander Kornienko Date: 2022-09-13T12:18:07+02:00 New Revision: 637da9de4c6619c0e179c2c2f0dbfebd08ac2a0f URL: https://github.com/llvm/llvm-project/commit/637da9de4c6619c0e179c2c2f0dbfebd08ac2a0f DIFF: https://github.com/llvm/llvm-project/commit/637da9de4c6619c0e179c2c2f0dbfebd08ac2a0f

[clang] 6e4930c - Revert "[SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (#77768)"

2024-01-24 Thread Alexander Kornienko via cfe-commits
Author: Alexander Kornienko Date: 2024-01-24T21:42:38+01:00 New Revision: 6e4930c67508a90bdfd756f6e45417b5253cd741 URL: https://github.com/llvm/llvm-project/commit/6e4930c67508a90bdfd756f6e45417b5253cd741 DIFF: https://github.com/llvm/llvm-project/commit/6e4930c67508a90bdfd756f6e45417b5253cd741

Re: r369616 - [analyzer] Enable control dependency condition tracking by default

2019-08-23 Thread Alexander Kornienko via cfe-commits
I suspect that this patch makes analysis much slower in certain cases. For example, the clang/test/Analysis/pr37802.cpp test has become ~5 times slower in some configurations in our environment. This happened somewhere between r369520 and r369679, and your series of patches seems most suspicious :)

[clang-tools-extra] r370919 - [clang-tidy] Fix bugprone-argument-comment bug if there are marcos.

2019-09-04 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Sep 4 09:19:32 2019 New Revision: 370919 URL: http://llvm.org/viewvc/llvm-project?rev=370919&view=rev Log: [clang-tidy] Fix bugprone-argument-comment bug if there are marcos. Summary: Fix bugprone-argument-comment bug if there are marcos. For example: ``` void j(int a,

[clang-tools-extra] r371072 - [clang-tidy] Fix bugprone-argument-comment bug: negative literal number is not checked.

2019-09-05 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Sep 5 07:13:57 2019 New Revision: 371072 URL: http://llvm.org/viewvc/llvm-project?rev=371072&view=rev Log: [clang-tidy] Fix bugprone-argument-comment bug: negative literal number is not checked. Summary: For example: ``` void foo(int a); foo(-2); ``` should be fixed as:

[clang-tools-extra] r371076 - [clang-tidy] Make most ArgumentCommentCheck options local, as they should be

2019-09-05 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Sep 5 07:48:31 2019 New Revision: 371076 URL: http://llvm.org/viewvc/llvm-project?rev=371076&view=rev Log: [clang-tidy] Make most ArgumentCommentCheck options local, as they should be Modified: clang-tools-extra/trunk/clang-tidy/bugprone/ArgumentCommentCheck.cpp

[clang-tools-extra] r371075 - Add a bugprone-argument-comment option: IgnoreSingleArgument.

2019-09-05 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Sep 5 07:48:23 2019 New Revision: 371075 URL: http://llvm.org/viewvc/llvm-project?rev=371075&view=rev Log: Add a bugprone-argument-comment option: IgnoreSingleArgument. Summary: Add bugprone-argument-comment option: IgnoreSingleArgument. When true, the check will ignore

[clang-tools-extra] r309379 - [clang-tidy] readability-redundant-declaration: ignore friends and macros

2017-07-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Jul 28 05:46:02 2017 New Revision: 309379 URL: http://llvm.org/viewvc/llvm-project?rev=309379&view=rev Log: [clang-tidy] readability-redundant-declaration: ignore friends and macros Added: clang-tools-extra/trunk/test/clang-tidy/readability-redundant-declaration-igno

[clang-tools-extra] r309380 - [clang-tidy] Expand readability-redundant-function-ptr-dereference test

2017-07-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Jul 28 05:46:08 2017 New Revision: 309380 URL: http://llvm.org/viewvc/llvm-project?rev=309380&view=rev Log: [clang-tidy] Expand readability-redundant-function-ptr-dereference test Modified: clang-tools-extra/trunk/test/clang-tidy/readability-redundant-function-ptr-de

r309569 - Fix -Wshadow false positives with function-local classes.

2017-07-31 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Jul 31 08:21:26 2017 New Revision: 309569 URL: http://llvm.org/viewvc/llvm-project?rev=309569&view=rev Log: Fix -Wshadow false positives with function-local classes. Summary: Fixes http://llvm.org/PR33947. https://godbolt.org/g/54XRMT void f(int a) { struct A { vo

Re: r305903 - Function with unparsed body is a definition

2017-08-01 Thread Alexander Kornienko via cfe-commits
This change causes an assertion failure on valid code. Could you take a look at fixing this? A reduced test case: $ cat /tmp/SemaTemplateInstantiateDecl-crash2.cpp template constexpr void f(T) { f(0); } $ clang -fsyntax-only -std=c++11 /tmp/SemaTemplateInstantiateDecl-crash2.cpp assert.h asser

Re: r305903 - Function with unparsed body is a definition

2017-08-04 Thread Alexander Kornienko via cfe-commits
Thank you for the analysis! It would be nice if you could implement a short term workaround to avoid crashes. Maybe Richard has ideas on what a proper solution should look like. On Wed, Aug 2, 2017 at 8:05 PM, Serge Pavlov wrote: > At first thank you for the nice test case. > > This crash is not

[clang-tools-extra] r310491 - [clang-tidy] Ignore newlines in checks list

2017-08-09 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Aug 9 09:00:31 2017 New Revision: 310491 URL: http://llvm.org/viewvc/llvm-project?rev=310491&view=rev Log: [clang-tidy] Ignore newlines in checks list This is a follow up to https://reviews.llvm.org/D30567 where I overlooked that LLVM YAML parser doesn't support multilin

r310576 - [Lexer] Finding beginning of token with escaped new line

2017-08-10 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Aug 10 03:06:16 2017 New Revision: 310576 URL: http://llvm.org/viewvc/llvm-project?rev=310576&view=rev Log: [Lexer] Finding beginning of token with escaped new line Summary: Lexer::GetBeginningOfToken produced invalid location when backtracking across escaped new lines.

[clang-tools-extra] r310584 - [clang-tidy] Add modernize-use-emplace.IgnoreImplicitConstructors option

2017-08-10 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Aug 10 05:19:05 2017 New Revision: 310584 URL: http://llvm.org/viewvc/llvm-project?rev=310584&view=rev Log: [clang-tidy] Add modernize-use-emplace.IgnoreImplicitConstructors option Added: clang-tools-extra/trunk/test/clang-tidy/modernize-use-emplace-ignore-implicit-c

[clang-tools-extra] r310585 - [clang-tidy] Enable test for http://llvm.org/PR26228

2017-08-10 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Aug 10 05:24:52 2017 New Revision: 310585 URL: http://llvm.org/viewvc/llvm-project?rev=310585&view=rev Log: [clang-tidy] Enable test for http://llvm.org/PR26228 Modified: clang-tools-extra/trunk/test/clang-tidy/readability-braces-around-statements.cpp Modified: cla

[clang-tools-extra] r310586 - [clang-tidy] Add a test.

2017-08-10 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Aug 10 05:38:46 2017 New Revision: 310586 URL: http://llvm.org/viewvc/llvm-project?rev=310586&view=rev Log: [clang-tidy] Add a test. Modified: clang-tools-extra/trunk/unittests/clang-tidy/ReadabilityModuleTest.cpp Modified: clang-tools-extra/trunk/unittests/clang-tid

[clang-tools-extra] r310587 - [clang-tidy] Updated docs and release notes for r310584

2017-08-10 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Aug 10 05:54:05 2017 New Revision: 310587 URL: http://llvm.org/viewvc/llvm-project?rev=310587&view=rev Log: [clang-tidy] Updated docs and release notes for r310584 Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst clang-tools-extra/trunk/docs/clang-tidy/chec

Re: [clang-tools-extra] r310584 - [clang-tidy] Add modernize-use-emplace.IgnoreImplicitConstructors option

2017-08-10 Thread Alexander Kornienko via cfe-commits
Thanks for noticing this! Committed in r310587. On Thu, Aug 10, 2017 at 2:33 PM, Haojian Wu wrote: > I think you also need to add the doc for the option in > modernize-use-emplace.rst. > > On Thu, Aug 10, 2017 at 2:19 PM, Alexander Kornienko via cfe-commits < > cfe-commits@lis

<    1   2   3   4   5   6   7   8   9   10   >