[PATCH] D26267: [Modules] Include builtins with #include instead of #import for ObjC

2016-12-20 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno marked 3 inline comments as done. bruno added a comment. > Do we need to perfectly preserve the functionality of `#pragma once` / > `#import`? That is, would it be acceptable to > you if we spuriously enter files that have been imported in that way, while > building a module? Unfortun

[PATCH] D26267: [Modules] Include builtins with #include instead of #import for ObjC

2016-12-20 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno updated this revision to Diff 82067. bruno marked 3 inline comments as done. bruno added a comment. Uploaded new patch with another approach to fix the issue. https://reviews.llvm.org/D26267 Files: include/clang/Lex/HeaderSearch.h include/clang/Lex/ModuleMap.h lib/Lex/HeaderSearch.c

r290169 - Revert r290149: Add the alloc_size attribute to clang.

2016-12-20 Thread Chandler Carruth via cfe-commits
Author: chandlerc Date: Tue Dec 20 02:28:19 2016 New Revision: 290169 URL: http://llvm.org/viewvc/llvm-project?rev=290169&view=rev Log: Revert r290149: Add the alloc_size attribute to clang. This commit fails MSan when running test/CodeGen/object-size.c in a confusing way. After some discussion w

[PATCH] D27971: Make FormatStyle.GetStyleOfFile test work on MSVC

2016-12-20 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. Why isn't the right solution to make getStyle() use vfs::FileSystem? Generally, everything in clang-format (well, in clang) should use vfs::FileSystem for file access. https://reviews.llvm.org/D27971 ___ cfe-commits mailing

