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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to