Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread Nico Weber via cfe-commits
On Tue, Apr 10, 2018 at 12:13 PM, David Blaikie wrote: > It's more the fact that that's /all/ the warning improvement has found so > far. If it was 8 false positives & also found 80 actionable bugs/bad code, > that'd be one thing. > Right. We used to hold ourselves to very high standards for war

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread Nico Weber via cfe-commits
On Tue, Apr 10, 2018 at 12:59 PM, John McCall wrote: > Also, the standard for the static analyzer is not lower than it is for the > compiler. > > The static analyzer tries to catch a much larger class of bugs, but it > also tries very hard to make all the warnings it emits count. There’s a > real

r329739 - Revert r329684 (and follow-ups 329693, 329714). See discussion on https://reviews.llvm.org/D43578.

2018-04-10 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Apr 10 11:53:28 2018 New Revision: 329739 URL: http://llvm.org/viewvc/llvm-project?rev=329739&view=rev Log: Revert r329684 (and follow-ups 329693, 329714). See discussion on https://reviews.llvm.org/D43578. Modified: cfe/trunk/include/clang/Frontend/FrontendAction.h

Re: [PATCH] D43578: -ftime-report switch support in Clang

2018-04-11 Thread Nico Weber via cfe-commits
On Wed, Apr 11, 2018 at 6:18 AM, Andrew V. Tischenko via Phabricator via cfe-commits wrote: > avt77 added a comment. > > In https://reviews.llvm.org/D43578#1062950, @thakis wrote: > > > @davezarzycki remarks in https://reviews.llvm.org/D45485 that this > breaks the shared build. The proposed fix

Re: [PATCH] D38954: [Sema] -Wzero-as-null-pointer-constant: don't warn for system macros other than NULL.

2017-10-25 Thread Nico Weber via cfe-commits
Hm, that's a lot of overhead. Granted, it's a synthetic benchmark, but I think it'd be good to try this on some real codebase to make sure it really is negligible overhead in real-world scenarios. On Wed, Oct 25, 2017 at 3:09 PM, Roman Lebedev via Phabricator via cfe-commits wrote: > lebedev.ri

Re: [PATCH] D39317: Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Nico Weber via cfe-commits
*the wrong thing On Thu, Oct 26, 2017 at 12:43 PM, Nico Weber wrote: > I don't know of one. ruiu said he's considering making lld error out on > mixed init_array + ctors instead of having it silently do the same thing. > > On Thu, Oct 26, 2017 at 12:28 PM, Shoaib Meenai via Phabricator via > cfe

Re: [PATCH] D39317: Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Nico Weber via cfe-commits
I don't know of one. ruiu said he's considering making lld error out on mixed init_array + ctors instead of having it silently do the same thing. On Thu, Oct 26, 2017 at 12:28 PM, Shoaib Meenai via Phabricator via cfe-commits wrote: > smeenai added a comment. > > > And lld currently silently mis

r316713 - Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Oct 26 16:26:29 2017 New Revision: 316713 URL: http://llvm.org/viewvc/llvm-project?rev=316713&view=rev Log: Use -fuse-init-array if no gcc installation is found. clang currently uses .init_array instead of .ctors on Linux if it detects gcc 4.7+. Make it so that it also uses

[clang-tools-extra] 2eb5ac9 - Revert "[clangd] Add support for missing includes analysis."

2023-03-07 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2023-03-07T22:14:11-05:00 New Revision: 2eb5ac99a76dbbf8ac68c538211fabeaa5ac0bfd URL: https://github.com/llvm/llvm-project/commit/2eb5ac99a76dbbf8ac68c538211fabeaa5ac0bfd DIFF: https://github.com/llvm/llvm-project/commit/2eb5ac99a76dbbf8ac68c538211fabeaa5ac0bfd.diff LO

[clang] b851308 - Revert "[COFF] Support -gsplit-dwarf for COFF on Windows"

2023-06-25 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2023-06-25T14:32:36-04:00 New Revision: b851308b870a67ccb606d0d33f159a70fd3522c7 URL: https://github.com/llvm/llvm-project/commit/b851308b870a67ccb606d0d33f159a70fd3522c7 DIFF: https://github.com/llvm/llvm-project/commit/b851308b870a67ccb606d0d33f159a70fd3522c7.diff LO

[clang] 56bac6c - Revert "[clang] [test] Narrow down MSVC specific behaviours from "any windows" to only MSVC/clang-cl"

2023-05-10 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2023-05-10T16:49:18+02:00 New Revision: 56bac6c87a2d9046dbac36aae4910b4b90edf643 URL: https://github.com/llvm/llvm-project/commit/56bac6c87a2d9046dbac36aae4910b4b90edf643 DIFF: https://github.com/llvm/llvm-project/commit/56bac6c87a2d9046dbac36aae4910b4b90edf643.diff LO

