[PATCH] D35972: Add warning to clang-reorder-fields when reordering breaks member init list dependencies

2017-07-29 Thread Alexander Shaposhnikov via Phabricator via cfe-commits
alexshap added a comment. https://reviews.llvm.org/rL309505 plus I changed the code to emit this warning via DiagnosticEngine and updated the tests accordingly. Repository: rL LLVM https://reviews.llvm.org/D35972 ___ cfe-commits mailing list cf

[PATCH] D35972: Add warning to clang-reorder-fields when reordering breaks member init list dependencies

2017-07-29 Thread Alexander Shaposhnikov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL309505: [clang-reorder-fields] Emit warning when reordering breaks member init list… (authored by alexshap). Changed prior to commit: https://reviews.llvm.org/D35972?vs=108812&id=108818#toc Repository:

[clang-tools-extra] r309505 - [clang-reorder-fields] Emit warning when reordering breaks member init list dependencies

2017-07-29 Thread Alexander Shaposhnikov via cfe-commits
Author: alexshap Date: Sat Jul 29 23:43:03 2017 New Revision: 309505 URL: http://llvm.org/viewvc/llvm-project?rev=309505&view=rev Log: [clang-reorder-fields] Emit warning when reordering breaks member init list dependencies This diff adds a warning emitted by clang-reorder-fields when reorderin

r309504 - CodeGenModule.cpp: [PR33810][Modules] Remove an assertion that confirms MangledDeclNames[CanonicalGD] might be still empty.

2017-07-29 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Sat Jul 29 23:39:52 2017 New Revision: 309504 URL: http://llvm.org/viewvc/llvm-project?rev=309504&view=rev Log: CodeGenModule.cpp: [PR33810][Modules] Remove an assertion that confirms MangledDeclNames[CanonicalGD] might be still empty. FIXME: It is accepted that MangledDecl

Re: r309503 - PR33902: Invalidate line number cache when adding more text to existing buffer.

2017-07-29 Thread Richard Smith via cfe-commits
We should take this fix for Clang 5. On 29 July 2017 at 23:31, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Sat Jul 29 23:31:29 2017 > New Revision: 309503 > > URL: http://llvm.org/viewvc/llvm-project?rev=309503&view=rev > Log: > PR33902: Invalidate

r309503 - PR33902: Invalidate line number cache when adding more text to existing buffer.

2017-07-29 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sat Jul 29 23:31:29 2017 New Revision: 309503 URL: http://llvm.org/viewvc/llvm-project?rev=309503&view=rev Log: PR33902: Invalidate line number cache when adding more text to existing buffer. This led to crashes as the line number cache would report a bogus line number for a

r309501 - CodeGenModule.cpp: [PR33810][Modules] Avoid reusing FoundStr to try to fix crash.

2017-07-29 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Sat Jul 29 22:06:26 2017 New Revision: 309501 URL: http://llvm.org/viewvc/llvm-project?rev=309501&view=rev Log: CodeGenModule.cpp: [PR33810][Modules] Avoid reusing FoundStr to try to fix crash. MangledDeclNames might grow up and be reallocated when it were reused by reente

r309499 - CodeGenModule.cpp: [PR33810][Modules] Make sure actual memory corruption before random crash with -fmodules.

2017-07-29 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Sat Jul 29 21:08:23 2017 New Revision: 309499 URL: http://llvm.org/viewvc/llvm-project?rev=309499&view=rev Log: CodeGenModule.cpp: [PR33810][Modules] Make sure actual memory corruption before random crash with -fmodules. Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp

[PATCH] D35972: Add warning to clang-reorder-fields when reordering breaks member init list dependencies

2017-07-29 Thread Sam Conrad via Phabricator via cfe-commits
sameconrad added a comment. In https://reviews.llvm.org/D35972#825348, @alexshap wrote: > LGTM, thanks! > do you have commit access ? (if not i can commit this patch for you) I don't have commit access, so you will have to commit it. Thank you https://reviews.llvm.org/D35972

[PATCH] D35972: Add warning to clang-reorder-fields when reordering breaks member init list dependencies

2017-07-29 Thread Alexander Shaposhnikov via Phabricator via cfe-commits
alexshap accepted this revision. alexshap added a comment. This revision is now accepted and ready to land. LGTM, thanks! do you have commit access ? (if not i can commit this patch for you) https://reviews.llvm.org/D35972 ___ cfe-commits mailing l

[PATCH] D35972: Add warning to clang-reorder-fields when reordering breaks member init list dependencies

2017-07-29 Thread Sam Conrad via Phabricator via cfe-commits
sameconrad added inline comments. Comment at: clang-reorder-fields/ReorderFieldsAction.cpp:178 for (const auto *Initializer : CtorDecl->inits()) { -if (!Initializer->isWritten()) +if (!Initializer->isMemberInitializer() || !Initializer->isWritten()) continue; --

[PATCH] D35972: Add warning to clang-reorder-fields when reordering breaks member init list dependencies

2017-07-29 Thread Sam Conrad via Phabricator via cfe-commits
sameconrad updated this revision to Diff 108812. sameconrad added a comment. Add additional tests for cases with base and derived classes. Add clarifying comments about emitting warnings for base class members during reordering checks. Add fix for bug where reordering in init lists that contain n

[PATCH] D36051: [clang-tidy] List the checkers with autofix

2017-07-29 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru created this revision. Herald added subscribers: xazax.hun, JDevlieghere. In the current list http://clang.llvm.org/extra/clang-tidy/checks/list.html it is hard to know which one has autofix or not. This isn't perfect because we will have to list but I haven't found a better way.

[PATCH] D35996: [X86][AVX] Ensure vector non-temporal load/store intrinsics force pointer alignment (PR33830)

2017-07-29 Thread Simon Pilgrim via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL309488: [X86][AVX] Ensure vector non-temporal load/store intrinsics force pointer… (authored by RKSimon). Changed prior to commit: https://reviews.llvm.org/D35996?vs=108646&id=108788#toc Repository:

r309488 - [X86][AVX] Ensure vector non-temporal load/store intrinsics force pointer alignment (PR33830)

2017-07-29 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Sat Jul 29 08:33:34 2017 New Revision: 309488 URL: http://llvm.org/viewvc/llvm-project?rev=309488&view=rev Log: [X86][AVX] Ensure vector non-temporal load/store intrinsics force pointer alignment (PR33830) Clang specifies a max type alignment of 16 bytes on darwin targets (

r309484 - Fix incorrect assertion condition.

2017-07-29 Thread Victor Leschuk via cfe-commits
Author: vleschuk Date: Sat Jul 29 01:18:38 2017 New Revision: 309484 URL: http://llvm.org/viewvc/llvm-project?rev=309484&view=rev Log: Fix incorrect assertion condition. Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp URL: http://llvm.org/viewvc/l