diff options
| author | ruturaj4 <ruturajkvaidya@ku.edu> | 2023-04-13 13:48:30 +0100 | 
|---|---|---|
| committer | Daniel Grumberg <dgrumberg@apple.com> | 2023-04-13 17:55:45 +0100 | 
| commit | 3ac550984e83c2478772c800b1f1b5cffd63a10d (patch) | |
| tree | c0d77ace173bbe12c03ee83119af5af104095700 /lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp | |
| parent | 1fb24cef40d26d2533b2786b21ec795cb1953133 (diff) | |
| download | llvm-3ac550984e83c2478772c800b1f1b5cffd63a10d.zip llvm-3ac550984e83c2478772c800b1f1b5cffd63a10d.tar.gz llvm-3ac550984e83c2478772c800b1f1b5cffd63a10d.tar.bz2  | |
[clang][ExtractAPI] Complete declaration fragments for TagDecl types defined in a typedef
enums and structs declared inside typedefs have incorrect declaration fragments, where the typedef keyword and other syntax is missing.
For the following struct:
typedef struct Test {
    int hello;
} Test;
The produced declaration is:
"declarationFragments": [
  {
    "kind": "keyword",
    "spelling": "struct"
  },
  {
    "kind": "text",
    "spelling": " "
  },
  {
    "kind": "identifier",
    "spelling": "Test"
  }
],
instead the declaration fragments should represent the following
typedef struct Test {
    …
} Test;
This patch removes the condition in SymbolGraphSerializer.cpp file and completes declaration fragments
Reviewed By: dang
Differential Revision: https://reviews.llvm.org/D146385
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp')
0 files changed, 0 insertions, 0 deletions
