[PATCH] D146323: inline stmt attribute diagnosing in templates
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 17 12:10:54 PDT 2023
erichkeane created this revision.
erichkeane added a reviewer: clang-language-wg.
Herald added a project: All.
erichkeane requested review of this revision.
D146089 <https://reviews.llvm.org/D146089>'s author discovered that our diagnostics for always/no inline
would null-dereference when used in a template. He fixed that by
skipping in the dependent case.
This patch makes sure we diagnose these after a template instantiation.
It also adds infrastructure for other statement attributes to add
checking/transformation.
https://reviews.llvm.org/D146323
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaStmtAttr.cpp
clang/lib/Sema/SemaTemplateInstantiate.cpp
clang/lib/Sema/TreeTransform.h
clang/test/Sema/attr-alwaysinline.cpp
clang/test/Sema/attr-noinline.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146323.506169.patch
Type: text/x-patch
Size: 17202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230317/f7cebaeb/attachment-0001.bin>
More information about the cfe-commits
mailing list