<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm5719-llvm/clang-tools-extra/clang-tidy/modernize, branch meklort-10.0.1</title>
<subtitle>Project Ortega BCM5719 LLVM</subtitle>
<id>https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1</id>
<link rel='self' href='https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/'/>
<updated>2020-06-10T08:57:46+00:00</updated>
<entry>
<title>[clangd] Fix modernize-loop-convert "multiple diag in flight" crash.</title>
<updated>2020-06-10T08:57:46+00:00</updated>
<author>
<name>Haojian Wu</name>
<email>hokein.wu@gmail.com</email>
</author>
<published>2020-04-23T14:20:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=cd477e7fdbf75642caa58b55b498a62f82a88bf7'/>
<id>urn:sha1:cd477e7fdbf75642caa58b55b498a62f82a88bf7</id>
<content type='text'>
Summary:
this maybe not ideal, but it is trivial and does fix the crash.

Fixes https://github.com/clangd/clangd/issues/156.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D78715

(cherry picked from commit a466e4be3831848d7ff6ffbe4f57d99de8fb66af)
</content>
</entry>
<entry>
<title>[clang-tidy] Match InitListExpr in modernize-use-default-member-init</title>
<updated>2020-01-14T15:19:37+00:00</updated>
<author>
<name>Malcolm Parsons</name>
<email>malcolm.parsons@gmail.com</email>
</author>
<published>2020-01-14T15:19:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=9738c757bd9bc2fdca935f2b4e356f1d5e5f3682'/>
<id>urn:sha1:9738c757bd9bc2fdca935f2b4e356f1d5e5f3682</id>
<content type='text'>
Summary:
modernize-use-default-member-init wasn't warning about redundant initialisers
when the initialiser was an InitListExpr.  Add initListExpr to the matcher.

Fixes: PR44439

Reviewers: aaron.ballman, alexfh, JonasToth

Reviewed By: aaron.ballman

Subscribers: xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72691
</content>
</entry>
<entry>
<title>[clang-tidy] Ignore implicit casts in modernize-use-default-member-init</title>
<updated>2020-01-14T10:05:12+00:00</updated>
<author>
<name>Malcolm Parsons</name>
<email>malcolm.parsons@gmail.com</email>
</author>
<published>2020-01-14T09:54:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=45924eb4671692b3fa9fd52fe39c81ec0647a848'/>
<id>urn:sha1:45924eb4671692b3fa9fd52fe39c81ec0647a848</id>
<content type='text'>
Summary:
Initialising a pointer from nullptr involves an implicit cast.
Ignore it after getting initialiser from InitListExpr.

Fixes: PR44440

Reviewers: aaron.ballman, alexfh, JonasToth

Reviewed By: JonasToth

Subscribers: xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72630
</content>
</entry>
<entry>
<title>MakeUniqueCheck.cpp: explicit the fact that there is an autofix for this checker</title>
<updated>2020-01-10T21:06:03+00:00</updated>
<author>
<name>Sylvestre Ledru</name>
<email>sylvestre@debian.org</email>
</author>
<published>2020-01-10T17:48:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=f3db1aad2796c62f0d188a74f2901c18e51843c2'/>
<id>urn:sha1:f3db1aad2796c62f0d188a74f2901c18e51843c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[clang-tidy] modernize-use-using uses AST and now supports struct defintions and multiple types in a typedef</title>
<updated>2020-01-07T21:36:11+00:00</updated>
<author>
<name>Mitchell Balan</name>
<email>mitchell@stellarscience.com</email>
</author>
<published>2020-01-07T18:49:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=73d93617d3ae23bad232fa3a160c638728c71c01'/>
<id>urn:sha1:73d93617d3ae23bad232fa3a160c638728c71c01</id>
<content type='text'>
Summary:
It now handles `typedef`s that include comma-separated multiple types, and handles embedded struct definitions, which previously could not be automatically converted.

For example, with this patch `modernize-use-using` now can convert:

typedef struct { int a; } R_t, *R_p;

to:

using R_t = struct { int a; };
using R_p = R_t*;

