Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-28 Thread Aaron Ballman via cfe-commits
On Thu, Oct 28, 2021 at 9:55 AM Nico Weber wrote: > > On Mon, Oct 25, 2021 at 9:06 PM Nico Weber wrote: >> >> Looks like the reason for this check was that >> https://github.com/llvm/llvm-project/blob/3b42fc8a07c37e47efae80c931eff7e63103e0e9/clang/include/clang/Basic/Attr.td#L1946 >> contains _

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-28 Thread Nico Weber via cfe-commits
On Mon, Oct 25, 2021 at 9:06 PM Nico Weber wrote: > Looks like the reason for this check was that > https://github.com/llvm/llvm-project/blob/3b42fc8a07c37e47efae80c931eff7e63103e0e9/clang/include/clang/Basic/Attr.td#L1946 > contains __unsafe_unretained despite it just being a macro here: > http:

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-26 Thread Aaron Ballman via cfe-commits
On Mon, Oct 25, 2021 at 8:41 PM Nico Weber wrote: > > Was this reviewed anywhere? Post-commit review (as attribute code owner). > I'll note that some internal project apparently used to check `#if > __has_attribute(__unsafe_unretained)`. That used to silently (and incorrectly > I think) always

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-25 Thread Nico Weber via cfe-commits
Looks like the reason for this check was that https://github.com/llvm/llvm-project/blob/3b42fc8a07c37e47efae80c931eff7e63103e0e9/clang/include/clang/Basic/Attr.td#L1946 contains __unsafe_unretained despite it just being a macro here: http://llvm-cs.pcc.me.uk/tools/clang/lib/Frontend/InitPreprocesso

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-25 Thread Nico Weber via cfe-commits
Was this reviewed anywhere? I'll note that some internal project apparently used to check `#if __has_attribute(__unsafe_unretained)`. That used to silently (and incorrectly I think) always return 0 as far as I can tell, but now it fails with: ``` $ out/gn/bin/clang -c foo.mm foo.mm:1:21: error: m

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-21 Thread Aaron Ballman via cfe-commits
On Mon, Oct 18, 2021 at 4:13 PM Richard Smith wrote: > > On Mon, 18 Oct 2021 at 12:56, Aaron Ballman wrote: >> >> On Mon, Oct 18, 2021 at 3:52 PM Richard Smith wrote: >> > >> > On Mon, 18 Oct 2021 at 12:48, Aaron Ballman >> > wrote: >> >> >> >> On Mon, Oct 18, 2021 at 3:33 PM Richard Smith

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-18 Thread Richard Smith via cfe-commits
On Mon, 18 Oct 2021 at 12:56, Aaron Ballman wrote: > On Mon, Oct 18, 2021 at 3:52 PM Richard Smith > wrote: > > > > On Mon, 18 Oct 2021 at 12:48, Aaron Ballman > wrote: > >> > >> On Mon, Oct 18, 2021 at 3:33 PM Richard Smith > wrote: > >> > > >> > On Sun, 17 Oct 2021 at 04:58, Aaron Ballman v

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-18 Thread Aaron Ballman via cfe-commits
On Mon, Oct 18, 2021 at 3:52 PM Richard Smith wrote: > > On Mon, 18 Oct 2021 at 12:48, Aaron Ballman wrote: >> >> On Mon, Oct 18, 2021 at 3:33 PM Richard Smith wrote: >> > >> > On Sun, 17 Oct 2021 at 04:58, Aaron Ballman via cfe-commits >> > wrote: >> >> >> >> >> >> Author: Aaron Ballman >> >

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-18 Thread Richard Smith via cfe-commits
On Mon, 18 Oct 2021 at 12:48, Aaron Ballman wrote: > On Mon, Oct 18, 2021 at 3:33 PM Richard Smith > wrote: > > > > On Sun, 17 Oct 2021 at 04:58, Aaron Ballman via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> > >> > >> Author: Aaron Ballman > >> Date: 2021-10-17T07:54:48-04:00 > >> N

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-18 Thread Aaron Ballman via cfe-commits
On Mon, Oct 18, 2021 at 3:33 PM Richard Smith wrote: > > On Sun, 17 Oct 2021 at 04:58, Aaron Ballman via cfe-commits > wrote: >> >> >> Author: Aaron Ballman >> Date: 2021-10-17T07:54:48-04:00 >> New Revision: 2edb89c746848c52964537268bf03e7906bf2542 >> >> URL: >> https://github.com/llvm/llvm-pr

Re: [clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-18 Thread Richard Smith via cfe-commits
On Sun, 17 Oct 2021 at 04:58, Aaron Ballman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > Author: Aaron Ballman > Date: 2021-10-17T07:54:48-04:00 > New Revision: 2edb89c746848c52964537268bf03e7906bf2542 > > URL: > https://github.com/llvm/llvm-project/commit/2edb89c746848c52964537268bf03

[clang] 2edb89c - Lex arguments for __has_cpp_attribute and friends as expanded tokens

2021-10-17 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2021-10-17T07:54:48-04:00 New Revision: 2edb89c746848c52964537268bf03e7906bf2542 URL: https://github.com/llvm/llvm-project/commit/2edb89c746848c52964537268bf03e7906bf2542 DIFF: https://github.com/llvm/llvm-project/commit/2edb89c746848c52964537268bf03e7906bf2542.diff