[clang-tools-extra] r297806 - [test] Fix test dependencies when using installed tools

2017-03-14 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Wed Mar 15 00:55:43 2017 New Revision: 297806 URL: http://llvm.org/viewvc/llvm-project?rev=297806&view=rev Log: [test] Fix test dependencies when using installed tools Use the LLVM_UTILS_PROVIDED variable to determine whether test tool dependencies should be exposed for clang

[PATCH] D29851: [clang-tools-extra] [test] Fix test dependencies when using installed tools

2017-03-14 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297806: [test] Fix test dependencies when using installed tools (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D29851?vs=88055&id=91824#toc Repository: rL LLVM https://revie

r297799 - Fix test on Windows. Only a single backslash was required, not a double.

2017-03-14 Thread Douglas Yung via cfe-commits
Author: dyung Date: Tue Mar 14 20:38:24 2017 New Revision: 297799 URL: http://llvm.org/viewvc/llvm-project?rev=297799&view=rev Log: Fix test on Windows. Only a single backslash was required, not a double. Modified: cfe/trunk/test/Modules/modules-cache-path-canonicalization.m Modified: cfe/tr

[PATCH] D30388: [XRay] Add -fxray-{always, never}-instrument= flags to clang

2017-03-14 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris added a comment. Ping? https://reviews.llvm.org/D30388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r297798 - Add deployment knobs to tests (for Apple platforms)

2017-03-14 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Tue Mar 14 19:59:54 2017 New Revision: 297798 URL: http://llvm.org/viewvc/llvm-project?rev=297798&view=rev Log: Add deployment knobs to tests (for Apple platforms) The tests for libc++ specify -target on the command-line to the compiler, but this is problematic for a few

[PATCH] D17469: [libcxx] Add deployment knobs to tests (for Apple platforms)

2017-03-14 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini updated this revision to Diff 91804. mehdi_amini added a comment. Update: we set deployment by default even when not testing the system library. It is intentional because a REQUIRE in a test might be because an issue with libc for example. So for now the default is the OS on which the

[PATCH] D30810: Preserve vec3 type.

2017-03-14 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. > Thanks for your comment. We have a pass to undo the vec4 to vec3. I wondered > why clang generates the vec4 for vec3 load/store. As you can see the comment > on clang's code, they are generated for better performance. I had a questions > at this point. clang should cons

[PATCH] D30963: Fix crash when an 'import a module' TypoCorrection has its CorrectionDecls replaced by visible decls.

2017-03-14 Thread Jorge Gorbe via Phabricator via cfe-commits
jgorbe created this revision. The TypoCorrection::RequiresImport flag is managed by checkCorrectionVisibility() in SemaLookup.cpp. Currently, when none of the declarations in the typo correction are visible RequiresImport is set to true, and if there are no declarations, it's implicitly set to fal

[PATCH] D28299: Module: use PCMCache to manage memory buffers for pcm files.

2017-03-14 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. > ! In https://reviews.llvm.org/D28299#701194, @dexonsmith wrote: > Rebased again, and cleaned up tests, and a ping... now that dependencies are > resolved. > > Richard and/or Ben, can you take a look? (Or anyone else that feels comfortable confirming that the owner

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-14 Thread Dave Lee via Phabricator via cfe-commits
kastiglione updated this revision to Diff 91801. kastiglione added a comment. Overload matchesConditionally() for multiple compiler args https://reviews.llvm.org/D30854 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Registry.cpp

[PATCH] D28299: Module: use PCMCache to manage memory buffers for pcm files.

2017-03-14 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith updated this revision to Diff 91799. dexonsmith added a comment. Rebased again, and cleaned up tests, and a ping... now that dependencies are resolved. Richard and/or Ben, can you take a look? https://reviews.llvm.org/D28299 Files: clang/include/clang/Basic/DiagnosticSerializatio

Re: [PATCH] D30700: [Driver] Always add arch-specific-subdir to -rpath

2017-03-14 Thread Joerg Sonnenberger via cfe-commits
On Mon, Mar 13, 2017 at 10:37:41PM +, Reid Kleckner via Phabricator via cfe-commits wrote: > I don't agree. If we want to be good citizens on Linux, what's supposed > to happen is that we install our shared libraries into > /usr/lib/${distro_target}, which is what GCC does with its shared > co

r297791 - Make a blind attempt to fix this testcase on Windows.

2017-03-14 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Tue Mar 14 18:29:40 2017 New Revision: 297791 URL: http://llvm.org/viewvc/llvm-project?rev=297791&view=rev Log: Make a blind attempt to fix this testcase on Windows. Modified: cfe/trunk/test/Modules/modules-cache-path-canonicalization.m Modified: cfe/trunk/test/Modules/m

[PATCH] D30809: [coroutines] Add codegen for await and yield expressions

2017-03-14 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov marked 4 inline comments as done. GorNishanov added inline comments. Comment at: lib/CodeGen/CGCoroutine.cpp:26 +enum class AwaitKind { Init, Normal, Yield, Final }; +char const *AwaitKindStr[] = {"init", "await", "yield", "final"}; +} majnemer wrote:

[PATCH] D30810: Preserve vec3 type.

2017-03-14 Thread JinGu Kang via Phabricator via cfe-commits
jaykang10 added a comment. In https://reviews.llvm.org/D30810#701132, @ahatanak wrote: > Actually, it's not a mis-compile. The record layout shows that there is a > padding before field f2 and f2 starts at byte 16. So using "store <4 x > float>" doesn't overwrite the field. It depends on floa

[PATCH] D30809: [coroutines] Add codegen for await and yield expressions

2017-03-14 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov updated this revision to Diff 91790. GorNishanov added a comment. - reworked EmitAwait/Yield to has the signature similar to EmitAnyExpr - await expresions now support _Complex types. - s/Suffix/Prefix in buildCoroutineSuffix, since it was actually building a prefix - buildCoroutineSu

[PATCH] D30915: Canonicalize the path provided by -fmodules-cache-path

2017-03-14 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297790: Canonicalize the path provided by -fmodules-cache-path. (authored by adrian). Changed prior to commit: https://reviews.llvm.org/D30915?vs=91628&id=91791#toc Repository: rL LLVM https://revie

r297790 - Canonicalize the path provided by -fmodules-cache-path.

2017-03-14 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Tue Mar 14 18:07:49 2017 New Revision: 297790 URL: http://llvm.org/viewvc/llvm-project?rev=297790&view=rev Log: Canonicalize the path provided by -fmodules-cache-path. This fixes lookup mismatches that could happen when the module cache path contained a '/./' component. Di

[PATCH] D30810: Preserve vec3 type.

2017-03-14 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Actually, it's not a mis-compile. The record layout shows that there is a padding before field f2 and f2 starts at byte 16. So using "store <4 x float>" doesn't overwrite the field. https://reviews.llvm.org/D30810 ___ cfe

[PATCH] D30810: Preserve vec3 type.