`-ast-dump` showed that the `CXXRecordDecl` definitions and multiple `TypedefDecl`s come consecutively in the tree, so `check()` stores information between calls to determine when it is receiving a second or additional `TypedefDecl` within a single `typedef`, or when the current `TypedefDecl` refers to an embedded `CXXRecordDecl` like a `struct`.

Reviewers: alexfh, aaron.ballman

Patch by: poelmanc

Subscribers: riccibruno, sammccall, cfe-commits, aaron.ballman

Tags: clang-tools-extra, clang

Differential Revision: https://reviews.llvm.org/D70270
</content>
</entry>
<entry>
<title>NFC: Fix trivial typos in comments</title>
<updated>2020-01-04T15:28:41+00:00</updated>
<author>
<name>Kazuaki Ishizaki</name>
<email>ishizaki@jp.ibm.com</email>
</author>
<published>2020-01-04T15:28:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=b7ecf1c1c373c53183ef6ef66efbe4237ff7b96d'/>
<id>urn:sha1:b7ecf1c1c373c53183ef6ef66efbe4237ff7b96d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix trivial typos in comments; NFC</title>
<updated>2020-01-02T18:41:43+00:00</updated>
<author>
<name>Kazuaki Ishizaki</name>
<email>ishizaki@jp.ibm.com</email>
</author>
<published>2020-01-02T18:41:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=7ab9acd8f414161b784b61a1633a7c241b82be85'/>
<id>urn:sha1:7ab9acd8f414161b784b61a1633a7c241b82be85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>AvoidBindCheck.cpp: Fix unused variables warning</title>
<updated>2019-12-03T07:59:01+00:00</updated>
<author>
<name>Hans Wennborg</name>
<email>hans@chromium.org</email>
</author>
<published>2019-12-03T07:59:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=b5f295ffcec2fa7402e39eb1262acbd55a7d39f5'/>
<id>urn:sha1:b5f295ffcec2fa7402e39eb1262acbd55a7d39f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>AvoidBindCheck.cpp: Fix GCC 5.3 build errors</title>
<updated>2019-12-03T07:56:53+00:00</updated>
<author>
<name>Hans Wennborg</name>
<email>hans@chromium.org</email>
</author>
<published>2019-12-03T07:56:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=8e7f60e942ff009de742e20e10ebc09dcdecd5a2'/>
<id>urn:sha1:8e7f60e942ff009de742e20e10ebc09dcdecd5a2</id>
<content type='text'>
It was failing with:

clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp:61:29:
error: declaration of ‘clang::tidy::modernize::{anonymous}::CaptureMode clang::tidy::modernize::{anonymous}::BindArgument::CaptureMode’ [-fpermissive]
   CaptureMode CaptureMode = CM_None;
                             ^
clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp:38:6:
error: changes meaning of ‘CaptureMode’ from ‘enum clang::tidy::modernize::{anonymous}::CaptureMode’ [-fpermissive]
 enum CaptureMode { CM_None, CM_ByRef, CM_ByValue, CM_InitExpression };
      ^
</content>
</entry>
<entry>
<title>[clang-tidy] Rewrite modernize-avoid-bind check.</title>
<updated>2019-12-02T23:36:26+00:00</updated>
<author>
<name>Zachary Turner</name>
<email>zturner@roblox.com</email>
</author>
<published>2019-11-20T19:27:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=64f74bf72eb484aa32e1104050cb54745116decf'/>
<id>urn:sha1:64f74bf72eb484aa32e1104050cb54745116decf</id>
<content type='text'>
This represents largely a full re-write of modernize-avoid-bind, adding
significant new functionality in the process. In particular:

* Both boost::bind and std::bind are now supported
* Function objects are supported in addition to functions
* Member functions are supported
* Nested calls are supported using capture-init syntax
* std::ref() and boost::ref() are now recognized, and will capture by reference.
* Rather than capturing with a global =, we now build up an individual
  capture list that is both necessary and sufficient for the call.
* Fixits are supported in a much larger variety of scenarios than before.

All previous tests pass under the re-write, but a large number of new
tests have been added as well.

Differential Revision: https://reviews.llvm.org/D70368
</content>
</entry>
</feed>