[clang] cf8c358 - Revert "[Lex] Warn when defining or undefining any builtin macro"

2023-05-17 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2023-05-17T11:01:33-04:00 New Revision: cf8c358dc9414e3de9f65eebdfdcb66dd5817857 URL: https://github.com/llvm/llvm-project/commit/cf8c358dc9414e3de9f65eebdfdcb66dd5817857 DIFF: https://github.com/llvm/llvm-project/commit/cf8c358dc9414e3de9f65eebdfdcb66dd5817857.diff LO

[clang] 843450b - [clang] Try to fix check-clang after f539b6ffc251

2023-04-27 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2023-04-27T10:12:39-04:00 New Revision: 843450b9a67c57f134913a2b90dcb5ba95114e0f URL: https://github.com/llvm/llvm-project/commit/843450b9a67c57f134913a2b90dcb5ba95114e0f DIFF: https://github.com/llvm/llvm-project/commit/843450b9a67c57f134913a2b90dcb5ba95114e0f.diff LO

[clang] dbdd637 - Revert "[ABI] [C++20] [Modules] Don't generate vtable if the class is defined in other module unit"

2023-06-14 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2023-06-14T16:17:42-07:00 New Revision: dbdd6372b7af2f6df5f41d19d966e6bac1b30208 URL: https://github.com/llvm/llvm-project/commit/dbdd6372b7af2f6df5f41d19d966e6bac1b30208 DIFF: https://github.com/llvm/llvm-project/commit/dbdd6372b7af2f6df5f41d19d966e6bac1b30208.diff LO

[clang] 9c56035 - Revert "[Clang][MS] Remove assertion on BaseOffset can't be smaller than Size."

2023-06-14 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2023-06-14T16:19:48-07:00 New Revision: 9c560350dd57d0dcb849c5915fa7c50b139ce671 URL: https://github.com/llvm/llvm-project/commit/9c560350dd57d0dcb849c5915fa7c50b139ce671 DIFF: https://github.com/llvm/llvm-project/commit/9c560350dd57d0dcb849c5915fa7c50b139ce671.diff LO

[clang] de4b6a1 - Revert "Store OptTable::Info::Name as a StringRef"

2022-12-06 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2022-12-06T08:43:48-05:00 New Revision: de4b6a1bc64db33643f001ad45fae7b92b4a4688 URL: https://github.com/llvm/llvm-project/commit/de4b6a1bc64db33643f001ad45fae7b92b4a4688 DIFF: https://github.com/llvm/llvm-project/commit/de4b6a1bc64db33643f001ad45fae7b92b4a4688.diff LO

[clang] af95441 - [clang] Tweak test to tolerate clang being called "clang" instead of "clang-15"

2022-12-06 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2022-12-06T08:50:37-05:00 New Revision: af95441ba7f3ca61c925409e58ee7e5486d84033 URL: https://github.com/llvm/llvm-project/commit/af95441ba7f3ca61c925409e58ee7e5486d84033 DIFF: https://github.com/llvm/llvm-project/commit/af95441ba7f3ca61c925409e58ee7e5486d84033.diff LO

[clang] f2d878b - Revert "[clang] Tweak test to tolerate clang being called "clang" instead of "clang-15""

2022-12-06 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2022-12-06T10:22:35-05:00 New Revision: f2d878ba688adf134fd0c4ad971ada57c1898e62 URL: https://github.com/llvm/llvm-project/commit/f2d878ba688adf134fd0c4ad971ada57c1898e62 DIFF: https://github.com/llvm/llvm-project/commit/f2d878ba688adf134fd0c4ad971ada57c1898e62.diff LO

[clang] 8e7994b - Revert "[Driver][test] Fix test by creating empty archive instead of empty file"

2022-12-06 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2022-12-06T10:22:47-05:00 New Revision: 8e7994b9b513497589d4bf911f061378f517fb16 URL: https://github.com/llvm/llvm-project/commit/8e7994b9b513497589d4bf911f061378f517fb16 DIFF: https://github.com/llvm/llvm-project/commit/8e7994b9b513497589d4bf911f061378f517fb16.diff LO

[clang] 6cac3dc - [clang] Tweak test to tolerate clang being called "clang" instead of "clang-15"

2022-12-07 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2022-12-07T15:03:35-05:00 New Revision: 6cac3dc9db57cbf5f9f9092d97f878be3db5020d URL: https://github.com/llvm/llvm-project/commit/6cac3dc9db57cbf5f9f9092d97f878be3db5020d DIFF: https://github.com/llvm/llvm-project/commit/6cac3dc9db57cbf5f9f9092d97f878be3db5020d.diff LO

[clang] 1481fcf - [clang] Try to unbreak test/C/drs/dr324.c on Windows