r290171 - [OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand.

2016-12-20 Thread Egor Churaev via cfe-commits
Author: echuraev Date: Tue Dec 20 03:15:21 2016 New Revision: 290171 URL: http://llvm.org/viewvc/llvm-project?rev=290171&view=rev Log: [OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand. Summary: Enabling the compression of CLK_NULL_QUEUE to variable of type queue_t. Reviewers: Ana

Re: r290171 - [OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand.

2016-12-20 Thread Daniel Jasper via cfe-commits
This triggers a bunch of warnings: lib/AST/Expr.cpp:1519:11: error: enumeration value 'CK_ZeroToOCLQueue' not handled in switch [-Werror,-Wswitch] lib/CodeGen/CGExprConstant.cpp:654:13: error: enumeration value 'CK_ZeroToOCLQueue' not handled in switch [-Werror,-Wswitch] lib/Edit/RewriteObjC

r290172 - Fix for clang_Cursor_getSpellingNameRange()

2016-12-20 Thread Kevin Funk via cfe-commits
Author: kfunk Date: Tue Dec 20 03:56:56 2016 New Revision: 290172 URL: http://llvm.org/viewvc/llvm-project?rev=290172&view=rev Log: Fix for clang_Cursor_getSpellingNameRange() Summary: Fixes spelling name ranges for user-defined string literal operators. Example: constexpr int operator""_toint

[PATCH] D18462: Fix for clang_Cursor_getSpellingNameRange()

2016-12-20 Thread Kevin Funk via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290172: Fix for clang_Cursor_getSpellingNameRange() (authored by kfunk). Changed prior to commit: https://reviews.llvm.org/D18462?vs=51608&id=82071#toc Repository: rL LLVM https://reviews.llvm.org/D

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons updated this revision to Diff 82072. malcolm.parsons marked 10 inline comments as done. malcolm.parsons added a comment. Use IgnoreParenImpCasts(). Elide braces. Handle character and string literals. Require C++11. Improve doc. https://reviews.llvm.org/D26750 Files: clang-tidy

r290173 - Revert "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand."

2016-12-20 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Dec 20 04:05:04 2016 New Revision: 290173 URL: http://llvm.org/viewvc/llvm-project?rev=290173&view=rev Log: Revert "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand." This reverts commit r290171. It triggers a bunch of warnings, because the new enumerator

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:33-34 + case Type::STK_Floating: + case Type::STK_IntegralComplex: + case Type::STK_FloatingComplex: +return "0.0"; aaron.ballman wrote: > Do these requir

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons updated this revision to Diff 82073. malcolm.parsons marked an inline comment as done. malcolm.parsons added a comment. Use 0 for IntegralComplex. https://reviews.llvm.org/D26750 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-

Re: r290171 - [OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand.

2016-12-20 Thread Daniel Jasper via cfe-commits
Reverted in rL290173. On Tue, Dec 20, 2016 at 11:02 AM, Daniel Jasper wrote: > This triggers a bunch of warnings: > > lib/AST/Expr.cpp:1519:11: error: enumeration value 'CK_ZeroToOCLQueue' > not handled in switch [-Werror,-Wswitch] > lib/CodeGen/CGExprConstant.cpp:654:13: error: enumeration

[PATCH] D27754: [clang-format] Implement comment reflowing (again).

2016-12-20 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 82081. krasimir added a comment. - Put LastLineNeedsDecoration and Decoration and Prefix to the appropriate subclasses - Fixed a double indentation bug caused by the WhitespaceManager. https://reviews.llvm.org/D27754 Files: lib/Format/BreakableToken.cpp

[PATCH] D27754: [clang-format] Implement comment reflowing (again).

2016-12-20 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. Next 2 steps: will implement a simple heuristic about some sorts of ascii-art types of things; next will branch and produce a version that takes the reflow state out of the BreakableComment classes and puts it in the breakProtrudingToken implementation. https://revie

[PATCH] D27710: [analyzer] Prohibit ExplodedGraph's edges duplicating

2016-12-20 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Core/CoreEngine.cpp:662 + bool EdgeExists = false; + for (auto I = N->pred_begin(), E = N->pred_end(); I != E; ++I) +if (*I == FromN) { I prefer having the braces written in this case, but it i

[PATCH] D27754: [clang-format] Implement comment reflowing (again).

2016-12-20 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 82089. krasimir added a comment. Ready for review. - Split BreakableComment back into a BreakableBlockComment and BreakableLineCommentSection - Extract common reflow computation functionality - Put LastLineNeedsDecoration and Decoration and Prefix to the ap

[PATCH] D27981: Fix problems in "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand."

2016-12-20 Thread Egor Churaev via Phabricator via cfe-commits
echuraev created this revision. echuraev added reviewers: djasper, Anastasia. echuraev added subscribers: bader, cfe-commits, yaxunl. Fixed warnings in commit: https://reviews.llvm.org/rL290171 https://reviews.llvm.org/D27981 Files: include/clang/AST/OperationKinds.def include/clang/Sema/In

r290175 - [OPENMP] Fix for PR31428: variable named like directive name modifier

2016-12-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Dec 20 06:10:05 2016 New Revision: 290175 URL: http://llvm.org/viewvc/llvm-project?rev=290175&view=rev Log: [OPENMP] Fix for PR31428: variable named like directive name modifier Directive name modifiers in 'if' clause are allowed only for OpenMP 4.5 and higher + in OpenM

[PATCH] D27982: [change-namespace] do not fix calls to overloaded operator functions.

2016-12-20 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: hokein. ioeric added a subscriber: cfe-commits. Also make sure one function reference is only processed once. https://reviews.llvm.org/D27982 Files: change-namespace/ChangeNamespace.cpp change-namespace/ChangeNamespace.h unittests/cha

[PATCH] D27917: [OpenCL] Improve diagnostics for double type

2016-12-20 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 82094. echuraev marked an inline comment as done. https://reviews.llvm.org/D27917 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/Sema/SemaType.cpp test/SemaOpenCL/unknown_type.cl Index: test/SemaOpenCL/unknown_type.cl

[PATCH] D27982: [change-namespace] do not fix calls to overloaded operator functions.

2016-12-20 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 82098. ioeric added a comment. - minor fix. https://reviews.llvm.org/D27982 Files: change-namespace/ChangeNamespace.cpp change-namespace/ChangeNamespace.h unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-namespace/ChangeNam

Re: [PATCH] D23921: Remove va_start diagnostic false positive with enumerations

2016-12-20 Thread Attila Török via cfe-commits
I did not see that it was reapplied later, sorry. With clang version 3.9.0 (tags/RELEASE_390/final) I get the warning in both c11 and c++11 mode. With clang version 4.0.0 (trunk 290146) (llvm/trunk 290118) it's gone in c11 mode, but still there in c++11. The piece of code I tested it on: https://g

[PATCH] D26244: [Driver] Prefer libraries installed next to Clang over those from GCC

2016-12-20 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. ping https://reviews.llvm.org/D26244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22452: [libcxx] Fix last_write_time tests for filesystems that don't support negative and very large times.

2016-12-20 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld updated this revision to Diff 82102. Hahnfeld added a comment. Version that works for me https://reviews.llvm.org/D22452 Files: test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp Index: test/std/experimental/filesystem/fs.op.funcs/fs.op.last

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:34 + case Type::STK_IntegralComplex: +return InitType->isCharType() ? "'\\0'" : "0"; + case Type::STK_Floating: This is incorrect if the char type is not a n

[PATCH] D27985: Add demangling support for C++11 thread_local variables

2016-12-20 Thread Dave Bozier via Phabricator via cfe-commits
davidb created this revision. davidb added reviewers: howard.hinnant, mclow.lists. davidb added a subscriber: cfe-commits. davidb set the repository for this revision to rL LLVM. Add support for demangling C++11 thread_local variables. In clang, the grammar for mangling for these names are " ::

Re: [PATCH] D23921: Remove va_start diagnostic false positive with enumerations

2016-12-20 Thread Aaron Ballman via cfe-commits
On Tue, Dec 20, 2016 at 7:58 AM, Attila Török wrote: > I did not see that it was reapplied later, sorry. > > With clang version 3.9.0 (tags/RELEASE_390/final) I get the warning in both > c11 and c++11 mode. > With clang version 4.0.0 (trunk 290146) (llvm/trunk 290118) it's gone in c11 > mode, but

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:34 + case Type::STK_IntegralComplex: +return InitType->isCharType() ? "'\\0'" : "0"; + case Type::STK_Floating: aaron.ballman wrote: > This is incorrect if

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:34 + case Type::STK_IntegralComplex: +return InitType->isCharType() ? "'\\0'" : "0"; + case Type::STK_Floating: malcolm.parsons wrote: > aaron.ballman wrote:

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:34 + case Type::STK_IntegralComplex: +return InitType->isCharType() ? "'\\0'" : "0"; + case Type::STK_Floating: aaron.ballman wrote: > malcolm.parsons wrot

[PATCH] D27982: [change-namespace] do not fix calls to overloaded operator functions.

2016-12-20 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM. Comment at: unittests/change-namespace/ChangeNamespaceTests.cpp:578 +// FIXME: function calls to overloaded operators are not fixed now even if they +// are reference

[PATCH] D27982: [change-namespace] do not fix calls to overloaded operator functions.

2016-12-20 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 82104. ioeric marked 2 inline comments as done. ioeric added a comment. - Address comments https://reviews.llvm.org/D27982 Files: change-namespace/ChangeNamespace.cpp change-namespace/ChangeNamespace.h unittests/change-namespace/ChangeNamespaceTests.cp

[clang-tools-extra] r290176 - [change-namespace] do not fix calls to overloaded operator functions.

2016-12-20 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Dec 20 08:39:04 2016 New Revision: 290176 URL: http://llvm.org/viewvc/llvm-project?rev=290176&view=rev Log: [change-namespace] do not fix calls to overloaded operator functions. Summary: Also make sure one function reference is only processed once. Reviewers: hokein Sub

[PATCH] D27971: Make FormatStyle.GetStyleOfFile test work on MSVC

2016-12-20 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D27971#627543, @klimek wrote: > Why isn't the right solution to make getStyle() use vfs::FileSystem? > Generally, everything in clang-format (well, in clang) should use > vfs::FileSystem for file access. You're absolutely right, this is t

[PATCH] D27982: [change-namespace] do not fix calls to overloaded operator functions.

2016-12-20 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290176: [change-namespace] do not fix calls to overloaded operator functions. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D27982?vs=82104&id=82105#toc Repository: rL LLVM

r290177 - clang-format: Fix bug in understanding string-label&value analysis.

2016-12-20 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Dec 20 09:27:46 2016 New Revision: 290177 URL: http://llvm.org/viewvc/llvm-project?rev=290177&view=rev Log: clang-format: Fix bug in understanding string-label&value analysis. While for <<-operators often used in log statments, a single key value pair is always on the se

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:34 + case Type::STK_IntegralComplex: +return InitType->isCharType() ? "'\\0'" : "0"; + case Type::STK_Floating: malcolm.parsons wrote: > aaron.ballman wrote:

[PATCH] D27410: Always issue vtables when generating coverage instrumentation

2016-12-20 Thread Phil Camp via Phabricator via cfe-commits
FlameTop abandoned this revision. FlameTop added a comment. I must apologise to you all. The problem was reported in our out-of-tree version of the compiler and I must have hit finger problems when I confirmed it in tree. Repeating the test I can no longer reproduce the fault with the 3.9.0 pub

[PATCH] D27180: Testbed and skeleton of a new expression parser

2016-12-20 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Looks good now, thanks! Repository: rL LLVM https://reviews.llvm.org/D27180 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons updated this revision to Diff 82113. malcolm.parsons added a comment. Use character literal prefixes. Use float literal suffix. https://reviews.llvm.org/D26750 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseD

r290181 - [OPENMP] Fix for PR31416: Clang crashes on OMPCapturedExpr during source

2016-12-20 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Dec 20 10:51:02 2016 New Revision: 290181 URL: http://llvm.org/viewvc/llvm-project?rev=290181&view=rev Log: [OPENMP] Fix for PR31416: Clang crashes on OMPCapturedExpr during source based coverage compilation Added source location info to captured expression declaration +

[PATCH] D23325: [WIP] Binding of references to packed fields

2016-12-20 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 updated this revision to Diff 82114. rogfer01 added a comment. Minor issues addressed https://reviews.llvm.org/D23325 Files: include/clang/AST/Decl.h include/clang/AST/Expr.h include/clang/AST/Stmt.h include/clang/Basic/DiagnosticSemaKinds.td include/clang/Basic/Specifiers.h

Re: [PATCH] D23921: Remove va_start diagnostic false positive with enumerations

2016-12-20 Thread Attila Török via cfe-commits
Thank you for your detailed explanation! It would seem perfectly reasonable to define the behavior in this case, at least (and I suppose not only) to me. Attila 2016-12-20 14:50 GMT+01:00 Aaron Ballman : > On Tue, Dec 20, 2016 at 7:58 AM, Attila Török > wrote: > > I did not see that it was reapp

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Manman Ren via Phabricator via cfe-commits
manmanren accepted this revision. manmanren added a comment. This revision is now accepted and ready to land. Thanks, Manman https://reviews.llvm.org/D27852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Hi, Thanks for working on this. Comment at: include/clang/Basic/DiagnosticLexKinds.td:647 + "top-level module '%0' in private module map, expected a submodule of '%1'">, + InGroup>; It would be nice if we could also emit a FixIt to t

Re: r290181 - [OPENMP] Fix for PR31416: Clang crashes on OMPCapturedExpr during source

2016-12-20 Thread Vedant Kumar via cfe-commits
Thank you for looking into this :)! I noticed that your test case doesn't hit the code coverage path, however. Perhaps it would be better to remove the PROF-INSTR-PATH check and instead introduce something like `test/CoverageMapping/openmp.cpp`: // RUN: %clang_cc1 -fopenmp -x c++ -triple x86_6

[PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2016-12-20 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 82120. ahatanak added a comment. Call TransformDeclarationNameInfo unconditionally to transform NameInfo rather than doing so only for destructors. I think this is a cleaner fix. https://reviews.llvm.org/D24969 Files: lib/Sema/SemaTemplateInstantiateDec

[PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2016-12-20 Thread Richard Smith via Phabricator via cfe-commits
rsmith added a comment. Looks good, other than error recovery. Comment at: lib/Sema/SemaTemplateInstantiateDecl.cpp:4851 + DeclarationNameInfo NameInfo(Name, D->getLocation()); + Name = SubstDeclarationNameInfo(NameInfo, TemplateArgs).getName(); + DeclContext::lo

[PATCH] D24639: [Sema] Warn when returning a lambda that captures a local variable by reference

2016-12-20 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. Ping! https://reviews.llvm.org/D24639 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27936: C++11 test cleanup: nonthrowing destructors

2016-12-20 Thread Paul Robinson via Phabricator via cfe-commits
probinson added a reviewer: rjmccall. probinson added a comment. +rjmccall as IR Gen owner. https://reviews.llvm.org/D27936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27836: Store the "current position" index within the ASTRecordReader.

2016-12-20 Thread Richard Smith via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM, any chance I can tempt you to lowerCamelCase all the other ASTRecordReader members to match the new ones as a follow-up change? https://reviews.llvm.org/D27836 __

[PATCH] D27994: Make two vtable tests tolerate C++11

2016-12-20 Thread Paul Robinson via Phabricator via cfe-commits
probinson created this revision. probinson added a reviewer: rjmccall. probinson added a subscriber: cfe-commits. In C++11, we don't emit vtables as eagerly as we do for C++03, so fiddle the tests to emit them when the test expects them. In the C++11 test cleanup project, we're commonly making t

[PATCH] D27710: [analyzer] Prohibit ExplodedGraph's edges duplicating

2016-12-20 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. Are there any negative effects from having the duplicates in edges? When does this occur? It's a bit suspicious since we have a FromN, and a path is split at that node, resulting in successors that are the same. Is it possible that whoever split the state did not enco

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you! https://reviews.llvm.org/D26750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2016-12-20 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 82134. ahatanak marked 2 inline comments as done. ahatanak added a comment. Add code for error recovery. https://reviews.llvm.org/D24969 Files: lib/Sema/SemaTemplateInstantiateDecl.cpp lib/Sema/TreeTransform.h test/SemaCXX/destructor.cpp Index: tes

[PATCH] D24969: [Sema] Use the instantiated name of destructors in FindInstantiatedDecl and RebuildMemberExpr

2016-12-20 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: lib/Sema/TreeTransform.h:8766-8767 NamedDecl *FirstQualifierInScope = nullptr; + DeclarationNameInfo MemberNameInfo = + getDerived().TransformDeclarationNameInfo(E->getMemberNameInfo()); rsmith wrote: > Likew

[PATCH] D27832: Add -plugin-opt=sample-profile for thinLTO build.

2016-12-20 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini accepted this revision. mehdi_amini added a comment. This revision is now accepted and ready to land. LGTM, but fix what @bruno spotted before committing. https://reviews.llvm.org/D27832 ___ cfe-commits mailing list cfe-commits@lists.llv

[PATCH] D27680: [CodeGen] Move lifetime.start of a variable when goto jumps back past its declaration

2016-12-20 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 82142. ahatanak added a comment. Rebase and improve test cases. - Add "-mllvm -disable-llvm-optzns" to the RUN line. - Add a test case that shows lifetime.start of a variable isn't moved to the beginning of its scope when the goto leaves the scope. https:

[clang-tools-extra] r290202 - [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Tue Dec 20 15:26:07 2016 New Revision: 290202 URL: http://llvm.org/viewvc/llvm-project?rev=290202&view=rev Log: [clang-tidy] Add modernize-use-default-member-init check Summary: Fixes PR18858 Reviewers: alexfh, hokein, aaron.ballman Subscribers: JDevlieghere, Eugen

[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290202: [clang-tidy] Add modernize-use-default-member-init check (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D26750?vs=82113&id=82144#toc Repository: rL LLVM htt

[PATCH] D27872: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2016-12-20 Thread Tim Shen via Phabricator via cfe-commits
timshen updated this revision to Diff 82148. timshen added a comment. Consistently use early return style. https://reviews.llvm.org/D27872 Files: clang/test/CodeGen/ppc64-complex-parms.c llvm/include/llvm/ADT/APFloat.h llvm/lib/Support/APFloat.cpp llvm/test/CodeGen/PowerPC/fp128-bitcast

[PATCH] D27872: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2016-12-20 Thread Tim Shen via Phabricator via cfe-commits
timshen added a comment. I changed type style to early return. For constructors and destructors, I use: if (...) { // statement; return; } For normal functions that returns void, I chose: if (...) return Foo(); llvm_unreachable(...); since it's more compact. If returning v

r290203 - [c++1z] P0195R2: Support pack-expansion of using-declarations.

2016-12-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Dec 20 15:35:28 2016 New Revision: 290203 URL: http://llvm.org/viewvc/llvm-project?rev=290203&view=rev Log: [c++1z] P0195R2: Support pack-expansion of using-declarations. This change introduces UsingPackDecl as a marker for the set of UsingDecls produced by pack expansion

Re: r290080 - [c++1z] P0195R2: Support pack-expansion of using-declarations.

2016-12-20 Thread Richard Smith via cfe-commits
On 19 December 2016 at 04:26, Renato Golin wrote: > On 19 December 2016 at 11:28, Daniel Jasper via cfe-commits > wrote: > > I have reverted this in r290092 as it was leading to Clang crashes on the > > bots and elsewhere, e.g.: > > http://lab.llvm.org:8011/builders/clang-cmake-aarch64-quick/bui

[PATCH] D27994: Make two vtable tests tolerate C++11

2016-12-20 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. No, seems fine to me. https://reviews.llvm.org/D27994 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[PATCH] D27936: C++11 test cleanup: nonthrowing destructors

2016-12-20 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Nicely done. https://reviews.llvm.org/D27936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[PATCH] D27680: [CodeGen] Move lifetime.start of a variable when goto jumps back past its declaration

2016-12-20 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Wouldn't it be simpler to just record an insertion point for the beginning of the current lexical scope and insert the lifetime.begin there instead of at the current IP? Comment at: lib/CodeGen/CodeGenFunction.h:351 llvm::Value *Size; +llvm:

[PATCH] D27956: Make CodeGenCXX/stack-reuse-miscompile.cpp tolerate C++11

2016-12-20 Thread Leny Kholodov via Phabricator via cfe-commits
lenykholodov added a comment. LGTM https://reviews.llvm.org/D27956 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [clang-tools-extra] r290202 - [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Aaron Ballman via cfe-commits
On Tue, Dec 20, 2016 at 4:26 PM, Malcolm Parsons via cfe-commits wrote: > Author: malcolm.parsons > Date: Tue Dec 20 15:26:07 2016 > New Revision: 290202 > > URL: http://llvm.org/viewvc/llvm-project?rev=290202&view=rev > Log: > [clang-tidy] Add modernize-use-default-member-init check > > Summary:

r290205 - Make two vtable tests tolerate C++11.

2016-12-20 Thread Paul Robinson via cfe-commits
Author: probinson Date: Tue Dec 20 16:22:24 2016 New Revision: 290205 URL: http://llvm.org/viewvc/llvm-project?rev=290205&view=rev Log: Make two vtable tests tolerate C++11. In C++11 we don't emit vtables as eagerly as we do for C++03, so fiddle the tests to emit them when the test expects them.

[PATCH] D27994: Make two vtable tests tolerate C++11

2016-12-20 Thread Paul Robinson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290205: Make two vtable tests tolerate C++11. (authored by probinson). Changed prior to commit: https://reviews.llvm.org/D27994?vs=82126&id=82156#toc Repository: rL LLVM https://reviews.llvm.org/D27

r290207 - C++11 test cleanup: nonthrowing destructors

2016-12-20 Thread Paul Robinson via cfe-commits
Author: probinson Date: Tue Dec 20 16:26:11 2016 New Revision: 290207 URL: http://llvm.org/viewvc/llvm-project?rev=290207&view=rev Log: C++11 test cleanup: nonthrowing destructors If a dtor has no interesting members, then it ends up being nothrow, which affects the generated IR. Modify some test

[PATCH] D27936: C++11 test cleanup: nonthrowing destructors

2016-12-20 Thread Paul Robinson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290207: C++11 test cleanup: nonthrowing destructors (authored by probinson). Changed prior to commit: https://reviews.llvm.org/D27936?vs=81982&id=82157#toc Repository: rL LLVM https://reviews.llvm.o

[PATCH] D27956: Make CodeGenCXX/stack-reuse-miscompile.cpp tolerate C++11

2016-12-20 Thread Paul Robinson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290208: Make a test use a specific C++ dialect (authored by probinson). Changed prior to commit: https://reviews.llvm.org/D27956?vs=82020&id=82160#toc Repository: rL LLVM https://reviews.llvm.org/D2

r290208 - Make a test use a specific C++ dialect

2016-12-20 Thread Paul Robinson via cfe-commits
Author: probinson Date: Tue Dec 20 16:30:44 2016 New Revision: 290208 URL: http://llvm.org/viewvc/llvm-project?rev=290208&view=rev Log: Make a test use a specific C++ dialect In stack-reuse-miscompile.cpp, the allocas for the temps come out in a different order depending on whether the dialect is

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Graydon Hoare via Phabricator via cfe-commits
graydon marked 5 inline comments as done. graydon added a comment. Addressed review comments https://reviews.llvm.org/D27852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Graydon Hoare via Phabricator via cfe-commits
graydon updated this revision to Diff 82161. graydon added a comment. Updates to address review comments https://reviews.llvm.org/D27852 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticLexKinds.td include/clang/Lex/HeaderSearch.h lib/Lex/HeaderSearch.cpp l

[PATCH] D27604: [Driver] Add compiler option to generate a reproducer

2016-12-20 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Ping! https://reviews.llvm.org/D27604 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [clang-tools-extra] r290202 - [clang-tidy] Add modernize-use-default-member-init check

2016-12-20 Thread Malcolm Parsons via cfe-commits
On 20 December 2016 at 22:32, Aaron Ballman wrote: > On Tue, Dec 20, 2016 at 4:26 PM, Malcolm Parsons via cfe-commits > wrote: >> Author: malcolm.parsons >> Date: Tue Dec 20 15:26:07 2016 >> New Revision: 290202 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=290202&view=rev >> Log: >> [clang-

[PATCH] D26846: __uuidof() and declspec(uuid("...")) should be allowed on enumeration types

2016-12-20 Thread Kevin Puetz via Phabricator via cfe-commits
puetzk added a comment. I see that you added a FIXME mentioning that it should be C++-only, but I don't see where you actually did anything that would make it so. What am I missing? Also, did you mean to drop the changes to utils/TableGen/ClangAttrEmitter.cpp and bring back the WarnDiag, "Expec

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a reviewer: bruno. bruno added inline comments. Comment at: test/Modules/implicit-private-with-different-name.m:13 +// expected-warning@Inputs/implicit-private-with-different-name/A.framework/Modules/module.private.modulemap:1{{top-level module 'APrivate' in private

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Graydon Hoare via Phabricator via cfe-commits
graydon added inline comments. Comment at: test/Modules/implicit-private-with-different-name.m:13 +// expected-warning@Inputs/implicit-private-with-different-name/A.framework/Modules/module.private.modulemap:1{{top-level module 'APrivate' in private module map, expected a submo

[clang-tools-extra] r290210 - Comment out char16_t and char32_t tests

2016-12-20 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Tue Dec 20 16:57:21 2016 New Revision: 290210 URL: http://llvm.org/viewvc/llvm-project?rev=290210&view=rev Log: Comment out char16_t and char32_t tests Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-use-default-member-init-assignment.cpp clang-

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno accepted this revision. bruno added a comment. Right, I missed it, LGTM https://reviews.llvm.org/D27852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27836: Store the "current position" index within the ASTRecordReader.

2016-12-20 Thread David L. Jones via Phabricator via cfe-commits
dlj added a comment. In https://reviews.llvm.org/D27836#628029, @rsmith wrote: > LGTM, any chance I can tempt you to lowerCamelCase all the other > ASTRecordReader members to match the new ones as a follow-up change? Yup, will do. https://reviews.llvm.org/D27836 __

[PATCH] D26882: Refactor how FunctionDecl handles constexpr:

2016-12-20 Thread Nathan Wilson via Phabricator via cfe-commits
nwilson added a comment. Ping https://reviews.llvm.org/D26882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Graydon Hoare via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290219: [modules] Handle modules with nonstandard names in module.private.modulemaps (authored by graydon). Changed prior to commit: https://reviews.llvm.org/D27852?vs=82161&id=82177#toc Repository:

r290219 - [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-20 Thread Graydon Hoare via cfe-commits
Author: graydon Date: Tue Dec 20 18:24:39 2016 New Revision: 290219 URL: http://llvm.org/viewvc/llvm-project?rev=290219&view=rev Log: [modules] Handle modules with nonstandard names in module.private.modulemaps Summary: The module system supports accompanying a primary module (say Foo) with an au

[PATCH] D26882: Refactor how FunctionDecl handles constexpr:

2016-12-20 Thread Richard Smith via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/Decl.h:1923 +IsConstexpr = IC; +setImplicitlyInline(); + } nwilson wrote: > hubert.reinterpretcast wrote: > > I am quite sure this is not the right thing to do when `IC` is `false`. > Good point

[PATCH] D28007: Switch TableGen to emit calls to ASTRecordReader for AttrPCHRead.

2016-12-20 Thread David L. Jones via Phabricator via cfe-commits
dlj created this revision. dlj added a reviewer: rsmith. dlj added a subscriber: cfe-commits. This patch changes TableGen-generated code in AttrPCHRead to call functions on ASTRecordReader, instead of passing separate parameters to ASTReader. This is a follow-up to r290217. https://reviews.llvm.

r290221 - Fix build breakage in r290219. Notes should not be in diagnostic groups.

2016-12-20 Thread Graydon Hoare via cfe-commits
Author: graydon Date: Tue Dec 20 18:48:14 2016 New Revision: 290221 URL: http://llvm.org/viewvc/llvm-project?rev=290221&view=rev Log: Fix build breakage in r290219. Notes should not be in diagnostic groups. Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td Modified: cfe/trunk/inc

r290225 - Factor out checking of template arguments after deduction into a separate

2016-12-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Dec 20 19:10:31 2016 New Revision: 290225 URL: http://llvm.org/viewvc/llvm-project?rev=290225&view=rev Log: Factor out checking of template arguments after deduction into a separate function. (This change would also allow us to handle default template arguments in partial

[PATCH] D28008: Rename several methods on ASTRecordReader to follow LLVM style (lowerCamelCase).

2016-12-20 Thread David L. Jones via Phabricator via cfe-commits
dlj created this revision. dlj added a reviewer: rsmith. dlj added a subscriber: cfe-commits. This follows up to r290217, and makes functions on ASTRecordReader consistent and valid style. https://reviews.llvm.org/D28008 Files: include/clang/Serialization/ASTReader.h lib/Serialization/ASTRe

r290227 - [c++1z] When initializing a const-qualified class type, don't forget to add on

2016-12-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Dec 20 19:31:56 2016 New Revision: 290227 URL: http://llvm.org/viewvc/llvm-project?rev=290227&view=rev Log: [c++1z] When initializing a const-qualified class type, don't forget to add on the requested cv-qualifiers after construction. This usually doesn't matter, but it do

[PATCH] D27971: Make FormatStyle.GetStyleOfFile test work on MSVC

2016-12-20 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano updated this revision to Diff 82185. amaiorano added a comment. As agreed, modified getStyle to make use of vfs::FileSystem::makeAbsolute. I would modify the body of the commit as follows: Modify getStyle to use vfs::FileSystem::makeAbsolute just like FS.addFile does, rather than sys::

r290229 - Fix defaulted-functions-in-C++98 extension to give the functions the same

2016-12-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Dec 20 19:57:02 2016 New Revision: 290229 URL: http://llvm.org/viewvc/llvm-project?rev=290229&view=rev Log: Fix defaulted-functions-in-C++98 extension to give the functions the same effect they would have in C++11. In particular, they do not prevent value-initialization fr

Re: r290146 - Fix completely bogus types for some builtins:

2016-12-20 Thread Richard Smith via cfe-commits
On 19 December 2016 at 17:00, Friedman, Eli via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 12/19/2016 3:59 PM, Richard Smith via cfe-commits wrote: > >> Author: rsmith >> Date: Mon Dec 19 17:59:34 2016 >> New Revision: 290146 >> >> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test

Re: r290146 - Fix completely bogus types for some builtins:

2016-12-20 Thread Richard Smith via cfe-commits
On 20 December 2016 at 18:14, Richard Smith wrote: > On 19 December 2016 at 17:00, Friedman, Eli via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> On 12/19/2016 3:59 PM, Richard Smith via cfe-commits wrote: >> >>> Author: rsmith >>> Date: Mon Dec 19 17:59:34 2016 >>> New Revision: 29014

r290233 - Fix windows build breakage in r290219. Unix path separators in testcase.

2016-12-20 Thread Graydon Hoare via cfe-commits
Author: graydon Date: Tue Dec 20 21:00:11 2016 New Revision: 290233 URL: http://llvm.org/viewvc/llvm-project?rev=290233&view=rev Log: Fix windows build breakage in r290219. Unix path separators in testcase. Modified: cfe/trunk/test/Modules/implicit-private-with-different-name.m Modified: cfe

  1   2   >