[llvm-bugs] [Bug 46853] New: Can not handle attribute parameters in C++11/C2a style
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jul 25 18:12:45 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46853
Bug ID: 46853
Summary: Can not handle attribute parameters in C++11/C2a style
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: lgamma at 163.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
use Attribute plugin example in clang but let ``NumArgs = 1;``
this input
[[example("foo")]]int foo(void) {
return 1;
}
will output
foo.c: error: 'example' attribute takes one argument
[[example("some_str")]]int add_(int a, int b) {
in gnu style
int bar(void) __attribute__((example("some_attr"))) {
return 1;
}
is ok.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200726/532ff472/attachment.html>
More information about the llvm-bugs
mailing list