2022-12-09 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2022-12-09T08:57:28-05:00 New Revision: 1481fcf780bde7b115aa395064d71749b1a40889 URL: https://github.com/llvm/llvm-project/commit/1481fcf780bde7b115aa395064d71749b1a40889 DIFF: https://github.com/llvm/llvm-project/commit/1481fcf780bde7b115aa395064d71749b1a40889.diff LO

Re: r289698 - Remove unused variable found by GCC warning.

2016-12-14 Thread Nico Weber via cfe-commits
If you spell it `/*IsWritten=*/foo`, then clang-format will know to not insert a space after the comment. On Wed, Dec 14, 2016 at 2:45 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Wed Dec 14 13:45:03 2016 > New Revision: 289698 > > URL: http://ll

r289712 - Update MSVC compat docs about debug info

2016-12-14 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Dec 14 15:34:19 2016 New Revision: 289712 URL: http://llvm.org/viewvc/llvm-project?rev=289712&view=rev Log: Update MSVC compat docs about debug info https://reviews.llvm.org/D27769 Modified: cfe/trunk/docs/MSVCCompatibility.rst Modified: cfe/trunk/docs/MSVCCompatibili

r289713 - Revert 289252 (and follow-up 289285), it caused PR31374

2016-12-14 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Dec 14 15:38:18 2016 New Revision: 289713 URL: http://llvm.org/viewvc/llvm-project?rev=289713&view=rev Log: Revert 289252 (and follow-up 289285), it caused PR31374 Removed: cfe/trunk/test/CodeGenOpenCL/amdgpu-nullptr.cl Modified: cfe/trunk/include/clang/AST/APValue.

Re: r289919 - Remove "-disable-llvm-optzns -verify" from the RUN line.

