Don't warn on unknown type attributes in Parser::ProhibitCXX11Attributes
for most cases, but left the diagnostic to the later checks.
module declaration and module import declaration are special cases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thank you for the fix! Can you add a release note for it as well?
LGTM aside from a minor nit with some comment wording and a testing suggestion.
clang/test/SemaCXX/warn-once-on-unknown-attr.cpp | ||
---|---|---|
2 | Can you also add this RUN line? // RUN: %clang_cc1 -fsyntax-only -verify -std=c2x -x c %s Then we're verifying that we didn't do anything different for C. |
Comment Actions
Hey Aaron, thanks for your review :) I'm not an expert in C or C++, so I'd appreciate it if you can provide better wording.
Comment Actions
I did some minor changes to the release note, but otherwise LGTM!
clang/docs/ReleaseNotes.rst | ||
---|---|---|
116–117 |