2017-03-14 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. It looks like converting vec3 to vec4 is incorrect in some cases. In the following program, IRGen emits "store <4 x float>" to store g1 to *a, which will overwrite s1.f2. typedef __attribute__((__ext_vector_type__(3))) float float3; struct S1 { float3 f1;

[PATCH] D29851: [clang-tools-extra] [test] Fix test dependencies when using installed tools

2017-03-14 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Ugh... I really don't like how `LLVM_UTILS_PROVIDED` is implemented, but I guess it is fine. This patch is good. Repository: rL LLVM https://reviews.llvm.org/D29851 __

[PATCH] D30766: Add support for attribute "enum_extensibility"

2017-03-14 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: test/Sema/enum-attr.c:27 + +enum __attribute__((enum_extensibility(arg1))) EnumInvalidArg { // expected-warning{{'enum_extensibility' attribute argument not supported: 'arg1'}} + G aaron.ballman wrote: > ahatanak wro

[PATCH] D30766: Add support for attribute "enum_extensibility"

2017-03-14 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 91782. ahatanak marked 3 inline comments as done. ahatanak added a comment. Address review comments from Aaron. https://reviews.llvm.org/D30766 Files: include/clang/AST/Decl.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clan

[PATCH] D30954: Modules: Simulate diagnostic settings for implicit modules

2017-03-14 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith created this revision. This is a follow-up to r293123 that makes it work with implicit modules. Some background: An implicit module build (using Clang's internal build system) uses the same PCM file location for different `-Werror` levels. E.g., if a TU has `-Werror

r297784 - Fix Wdocumentation warning

2017-03-14 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue Mar 14 16:43:52 2017 New Revision: 297784 URL: http://llvm.org/viewvc/llvm-project?rev=297784&view=rev Log: Fix Wdocumentation warning Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp URL: http://llvm.org/viewvc/llvm-project/cfe

[PATCH] D29818: [libcxx] Threading support: Attempt to externalize system_clock::now() and steady_clock::now() implementations

2017-03-14 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs added a comment. In https://reviews.llvm.org/D29818#700949, @ed wrote: > Worth mentioning: the latest version of macOS now supports `clock_gettime()`. > Maybe better to leave the code as is and simply axe the Mach time code at > some point in the future? Supporting only the latest an

[PATCH] D29818: [libcxx] Threading support: Attempt to externalize system_clock::now() and steady_clock::now() implementations

2017-03-14 Thread Ed Schouten via Phabricator via cfe-commits
ed added a comment. Worth mentioning: the latest version of macOS now supports `clock_gettime()`. Maybe better to leave the code as is and simply axe the Mach time code at some point in the future? https://reviews.llvm.org/D29818 ___ cfe-commits m

[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

2017-03-14 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297779: [clangd] Fix not being able to attach a debugger on macOS (authored by d0k). Changed prior to commit: https://reviews.llvm.org/D30675?vs=91246&id=91768#toc Repository: rL LLVM https://review

[clang-tools-extra] r297779 - [clangd] Fix not being able to attach a debugger on macOS

2017-03-14 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Mar 14 15:41:28 2017 New Revision: 297779 URL: http://llvm.org/viewvc/llvm-project?rev=297779&view=rev Log: [clangd] Fix not being able to attach a debugger on macOS Clangd is often waiting for input on getline as it awaits requests. If the getline is interrupted, it causes

r297778 - [Hexagon] Recognize hexagonv62 as a valid target CPU

2017-03-14 Thread Krzysztof Parzyszek via cfe-commits
Author: kparzysz Date: Tue Mar 14 15:29:23 2017 New Revision: 297778 URL: http://llvm.org/viewvc/llvm-project?rev=297778&view=rev Log: [Hexagon] Recognize hexagonv62 as a valid target CPU Modified: cfe/trunk/include/clang/Driver/Options.td cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/tes

[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

2017-03-14 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. In https://reviews.llvm.org/D30675#700917, @bkramer wrote: > lg, do you have commit access? No I do not have commit access. Could you commit it? Thank you very much! https://reviews.llvm.org/D30675 ___ cfe-comm

[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

2017-03-14 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. lg, do you have commit access? https://reviews.llvm.org/D30675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

[PATCH] D30898: Add new -fverbose-asm that enables source interleaving

2017-03-14 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. > Note that in contrast to the original suggestion -fsource-asm here we use the > preferred -fverbose-asm. Basically explicitly saying -fverbose-asm in the > command line enables a minimum amount of debugging, so in AsmPrinter we can > use it to print the source code.

[libcxx] r297772 - Fixed unintentional assignment-in-assert in new "extending memory management tools" algorithms.

2017-03-14 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Tue Mar 14 14:36:30 2017 New Revision: 297772 URL: http://llvm.org/viewvc/llvm-project?rev=297772&view=rev Log: Fixed unintentional assignment-in-assert in new "extending memory management tools" algorithms. Modified: libcxx/trunk/test/std/utilities/memory/specialized.alg

r297770 - Modules: Optimize bitcode encoding of diagnostic state

2017-03-14 Thread Duncan P. N. Exon Smith via cfe-commits
Author: dexonsmith Date: Tue Mar 14 14:31:27 2017 New Revision: 297770 URL: http://llvm.org/viewvc/llvm-project?rev=297770&view=rev Log: Modules: Optimize bitcode encoding of diagnostic state Since bitcode uses VBR encoding, large numbers are more expensive than small ones. Instead of emitting a

[PATCH] D30810: Preserve vec3 type.

2017-03-14 Thread JinGu Kang via Phabricator via cfe-commits
jaykang10 added a comment. In https://reviews.llvm.org/D30810#700476, @Anastasia wrote: > In https://reviews.llvm.org/D30810#699827, @jaykang10 wrote: > > > In https://reviews.llvm.org/D30810#699695, @bruno wrote: > > > > > Hi JinGu, > > > > > > I just read the discussion on cfe-dev, some comment

r297764 - Fix arch-specific-libdir tests on Windows

2017-03-14 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Mar 14 13:24:41 2017 New Revision: 297764 URL: http://llvm.org/viewvc/llvm-project?rev=297764&view=rev Log: Fix arch-specific-libdir tests on Windows This is pretty horrible, but I forget if we have any better ways to handle these backslashing issues. Modified: cfe/trun

[PATCH] D30949: [CodeGen] Add an option to enable LLVM IR linting

2017-03-14 Thread Vedant Kumar via Phabricator via cfe-commits
vsk created this revision. LLVM has a nifty linter which checks for some common kinds of unusual or undefined behavior by doing some basic IR-level static analysis. Add a CC1 option to clang which enables this analysis. Having the linter available through clang could be a useful debugging tool.

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Reid Kleckner via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297761: Warn on enum assignment to bitfields that can't fit all values (authored by rnk). Changed prior to commit: https://reviews.llvm.org/D30923?vs=91749&id=91752#toc Repository: rL LLVM https://r

r297761 - Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Mar 14 13:01:02 2017 New Revision: 297761 URL: http://llvm.org/viewvc/llvm-project?rev=297761&view=rev Log: Warn on enum assignment to bitfields that can't fit all values This adds -Wbitfield-enum-conversion, which warns on implicit conversions that happen on bitfield assign

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Reid Kleckner via Phabricator via cfe-commits
rnk marked an inline comment as done. rnk added a comment. Cool, thanks for the reviews, this is definitely in better shape now. This is off by default, so I'm going to commit and experiment with it on a few codebases. I'd still like to hear if either of the Richards have diagnostic wording su

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D30923#700780, @rnk wrote: > In https://reviews.llvm.org/D30923#700708, @hfinkel wrote: > > > In https://reviews.llvm.org/D30923#700696, @rnk wrote: > > > > > Do you think it's worth indicating that the error can be suppressed with > > > an ex

r297759 - Add more debugging code for the SystemZ bot.

2017-03-14 Thread Juergen Ributzka via cfe-commits
Author: ributzka Date: Tue Mar 14 12:46:26 2017 New Revision: 297759 URL: http://llvm.org/viewvc/llvm-project?rev=297759&view=rev Log: Add more debugging code for the SystemZ bot. Modified: cfe/trunk/unittests/Basic/VirtualFileSystemTest.cpp Modified: cfe/trunk/unittests/Basic/VirtualFileSys

r297756 - Fix misspelled enum

2017-03-14 Thread Jonathan Roelofs via cfe-commits
Author: jroelofs Date: Tue Mar 14 12:29:33 2017 New Revision: 297756 URL: http://llvm.org/viewvc/llvm-project?rev=297756&view=rev Log: Fix misspelled enum https://reviews.llvm.org/D30945 Modified: cfe/trunk/include/clang/Parse/Parser.h cfe/trunk/lib/Parse/ParseOpenMP.cpp cfe/trunk/li

[PATCH] D30945: Fix mis-spelled enum

2017-03-14 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs closed this revision. jroelofs added a comment. r297756 https://reviews.llvm.org/D30945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r297758 - Mark LWG issues 2868, 2872, and 2890 as complete. There's nothing we need to do for them.

2017-03-14 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Mar 14 12:35:56 2017 New Revision: 297758 URL: http://llvm.org/viewvc/llvm-project?rev=297758&view=rev Log: Mark LWG issues 2868, 2872, and 2890 as complete. There's nothing we need to do for them. Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trun

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D30923#700708, @hfinkel wrote: > In https://reviews.llvm.org/D30923#700696, @rnk wrote: > > > Do you think it's worth indicating that the error can be suppressed with an > > explicit cast, or is that wasted space? > > > What might this look like?

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Reid Kleckner via Phabricator via cfe-commits
rnk updated this revision to Diff 91749. rnk added a comment. - Test that explicit casts suppress the warning https://reviews.llvm.org/D30923 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaChecking.cpp test/SemaCXX/warn-bitfield-en

r297754 - [Driver] Fix arch-specific-libdir-rpath.c

2017-03-14 Thread Pirama Arumuga Nainar via cfe-commits
Author: pirama Date: Tue Mar 14 12:26:56 2017 New Revision: 297754 URL: http://llvm.org/viewvc/llvm-project?rev=297754&view=rev Log: [Driver] Fix arch-specific-libdir-rpath.c Summary: Fix the test by adding missing -target flags with a 'linux' triple. Reviewers: rnk, srhines Subscribers: cfe-co

[PATCH] D30947: [Driver] Fix arch-specific-libdir-rpath.c

2017-03-14 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297754: [Driver] Fix arch-specific-libdir-rpath.c (authored by pirama). Changed prior to commit: https://reviews.llvm.org/D30947?vs=91746&id=91747#toc Repository: rL LLVM https://reviews.llvm.org/D3

[PATCH] D30947: [Driver] Fix arch-specific-libdir-rpath.c

2017-03-14 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D30947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30947: [Driver] Fix arch-specific-libdir-rpath.c

2017-03-14 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama created this revision. Fix the test by adding missing -target flags with a 'linux' triple. https://reviews.llvm.org/D30947 Files: test/Driver/arch-specific-libdir-rpath.c Index: test/Driver/arch-specific-libdir-rpath.c =

[libcxx] r297753 - Also mark LWG#2785 as complete, because we already implemented that

2017-03-14 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Mar 14 12:24:29 2017 New Revision: 297753 URL: http://llvm.org/viewvc/llvm-project?rev=297753&view=rev Log: Also mark LWG#2785 as complete, because we already implemented that Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trunk/www/cxx1z_status.html

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-14 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: unittests/ASTMatchers/ASTMatchersNodeTest.cpp:1547 + std::string ObjCString = +"#pragma clang diagnostic ignored \"-Wobjc-root-class\"\n" +"@protocol Proto " kastiglione wrote: > aaron.ballman wrote: > > k

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-14 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. In https://reviews.llvm.org/D30920#700574, @hfinkel wrote: > In https://reviews.llvm.org/D30920#700557, @mehdi_amini wrote: > > > In https://reviews.llvm.org/D30920#700433, @tejohnson wrote: > > > > > In https://reviews.llvm.org/D30920#700133, @pcc wrote: > > > > > >

[libcxx] r297752 - Implement LWG2784, and mark 2786, 2795, 2804, 2812, 2826, 2834, 2837 and 2838 as complete - since we do them already

2017-03-14 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Mar 14 12:08:47 2017 New Revision: 297752 URL: http://llvm.org/viewvc/llvm-project?rev=297752&view=rev Log: Implement LWG2784, and mark 2786, 2795, 2804, 2812, 2826, 2834, 2837 and 2838 as complete - since we do them already Modified: libcxx/trunk/include/exception

[PATCH] D30582: [Driver] Restructure handling of -ffast-math and similar options

2017-03-14 Thread John Brawn via Phabricator via cfe-commits
john.brawn updated this revision to Diff 91745. john.brawn added a comment. Respond to review comments, and also fix a couple of 80-column violations that I spotted. Repository: rL LLVM https://reviews.llvm.org/D30582 Files: lib/Driver/ToolChains/Clang.cpp test/Driver/fast-math.c Index

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-14 Thread Dave Lee via Phabricator via cfe-commits
kastiglione added inline comments. Comment at: unittests/ASTMatchers/ASTMatchersNodeTest.cpp:1547 + std::string ObjCString = +"#pragma clang diagnostic ignored \"-Wobjc-root-class\"\n" +"@protocol Proto " aaron.ballman wrote: > kastiglione wrote: > > kas

[PATCH] D30700: [Driver] Add flag to request arch-specific-subdir in -rpath

2017-03-14 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297751: [Driver] Add flag to request arch-specific-subdir in -rpath (authored by pirama). Changed prior to commit: https://reviews.llvm.org/D30700?vs=91743&id=91744#toc Repository: rL LLVM https://r

r297751 - [Driver] Add flag to request arch-specific-subdir in -rpath

2017-03-14 Thread Pirama Arumuga Nainar via cfe-commits
Author: pirama Date: Tue Mar 14 11:58:07 2017 New Revision: 297751 URL: http://llvm.org/viewvc/llvm-project?rev=297751&view=rev Log: [Driver] Add flag to request arch-specific-subdir in -rpath Summary: This patch adds -f[no-]rtlib-add-rpath, which if enabled, embeds the arch-specific subdirectory

[PATCH] D30700: [Driver] Always add arch-specific-subdir to -rpath

2017-03-14 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama updated this revision to Diff 91743. pirama added a comment. Update commit message https://reviews.llvm.org/D30700 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/CommonArgs.cpp test/Driver/arch-specific-libdir-rpath.c test/Driver/arch-specific-libdir.c test/lit.cf

r297750 - [ubsan] Use the nicer nullability diagnostic handlers

2017-03-14 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Tue Mar 14 11:48:29 2017 New Revision: 297750 URL: http://llvm.org/viewvc/llvm-project?rev=297750&view=rev Log: [ubsan] Use the nicer nullability diagnostic handlers This is a follow-up to r297700 (Add a nullability sanitizer). It addresses some FIXME's re: using nullabilit

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-14 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: unittests/ASTMatchers/ASTMatchersNodeTest.cpp:1547 + std::string ObjCString = +"#pragma clang diagnostic ignored \"-Wobjc-root-class\"\n" +"@protocol Proto " kastiglione wrote: > kastiglione wrote: > > aar

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-14 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. @sylvestre.ledru No, unfortunately not. My apologies, I've been taken up with work mostly. I will make a marked attempt to do it this weekend :) Repository: rL LLVM https://reviews.llvm.org/D28462 ___ cfe-commits mailin

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D30923#700696, @rnk wrote: > In https://reviews.llvm.org/D30923#700626, @hfinkel wrote: > > > In https://reviews.llvm.org/D30923#700620, @thakis wrote: > > > > > Maybe it should have some "to suppress the warning, do X" fixit? > > > > > > I thi

[PATCH] D30931: [clang-tidy] added new identifier naming case type for ignoring case style

2017-03-14 Thread Beren Minor via Phabricator via cfe-commits
berenm added a comment. In https://reviews.llvm.org/D30931#700690, @alexfh wrote: > I understand your use case, but this patch makes the check's behavior more > confusing: having both "any case" and "ignore case" with subtle differences > in behavior seems very misleading. The problem seems to

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Reid Kleckner via Phabricator via cfe-commits
rnk updated this revision to Diff 91741. rnk added a comment. - Beef up test as Nico suggests - Add two notes, one to change the bitfield signedness, one to indicate the required bitwidth https://reviews.llvm.org/D30923 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/Dia

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D30923#700626, @hfinkel wrote: > In https://reviews.llvm.org/D30923#700620, @thakis wrote: > > > Maybe it should have some "to suppress the warning, do X" fixit? > > > I think we should at least include how many bits the field should have to fix >

[PATCH] D30931: [clang-tidy] added new identifier naming case type for ignoring case style

2017-03-14 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. BTW, next time please add cfe-commits to subscribers when you create the patch to get it sent properly to the mailing list. https://reviews.llvm.org/D30931 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-14 Thread Dave Lee via Phabricator via cfe-commits
kastiglione updated this revision to Diff 91740. kastiglione added a comment. Use -fobjc-nonfragile-abi https://reviews.llvm.org/D30854 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Registry.cpp unittests/ASTMatchers/ASTMatchers

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-14 Thread Dave Lee via Phabricator via cfe-commits
kastiglione added inline comments. Comment at: unittests/ASTMatchers/ASTMatchersNodeTest.cpp:1547 + std::string ObjCString = +"#pragma clang diagnostic ignored \"-Wobjc-root-class\"\n" +"@protocol Proto " kastiglione wrote: > aaron.ballman wrote: > > Ins

[PATCH] D30946: [ScopePrinting] Added support to print full scopes of types and declarations.

2017-03-14 Thread Simon Schröder via Phabricator via cfe-commits
schroedersi created this revision. Herald added subscribers: mgorny, klimek. PrintingPolicy::SuppressScope was replaced by PrintingPolicy::Scope. Possible values for PrintingPolicy::Scope are: - FullScope: Print all nested name specifiers (including the global scope specifier). This is necessary

[PATCH] D29757: [libcxx] Threading support: Externalize hardware_concurrency()

2017-03-14 Thread Asiri Rathnayake via Phabricator via cfe-commits
rmaprath added a comment. @EricWF: Ping? https://reviews.llvm.org/D29757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D29818: [libcxx] Threading support: Attempt to externalize system_clock::now() and steady_clock::now() implementations

2017-03-14 Thread Asiri Rathnayake via Phabricator via cfe-commits
rmaprath added a comment. @EricWF: Ping? https://reviews.llvm.org/D29818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30945: Fix mis-spelled enum

2017-03-14 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/D30945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D30945: Fix mis-spelled enum

2017-03-14 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs created this revision. https://reviews.llvm.org/D30945 Files: include/clang/Parse/Parser.h lib/Parse/ParseOpenMP.cpp lib/Parse/ParseStmt.cpp Index: lib/Parse/ParseStmt.cpp === --- lib/Parse/ParseStmt.cpp +++ lib/Pars

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-14 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama updated this revision to Diff 91738. pirama added a comment. Explicitly pass -O2 instead of relying on the default opt level. https://reviews.llvm.org/D30920 Files: lib/Driver/ToolChains/CommonArgs.cpp test/Driver/gold-lto.c Index: test/Driver/gold-lto.c ===

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-14 Thread Dave Lee via Phabricator via cfe-commits
kastiglione added inline comments. Comment at: unittests/ASTMatchers/ASTMatchersNodeTest.cpp:1501 - std::string Objc1String = + std::string ObjCString = +"#pragma clang diagnostic ignored \"-Wobjc-root-class\"\n" aaron.ballman wrote: > These changes are u

Re: LLVM Lab SVN mirror is behind

2017-03-14 Thread Hans Wennborg via cfe-commits
r297634 was the 4.0.0 release commit. We'll probably see similar-size commits for 4.0.1 and 5.0.0. Can we make the buildbot svn mirror ignore that component of the repository to avoid this happening again? - Hans On Tue, Mar 14, 2017 at 12:23 AM, Galina Kistanova via cfe-commits wrote: > The SV

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D30923#700620, @thakis wrote: > Maybe it should have some "to suppress the warning, do X" fixit? I think we should at least include how many bits the field should have to fix the problem (pointing to the relevant field definition certainly s

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Maybe it should have some "to suppress the warning, do X" fixit? https://reviews.llvm.org/D30923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

2017-03-14 Thread Nico Weber via Phabricator via cfe-commits
thakis accepted this revision. thakis added a comment. This revision is now accepted and ready to land. Looks like a cool warning. Two suggestions for more exhaustive testing, but I think this looks good. Comment at: test/SemaCXX/warn-bitfield-enum-conversion.cpp:1 +// RUN: %c

[libunwind] r297744 - DarwinParser: include limits

2017-03-14 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Mar 14 10:17:55 2017 New Revision: 297744 URL: http://llvm.org/viewvc/llvm-project?rev=297744&view=rev Log: DarwinParser: include limits In debug mode, we have assertions that the values do not exceed the limits of the type holding them. In order to account for the typ

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-14 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D30920#700557, @mehdi_amini wrote: > In https://reviews.llvm.org/D30920#700433, @tejohnson wrote: > > > In https://reviews.llvm.org/D30920#700133, @pcc wrote: > > > > > In https://reviews.llvm.org/D30920#700077, @tejohnson wrote: > > > > > > >

[PATCH] D30937: [OpenCL] Added diagnostic for checking length of vector

2017-03-14 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaExprMember.cpp:287 +// OpenCL spec (Section 6.1.7 Vector Components): +// The component group notation can occur on the left hand side of an expression. To form an lvalue, The format is normally: OpenCL

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-14 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. In https://reviews.llvm.org/D30920#700433, @tejohnson wrote: > In https://reviews.llvm.org/D30920#700133, @pcc wrote: > > > In https://reviews.llvm.org/D30920#700077, @tejohnson wrote: > > > > > Until everything is converted to using size attributes, it seems like a

[PATCH] D30415: Fix -mno-altivec cannot overwrite -maltivec option

2017-03-14 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D30415#700534, @nemanjai wrote: > This seems to change the relationship between -m[no-]altivec and > -f[no-]altivec which has been kind of contentious for a while. Can you add a > note as to whether the new behaviour matches the GCC behaviour

[PATCH] D30415: Fix -mno-altivec cannot overwrite -maltivec option

2017-03-14 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai added a subscriber: echristo. nemanjai added a comment. This seems to change the relationship between -m[no-]altivec and -f[no-]altivec which has been kind of contentious for a while. Can you add a note as to whether the new behaviour matches the GCC behaviour. Also, perhaps @echristo

[PATCH] D27334: [OpenCL] Ambiguous function call.

2017-03-14 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. I don't actually. But remembering the follow up discussion: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20161205/178846.html and since we have to deviate from the standard C/C++ implementation anyways I am wondering whether modifying overloading resolution i

[PATCH] D30743: enable -save-temps with -finclude-defult-header

2017-03-14 Thread Guansong Zhang via Phabricator via cfe-commits
guansong updated this revision to Diff 91718. guansong added a comment. Thanks, update as suggested. https://reviews.llvm.org/D30743 Files: lib/Driver/Tools.cpp test/Driver/include-default-header.cl Index: test/Driver/include-default-header.cl =

[PATCH] D30415: Fix -mno-altivec cannot overwrite -maltivec option

2017-03-14 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel accepted this revision. hfinkel added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D30415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[PATCH] D25866: [Sema] Support implicit scalar to vector conversions

2017-03-14 Thread Simon Dardis via Phabricator via cfe-commits
sdardis updated this revision to Diff 91716. sdardis added a comment. Addressed review comments, add C++ specific test. https://reviews.llvm.org/D25866 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaExpr.cpp test/Sema/vector-cast.c test/Sema/v

[PATCH] D30415: Fix -mno-altivec cannot overwrite -maltivec option

2017-03-14 Thread Ulrich Weigand via Phabricator via cfe-commits
uweigand added a comment. SystemZ parts LGTM. Thanks! https://reviews.llvm.org/D30415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30816: [OpenCL] Added implicit conversion rank for overloading functions with vector data type in OpenCL

2017-03-14 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 91713. echuraev marked 2 inline comments as done. https://reviews.llvm.org/D30816 Files: include/clang/Sema/Overload.h lib/Sema/SemaOverload.cpp test/CodeGenOpenCL/overload.cl test/SemaOpenCL/overload_addrspace_resolution.cl Index: test/SemaOpenCL/o

[PATCH] D30743: enable -save-temps with -finclude-defult-header

2017-03-14 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Thanks! Comment at: lib/Driver/Tools.cpp:5290 + !isa(JA)) { +//Args.AddAllArgValues(CmdArgs, options::OPT_Xclang); +for (auto Arg : Args.filtered(opt

[PATCH] D30810: Preserve vec3 type.

2017-03-14 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D30810#699827, @jaykang10 wrote: > In https://reviews.llvm.org/D30810#699695, @bruno wrote: > > > Hi JinGu, > > > > I just read the discussion on cfe-dev, some comments: > > > > > My colleague and I are implementing a transformation pass betw

[PATCH] D30816: [OpenCL] Added implicit conversion rank for overloading functions with vector data type in OpenCL

2017-03-14 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/overload_addrspace_resolution.cl:1 -// RUN: %clang_cc1 -cl-std=CL2.0 -emit-llvm -o - -triple x86_64-unknown-unknown %s | FileCheck %s +// RUN: %clang_cc1 -cl-std=CL2.0 -emit-llvm -o - -triple spir-unknown-unknown %s |

[PATCH] D30937: Added diagnostic for checking length of vector

2017-03-14 Thread Egor Churaev via Phabricator via cfe-commits
echuraev created this revision. https://reviews.llvm.org/D30937 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaExprMember.cpp test/SemaOpenCL/vector_swizzle_length.cl Index: test/SemaOpenCL/vector_swizzle_length.cl ==

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-14 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. In https://reviews.llvm.org/D30920#700133, @pcc wrote: > In https://reviews.llvm.org/D30920#700077, @tejohnson wrote: > > > Until everything is converted to using size attributes, it seems like a > > correct fix for the bug is to accept these options in the gold-plugin

[PATCH] D30582: [Driver] Restructure handling of -ffast-math and similar options

2017-03-14 Thread Renato Golin via Phabricator via cfe-commits
rengolin added inline comments. Comment at: lib/Driver/ToolChains/Clang.cpp:2320 + + for (Arg *A : Args) + { format Comment at: lib/Driver/ToolChains/Clang.cpp:2324 +{ +// Options controlling individual features +case options::OPT

  1   2   >