User Details
- User Since
- Sep 27 2021, 4:00 AM (103 w, 4 d)
Today
Address comments
Yesterday
I don't plan to work on this any time soon, so I'll abandon it to clean up the review queue.
Wed, Sep 20
Mon, Sep 18
Try to fix CTry to fix CII
Try to fix CI
Try to fix CI
Try to fix CI
Try to fix CI
Try to fix CI
Try to fix CI
Try to fix CI
Sun, Sep 17
Try to fix CI
Abandoning, since it seems like we want to extend diagnose_if instead.
Thu, Sep 14
Rebased
Address comments
Wed, Sep 13
Try to fix CI
Tue, Sep 12
Mon, Sep 11
Try to fix CI
Try to fix CI
Let's land the current stack and move this PR to GitHub.
We're transitioning to GitHub and I think we should have enough time to git this at least as far as it has been, so let's land this and continue reviews on GitHub.
Sun, Sep 10
Address comments
Thu, Sep 7
Tue, Sep 5
I just tried it on my local system and the test passes with both clang and GCC. This strongly indicates that everything works except testing in the docker image. Given that this is purely a CI pro I'm strongly against removing anything here.
Sun, Sep 3
Address comments
Try to fix CI
Sat, Sep 2
Fri, Sep 1
Rebased
Try to fix CI
Address comments
Thu, Aug 31
Is there still interest in pursuing this? If not, could you abandon the patch?
[Github PR transition cleanup]
Is there still interest in pursuing this? If not, could you abandon this?
Since we are moving to GitHub PRs and there hasn't been any activity here yet, could you move this patch over?
[Github PR transition cleanup]
Abandoning for now, since this doesn't seem to be used much in tooling.
Abandoning for now, since this requires some sort of compiler fix to work properly and this won't happen within the next month or so.
Since we are moving to GitHub PRs and there hasn't been any activity here yet, could you move this patch over?
Since we are moving to GitHub PRs and there hasn't been any activity here yet, could you move this patch over?
Could you abandon this, since there is a PR open on GitHub?
Wed, Aug 30
Update ignore_format.txt
Mon, Aug 28
I think we should try to rebase, as @Mordante suggested. If that doesn't help I'd just go for // XFAIL: gcc-13ing the tests for now. If the bug still exists in GCC 13 it would be great if you could try to get a small reproducer and file a bug against GCC.
A moved-from string has an unspecified state, so there is no way to check what actually happened.
Ah sorry, I missed that. I though it depends the char traits. In that case I'm happy with a short explanation in the commit message. Sorry for the churn.
Sat, Aug 26
Shouldn't this be possible to actually test? If not, please add a comment why this change was done.
Fri, Aug 25
Aug 23 2023
Hm, OK. I thought I tried to use it that way at some point and it didn't work in the way I expected.
I don't think we need to introduce a new attribute to do this, we already have diagnose_if. e.g., https://godbolt.org/z/a5ae4T56o would that suffice?
Part of the idea here is that the diagnostics should be part of -Wc++ab-extension.
Hmmm, okay. And I'm assuming -Wsystem-headers -pedantic is too chatty because it's telling the user about all use of extensions, not extensions being introduced by the library itself? (e.g., https://godbolt.org/z/Gs3YGheMM is also not what you're after)
Yeah, for libc++ we don't support -Wsystem-headers in any meaningful way and this doesn't achieve the effect I want.
I guess we could allow warning flags instead of just "warning" and "error" in diagnose_if that specifies which warning group the diagnostic should be part of. Something like __attribute__((__diagnose_if__(__cplusplus >= 201703L, "basic_string_view is a C++17 extension", "-Wc++17-extensions"))). I'm not sure how one could implement that, but I guess there is some mechanism to translate "-Wwhatever" to a warning group, since you can push and pop warnings. That would open people up to add a diagnostic to pretty much any warning group. I don't know if that's a good idea. I don't really see a problem with that other than people writing weird code, but people do that all the time anyways. Maybe I'm missing something really problematic though.
That's actually a pretty interesting idea; diagnose_if could be given another parameter to specify a diagnostic group to associate the diagnostic with. This would let you do some really handy things like:
void func(int i) __attribute__((diagnose_if(i < 0, "passing a negative value to 'func' is deprecated", "warning", "-Wdeprecated")));But if we went this route, would we want to expose other diagnostic-related knobs like "show in system header" and "default to an error"? Also, the attribute currently can only be associated with a function; we can use this for classes by sticking it on a constructor but there's not much help for putting it on say a namespace or an enumeration. So we may need to extend the attribute in other ways. CC @cjdb as this seems of interest to you as well.
Aug 21 2023
I guess, kind-of. I never really understood the semantics of __extension__ though, so I'm not 100% certain.
Aug 19 2023
Aug 18 2023
Looks pretty good, but I'd like to get the ranges::equal optimization in again, since it's probably quite significant.
Address comments
Aug 17 2023
Address comments
- Rebase
- Only add type_visibility("default") to the namespace
Fix formatting
Maybe I'm missing something, but it looks to me like you are disabling too many symbols here.