2016-12-15 Thread Nico Weber via cfe-commits
Are you aware that this is still failing on all the bots? ( http://lab.llvm.org:8011/builders/clang-atom-d525-fedora-rel/builds/493 eg) On Thu, Dec 15, 2016 at 11:18 PM, Akira Hatanaka via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ahatanak > Date: Thu Dec 15 22:18:53 2016 > New R

Re: r289919 - Remove "-disable-llvm-optzns -verify" from the RUN line.

2016-12-15 Thread Nico Weber via cfe-commits
I think the problem was that you didn't pipe the output to /dev/null or -, and so a .ll file got created which now confuses the bots. I suggest: 1. Add `// RUN: rm -f right_path.ll` at the top for a while (look through magic lit vars to find one that expands to the right thing) 2. If the intent fo

Re: r289919 - Remove "-disable-llvm-optzns -verify" from the RUN line.

2016-12-15 Thread Nico Weber via cfe-commits
On Fri, Dec 16, 2016 at 12:08 AM, Nico Weber wrote: > I think the problem was that you didn't pipe the output to /dev/null or -, > and so a .ll file got created which now confuses the bots. > > I suggest: > 1. Add `// RUN: rm -f right_path.ll` at the top for a while (look through > magic lit vars

r289924 - attempt to fix bots after r289914/r289919

2016-12-15 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Dec 15 23:03:44 2016 New Revision: 289924 URL: http://llvm.org/viewvc/llvm-project?rev=289924&view=rev Log: attempt to fix bots after r289914/r289919 Modified: cfe/trunk/test/SemaTemplate/default-expr-arguments-3.cpp Modified: cfe/trunk/test/SemaTemplate/default-expr-a

Re: r289919 - Remove "-disable-llvm-optzns -verify" from the RUN line.

2016-12-15 Thread Nico Weber via cfe-commits
I gave this a shot in 289924. Please check that's the right thing. On Fri, Dec 16, 2016 at 12:09 AM, Nico Weber wrote: > On Fri, Dec 16, 2016 at 12:08 AM, Nico Weber wrote: > >> I think the problem was that you didn't pipe the output to /dev/null or >> -, and so a .ll file got created which now

Re: r289919 - Remove "-disable-llvm-optzns -verify" from the RUN line.

2016-12-15 Thread Nico Weber via cfe-commits
On Fri, Dec 16, 2016 at 12:14 AM, Akira Hatanaka wrote: > > On Dec 15, 2016, at 9:08 PM, Nico Weber wrote: > > I think the problem was that you didn't pipe the output to /dev/null or -, > and so a .ll file got created which now confuses the bots. > > I suggest: > 1. Add `// RUN: rm -f right_path

Re: r289919 - Remove "-disable-llvm-optzns -verify" from the RUN line.

2016-12-15 Thread Nico Weber via cfe-commits
On Fri, Dec 16, 2016 at 12:21 AM, Akira Hatanaka wrote: > > On Dec 15, 2016, at 9:18 PM, Nico Weber wrote: > > On Fri, Dec 16, 2016 at 12:14 AM, Akira Hatanaka > wrote: > >> >> On Dec 15, 2016, at 9:08 PM, Nico Weber wrote: >> >> I think the problem was that you didn't pipe the output to /dev/

Re: r289919 - Remove "-disable-llvm-optzns -verify" from the RUN line.

2016-12-15 Thread Nico Weber via cfe-commits
On Fri, Dec 16, 2016 at 12:45 AM, Akira Hatanaka wrote: > It looks like it failed again. I’m still looking. > Well, the bot needs to run once with my change in. In that run, the .ll file is still around and the tests will still fail, but the .cpp test will remove it. On the first build _after_ m

Re: r289787 - Re-commit r289252 and r289285, and fix PR31374

2016-12-15 Thread Nico Weber via cfe-commits
Thanks! The test now also includes a regression test for PR31374, yes? On Thu, Dec 15, 2016 at 3:09 AM, Yaxun Liu via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: yaxunl > Date: Thu Dec 15 02:09:08 2016 > New Revision: 289787 > > URL: http://llvm.org/viewvc/llvm-project?rev=289787&v

Re: [PATCH] D27858: Default to standalone debug info on Windows

2016-12-16 Thread Nico Weber via cfe-commits
Won't that make is_win_fastlink builds slow to link? And if we do this, then this change here makes a then-not-very-tested config the default. (I don't have a problem with this patch, go ahead and land if you think it's the way to go. Just wondering aloud.) On Fri, Dec 16, 2016 at 4:39 PM, Reid K

Re: [PATCH] D27827: [ObjC] CodeGen support for @available on macOS

2016-12-16 Thread Nico Weber via cfe-commits
https://developer.apple.com/library/content/releasenotes/General/CarbonCoreDeprecations/index.html#//apple_ref/doc/uid/TP40012224-CH1-SW16 explicitly suggests sysctl as replacement when targeting 10.8+, which strongly suggests that it'll work. On Fri, Dec 16, 2016 at 4:37 PM, Erik Pilkington via P

Re: [PATCH] D27123: Add AVR target and toolchain to Clang

2016-12-21 Thread Nico Weber via cfe-commits
On Wed, Dec 21, 2016 at 6:42 AM, Senthil Kumar Selvaraj via Phabricator via cfe-commits wrote: > saaadhu added a comment. > > Would someone with a llvm bugzilla account please file the PR for me? New > user registration is disabled, and I've been waiting for > llvm-ad...@lists.llvm.org to respond

r290930 - Change clang-format's Chromium JavaScript defaults

2017-01-03 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Jan 3 20:33:36 2017 New Revision: 290930 URL: http://llvm.org/viewvc/llvm-project?rev=290930&view=rev Log: Change clang-format's Chromium JavaScript defaults Chromium is starting to use clang-format on more JavaScript. In doing this, we discovered that our defaults were n

Re: r278483 - This patch implements PR#22821.

2016-08-22 Thread Nico Weber via cfe-commits
I don't see any approval after Aaron's "Please wait until someone has had the chance to review before committing" on https://reviews.llvm.org/D20561 -- was this reviewed on IRC? On Fri, Aug 12, 2016 at 4:04 AM, Roger Ferrer Ibanez via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rog

[PATCH] D23805: clang-cl: Make /Brepro actually work.

2016-08-23 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: majnemer. thakis added a subscriber: cfe-commits. /Brepro means we want reproducible builds, i.e. we _don't_ want the timestamp that's needed to be compatible with the incremental linker. https://reviews.llvm.org/D23805 Files: include/cla

[PATCH] D23807: clang-cl: Accept MSVC 2015's `/source-charset:utf-8` flag.

2016-08-23 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. clang already treats all inputs as utf-8. Warn if anything but utf-8 is passed. Do this by mapping source-charset to finput-charset, which already behaves like this. Slightly tweak finput-charset

Re: [PATCH] D23807: clang-cl: Accept MSVC 2015's `/source-charset:utf-8` flag.

2016-08-23 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. 279531, thanks! https://reviews.llvm.org/D23807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r279531 - clang-cl: Accept MSVC 2015's `/source-charset:utf-8` flag.

2016-08-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 23 11:47:09 2016 New Revision: 279531 URL: http://llvm.org/viewvc/llvm-project?rev=279531&view=rev Log: clang-cl: Accept MSVC 2015's `/source-charset:utf-8` flag. clang already treats all inputs as utf-8. Warn if anything but utf-8 is passed. Do this by mapping source-

Re: r278483 - This patch implements PR#22821.

2016-08-23 Thread Nico Weber via cfe-commits
Ok, thanks! On Tue, Aug 23, 2016 at 4:11 AM, Roger Ferrer Ibanez < roger.ferreriba...@arm.com> wrote: > Yes it was approved on IRC by Aaron Ballman: > > > > T 1470758009 zygoloid: do you have any further thoughts about > https://reviews.llvm.org/D20561 ? thank you very much :) > > T 1470758207

r279555 - clang-cl: Make /Brepro actually work.

2016-08-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 23 14:32:02 2016 New Revision: 279555 URL: http://llvm.org/viewvc/llvm-project?rev=279555&view=rev Log: clang-cl: Make /Brepro actually work. /Brepro means we want reproducible builds, i.e. we _don't_ want the timestamp that's needed to be compatible with the incrementa

Re: [PATCH] D23805: clang-cl: Make /Brepro actually work.

2016-08-23 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. 279555, thanks! https://reviews.llvm.org/D23805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r279558 - Remove two dos line endings.

2016-08-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 23 14:59:55 2016 New Revision: 279558 URL: http://llvm.org/viewvc/llvm-project?rev=279558&view=rev Log: Remove two dos line endings. Modified: cfe/trunk/lib/Parse/ParseDeclCXX.cpp Modified: cfe/trunk/lib/Parse/ParseDeclCXX.cpp URL: http://llvm.org/viewvc/llvm-proj

r279639 - fix typo "varaible"

2016-08-24 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Aug 24 11:37:21 2016 New Revision: 279639 URL: http://llvm.org/viewvc/llvm-project?rev=279639&view=rev Log: fix typo "varaible" Modified: cfe/trunk/test/SemaCXX/warn-range-loop-analysis.cpp Modified: cfe/trunk/test/SemaCXX/warn-range-loop-analysis.cpp URL: http://llvm

Re: [PATCH] D23816: clang-cl: Add support for /FC: absolute paths in diagnostics and __FILE__

2016-08-25 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: include/clang/Driver/CLCompatOptions.td:68 @@ +67,3 @@ +def _SLASH_FC : CLFlag<"FC">, + HelpText<"Use absolute paths in diagnostics and __FILE__">, + Alias; Hm, I'm not sure this should affect __FILE__. It sounds people

Re: [PATCH] D23816: clang-cl: Add support for /FC: absolute paths in diagnostics and __FILE__

2016-08-25 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: include/clang/Driver/CLCompatOptions.td:68 @@ +67,3 @@ +def _SLASH_FC : CLFlag<"FC">, + HelpText<"Use absolute paths in diagnostics and __FILE__">, + Alias; hans wrote: > thakis wrote: > > Hm, I'm not sure this should af

Re: [PATCH] D23816: clang-cl: Add support for /FC: absolute paths in diagnostics and __FILE__

2016-08-25 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: include/clang/Driver/CLCompatOptions.td:68 @@ +67,3 @@ +def _SLASH_FC : CLFlag<"FC">, + HelpText<"Use absolute paths in diagnostics and __FILE__">, + Alias; hans wrote: > thakis wrote: > > hans wrote: > > > thakis wrote:

Re: [PATCH] D23816: Add support for -fdiagnostics-abs-path: printing absolute paths in diagnostics

2016-08-25 Thread Nico Weber via cfe-commits
thakis accepted this revision. thakis added a comment. This revision is now accepted and ready to land. I like this approach. https://reviews.llvm.org/D23816 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-25 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rnk. thakis added a subscriber: cfe-commits. Some Windows SDK classes, for example Windows::Storage::Streams::IBufferByteAccess, use the ATL way of spelling attributes: [uuid("")] class IBufferByteAccess {}; To be able to use __uuido

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-25 Thread Nico Weber via cfe-commits
thakis marked an inline comment as done. thakis added a comment. Thanks for the fast review and the good comments! I'll leave it to y'all to agree on some name if you don't like the one I picked. > Also, doesn't this introduce ambiguities into the grammar? Something like > this: > > void u

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-25 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 69312. thakis marked an inline comment as done. thakis added a comment. comments round 1 https://reviews.llvm.org/D23895 Files: include/clang/Basic/Attr.td include/clang/Basic/Attributes.h include/clang/Parse/Parser.h include/clang/Sema/AttributeList

[PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. Like https://reviews.llvm.org/D23807, but for execution-charset. https://reviews.llvm.org/D23938 Files: include/clang/Driver/CLCompatOptions.td lib/Driver/Tools.cpp test/Driver/cl-options.c

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 69415. thakis added a comment. ;-; https://reviews.llvm.org/D23938 Files: include/clang/Driver/CLCompatOptions.td lib/Driver/Tools.cpp test/Driver/cl-options.c Index: test/Driver/cl-options.c ===

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 69416. thakis added a comment. !! https://reviews.llvm.org/D23938 Files: include/clang/Driver/CLCompatOptions.td lib/Driver/Tools.cpp test/Driver/cl-options.c Index: test/Driver/cl-options.c

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-26 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 69419. thakis added a comment. Aaron's right that these are currently called "Microsoft" in the source. I agree that that's a confusing name and we should probably rename it, but on second thought that seems unrelated to this change. If y'all agree on a name,

[PATCH] D23934: Add a -ffixed-date-time= flag that sets the initial value of __DATE__, __TIME__, __TIMESTAMP__

2016-08-26 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rsmith. thakis added a subscriber: cfe-commits. This is useful for creating reproducible builds. Defining these via -D triggers warnings, and can cause bugs (presently, e.g. PR29119). It makes it also impossible to override __DATE__ and __TI

r279866 - clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Aug 26 16:11:43 2016 New Revision: 279866 URL: http://llvm.org/viewvc/llvm-project?rev=279866&view=rev Log: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag. Also makes -fexec-charset accept utf-8 case-insensitively. Like https://reviews.llvm.org/D23807, but for

Re: [PATCH] D23938: clang-cl: Accept MSVC 2015's `/execution-charset:utf-8` flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis marked an inline comment as done. thakis added a comment. r279866, thanks! https://reviews.llvm.org/D23938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

r279869 - clang-cl: Accept MSVC2015's '/utf-8' flag.

2016-08-26 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Aug 26 16:26:29 2016 New Revision: 279869 URL: http://llvm.org/viewvc/llvm-project?rev=279869&view=rev Log: clang-cl: Accept MSVC2015's '/utf-8' flag. Clang always behaves as if that's passed, so just ignore the flag. Modified: cfe/trunk/include/clang/Driver/CLCompatOp

[PATCH] D23945: clang-cl: Support MSVC2015's /validate-charset flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. Clang always assumes that files are utf-8. If an invalidly encoded character is used in an identifier, clang always errors. If it's used in a character literal, clang warns Winvalid-source-encodi

r279872 - clang-cl: Support MSVC2015's /validate-charset flag.

2016-08-26 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Aug 26 16:51:14 2016 New Revision: 279872 URL: http://llvm.org/viewvc/llvm-project?rev=279872&view=rev Log: clang-cl: Support MSVC2015's /validate-charset flag. Clang always assumes that files are utf-8. If an invalidly encoded character is used in an identifier, clang alwa

Re: [PATCH] D23945: clang-cl: Support MSVC2015's /validate-charset flag.

2016-08-26 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. r279872, thanks! https://reviews.llvm.org/D23945 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-29 Thread Nico Weber via cfe-commits
thakis added a comment. rnk: ping https://reviews.llvm.org/D23895 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r280091 - Revert r280035 (and followups r280057, r280085), it caused PR30195

2016-08-30 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 30 09:12:06 2016 New Revision: 280091 URL: http://llvm.org/viewvc/llvm-project?rev=280091&view=rev Log: Revert r280035 (and followups r280057, r280085), it caused PR30195 Removed: cfe/trunk/test/Driver/modules-ts.cpp Modified: cfe/trunk/include/clang/Driver/CC1O

r280094 - Fix typo in comment

2016-08-30 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Aug 30 09:24:28 2016 New Revision: 280094 URL: http://llvm.org/viewvc/llvm-project?rev=280094&view=rev Log: Fix typo in comment Modified: cfe/trunk/test/Driver/cl-pch.cpp Modified: cfe/trunk/test/Driver/cl-pch.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tes

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-30 Thread Nico Weber via cfe-commits
thakis marked 3 inline comments as done. thakis added a comment. > There are things missing from this patch as well. To wit: > > - Attributes.h needs to know about this attribute syntax, and > `hasAttribute()` needs to support it (this hooks into `__has_attribute` > support). > - AttributeLi

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-08-30 Thread Nico Weber via cfe-commits
thakis marked 2 inline comments as done. thakis added a comment. (Just wanted to ask if I'm missing something about these three bullets. I do need to make a few other changes: More tests, parsing for uuid(1-2-3) without quotes + tests, and I also want to add a deprecation warning with a fixit,

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-01 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 70013. thakis marked an inline comment as done. thakis added a comment. Sorry about the delay! Now with custom parsing code that accepts uuid() without quotes. I thought this would be complicated, but ended up being not so bad in the end. See the tests for se

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-01 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 70036. thakis marked 6 inline comments as done. thakis added a comment. Address comments. https://reviews.llvm.org/D23895 Files: include/clang/Basic/Attr.td include/clang/Basic/Attributes.h include/clang/Parse/Parser.h include/clang/Sema/AttributeLis

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-01 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: include/clang/Parse/Parser.h:2217 @@ -2215,1 +2216,3 @@ + SourceLocation UuidLoc, + ParsedAttributes &attrs); void ParseMicrosoftAttributes(ParsedAttributes &at

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-01 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Parse/ParseDeclCXX.cpp:4031 @@ +4030,3 @@ + ConsumeToken(); + if (Name->getName() == "uuid" && Tok.is(tok::l_paren)) +ParseMicrosoftUuidAttributeArgs(Name, Loc, attrs); aaron.ballman wrote: > Silently

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-01 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: include/clang/Basic/Attr.td:201 @@ -200,2 +200,3 @@ class Declspec : Spelling; +class Microsoft : Spelling; class CXX11 rsmith wrote: > Given that MS have deprecated this syntax and are trying to move away from it > tow

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-01 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Parse/ParseDeclCXX.cpp:4031 @@ +4030,3 @@ + ConsumeToken(); + if (Name->getName() == "uuid" && Tok.is(tok::l_paren)) +ParseMicrosoftUuidAttributeArgs(Name, Loc, attrs); aaron.ballman wrote: > thakis w

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-01 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Parse/ParseDeclCXX.cpp:4031 @@ +4030,3 @@ + ConsumeToken(); + if (Name->getName() == "uuid" && Tok.is(tok::l_paren)) +ParseMicrosoftUuidAttributeArgs(Name, Loc, attrs); aaron.ballman wrote: > thakis w

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-02 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 70197. thakis added a comment. Require '('. https://reviews.llvm.org/D23895 Files: include/clang/Basic/Attr.td include/clang/Basic/Attributes.h include/clang/Parse/Parser.h include/clang/Sema/AttributeList.h lib/Parse/ParseDecl.cpp lib/Parse/Pars

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-02 Thread Nico Weber via cfe-commits
thakis marked an inline comment as done. Comment at: lib/Parse/ParseDeclCXX.cpp:4037 @@ -3945,1 +4036,3 @@ +} + T.consumeClose(); Aha, I had forgotten that SkipUntil() handles paren nesting intelligently, so I think just requiring a '(' after 'uuid' with

r280572 - Remove function name from comment.

2016-09-02 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 2 21:41:17 2016 New Revision: 280572 URL: http://llvm.org/viewvc/llvm-project?rev=280572&view=rev Log: Remove function name from comment. The comment starting with "ParseDeclarationOrFunctionDefinition -" is above a function called ParseDeclOrFunctionDefInternal. Fix

r280574 - Move calls of MaybeParseMicrosoftAttributes() before ParseExternalDeclaration()

2016-09-02 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 2 21:48:03 2016 New Revision: 280574 URL: http://llvm.org/viewvc/llvm-project?rev=280574&view=rev Log: Move calls of MaybeParseMicrosoftAttributes() before ParseExternalDeclaration() into ParseDeclOrFunctionDefInternal() (which is called by MaybeParseMicrosoftAttributes

r280575 - Add plumbing for new attribute type "Microsoft".

2016-09-02 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 2 21:55:10 2016 New Revision: 280575 URL: http://llvm.org/viewvc/llvm-project?rev=280575&view=rev Log: Add plumbing for new attribute type "Microsoft". This is for attributes in []-delimited lists preceding a class, like e.g. `[uuid("...")] class Foo {};` Not used by

r280576 - Let Microsoft attributes apply to the type, not the variable.

2016-09-02 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 2 22:01:32 2016 New Revision: 280576 URL: http://llvm.org/viewvc/llvm-project?rev=280576&view=rev Log: Let Microsoft attributes apply to the type, not the variable. There was already a function that moved attributes off the declspec into an attribute list for attribute

r280578 - [ms] Add support for parsing uuid as a Microsoft attribute.

2016-09-02 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 2 22:25:22 2016 New Revision: 280578 URL: http://llvm.org/viewvc/llvm-project?rev=280578&view=rev Log: [ms] Add support for parsing uuid as a Microsoft attribute. Some Windows SDK classes, for example Windows::Storage::Streams::IBufferByteAccess, use the ATL way of spe

Re: [PATCH] D23895: [ms] Add support for parsing uuid as a MS attribute

2016-09-02 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis marked an inline comment as done. thakis added a comment. Thanks! Landed in r280574 r280575 r280576 280578. https://reviews.llvm.org/D23895 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

r280580 - Add a test Aaron asked for that I forgot to add before landing r280578.

2016-09-02 Thread Nico Weber via cfe-commits
Author: nico Date: Fri Sep 2 23:27:14 2016 New Revision: 280580 URL: http://llvm.org/viewvc/llvm-project?rev=280580&view=rev Log: Add a test Aaron asked for that I forgot to add before landing r280578. Modified: cfe/trunk/test/Parser/ms-square-bracket-attributes.mm Modified: cfe/trunk/test/

Re: r280597 - [AVX-512] Remove masked integer mullo builtins and replace with native IR.

2016-09-05 Thread Nico Weber via cfe-commits
Renato, I remember you saying you worked around the bot problem by making the build dir a symlink. Maybe stuff gets confused by that setup? Symlink build dirs tend to cause trouble. On Sep 5, 2016 8:11 PM, "Craig Topper via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > This error makes even

Re: [PATCH] D24286: Add MS __nop intrinsic to intrin.h

2016-09-07 Thread Nico Weber via cfe-commits
thakis accepted this revision. thakis added a comment. This revision is now accepted and ready to land. Looks great, thanks! https://reviews.llvm.org/D24286 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

r280845 - Add a few more test for []-style uuid attributes.

2016-09-07 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Sep 7 14:41:35 2016 New Revision: 280845 URL: http://llvm.org/viewvc/llvm-project?rev=280845&view=rev Log: Add a few more test for []-style uuid attributes. - Should diag on a function (clang-cl warns; it's an error in cl) - Test the attribute on nested classes (clang-cl i

Re: [PATCH] D24289: Add warning when assigning enums to bitfields without an explicit unsigned underlying type

2016-09-08 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2962 @@ -2959,1 +2961,3 @@ + "the enum %0 an unsigned underlying type">, + InGroup>, DefaultIgnore; def warn_attribute_packed_for_bitfield : Warning< Hm, isn't the more safe de

r281136 - Add missing test coverage for an inheritance model attrib merge diag.

2016-09-10 Thread Nico Weber via cfe-commits
Author: nico Date: Sat Sep 10 08:03:59 2016 New Revision: 281136 URL: http://llvm.org/viewvc/llvm-project?rev=281136&view=rev Log: Add missing test coverage for an inheritance model attrib merge diag. Without this, no tests fail if I remove the Diag() in the first if in Sema::mergeMSInheritanceAt

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-09-10 Thread Nico Weber via cfe-commits
The current status is that this is too slow, so for now the recommendation is to have a case insensitive mount for the files that need it. On Sep 9, 2016 8:18 PM, "John Sheu" wrote: > sheu added a subscriber: sheu. > sheu added a comment. > > I'd be very interested in seeing this patch happen.

[PATCH] D24469: [clang-cl] Diagnose duplicate uuids.

2016-09-12 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rnk. thakis added subscribers: cfe-commits, aaron.ballman. This mostly behaves cl.exe's behavior, even though clang-cl is stricter in some corner cases and more lenient in others (see the included test). To make the `uuid declared previously

Re: [PATCH] D24469: [clang-cl] Diagnose duplicate uuids.

2016-09-12 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 71049. thakis added a comment. Remove local XXXs I've since addressed. https://reviews.llvm.org/D24469 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/AttributeList.h include/clang/Sema/Sema.h lib/Parse/ParseDecl.cpp lib/Sema/S

Re: [PATCH] D24469: [clang-cl] Diagnose duplicate uuids.

2016-09-12 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 71050. thakis added a comment. On conflict, keep first uuid in ast instead of having different uuids on different redeclarations. https://reviews.llvm.org/D24469 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/AttributeList.h incl

r281345 - Traversing template paramter lists of DeclaratorDecls and/or TagDecls.

2016-09-13 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 13 10:05:04 2016 New Revision: 281345 URL: http://llvm.org/viewvc/llvm-project?rev=281345&view=rev Log: Traversing template paramter lists of DeclaratorDecls and/or TagDecls. The unit tests in this patch demonstrate the need to traverse template parameter lists of Decla

Re: [PATCH] D24268: Traversing template paramter lists of DeclaratorDecls and/or TagDecls.

2016-09-13 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. landed in r281345. https://reviews.llvm.org/D24268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D24469: [clang-cl] Diagnose duplicate uuids.

2016-09-13 Thread Nico Weber via cfe-commits
thakis marked 2 inline comments as done. thakis added a comment. In https://reviews.llvm.org/D24469#540400, @majnemer wrote: > Does __uuidof walk bases to find [uuid] in cl.exe? They walk bases for the > __declspec spelling. As far as I can tell, they don't for either: C:\src\chrome\src>type

Re: [PATCH] D24469: [clang-cl] Diagnose duplicate uuids.

2016-09-13 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 71181. thakis added a comment. comments https://reviews.llvm.org/D24469 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/AttributeList.h include/clang/Sema/Sema.h lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDecl

r281367 - [clang-cl] Diagnose duplicate uuids.

2016-09-13 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 13 13:55:26 2016 New Revision: 281367 URL: http://llvm.org/viewvc/llvm-project?rev=281367&view=rev Log: [clang-cl] Diagnose duplicate uuids. This mostly behaves cl.exe's behavior, even though clang-cl is stricter in some corner cases and more lenient in others (see the

<    4   5   6   7   8   9   10   11   12   13   >