Issue 61482
Summary [clang][ExtractAPI] Declaration fragments for TagDecl types defined in a typedef is incomplete
Labels good first issue, clang:tooling
Assignees
Reporter daniel-grumberg
    enums and structs declared inside typedefs have incorrect declaration fragments, where the typedef keyword and other syntax is missing.

For the following struct:

```obj-c
typedef struct Test {
    int hello;
} Test;
```

The produced declaration is:

```json
"declarationFragments": [
  {
    "kind": "keyword",
    "spelling": "struct"
  },
  {
    "kind": "text",
    "spelling": " "
  },
  {
    "kind": "identifier",
    "spelling": "Test"
  }
],
```

instead the declaration fragments should represent the following
```obj-c
typedef struct Test {
    …
} Test;
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to