llvm-capstone/clang/test/ExtractAPI
ruturaj4 3ac550984e [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
2023-04-13 17:55:45 +01:00
..
anonymous_record_no_typedef.c [clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration fragments 2023-03-20 15:43:00 +00:00
availability.c [clang][ExtractAPI] Handle platform specific unavailability correctly 2023-03-02 15:49:46 +00:00
enum.c [clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration fragments 2023-03-20 15:43:00 +00:00
global_record_multifile.c
global_record.c
ignored-symbols-multifile.c [clang][ExtractAPI] Add multiple file support to --extract-api-ignores 2023-03-13 18:05:16 +05:30
ignored-symbols.c [clang][ExtractAPI] Allow users to specify a list of symbols to ignore 2022-10-25 11:46:04 +01:00
known_files_only.c
language.c
macro_undefined.c
macros.c
objc_category.m [ExtractAPI] Remove extra attributes in property declaration fragments 2023-04-04 10:00:34 -07:00
objc_id_protocol.m [ExtractAPI] Remove extra attributes in property declaration fragments 2023-04-04 10:00:34 -07:00
objc_instancetype.m [clang][ExtractAPI]Fix Declaration fragments for instancetype in the type position degrade to id 2023-03-23 15:10:27 -07:00
objc_interface.m [ExtractAPI] Remove extra attributes in property declaration fragments 2023-04-04 10:00:34 -07:00
objc_property.m [ExtractAPI] Remove extra attributes in property declaration fragments 2023-04-04 10:00:34 -07:00
objc_protocol.m Revert "Only add targetFallback if target is not in defined in current product" 2022-11-07 13:33:59 +00:00
relative_include.m
struct.c [clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration fragments 2023-03-20 15:43:00 +00:00
typedef_anonymous_record.c [clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration fragments 2023-03-20 15:43:00 +00:00
typedef_chain.c [clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration fragments 2023-03-20 15:43:00 +00:00
typedef_struct_enum.c [clang][ExtractAPI] Complete declaration fragments for TagDecl types defined in a typedef 2023-04-13 17:55:45 +01:00
typedef.c [clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration fragments 2023-03-20 15:43:00 +00:00
underscored.c [clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration fragments 2023-03-20 15:43:00 +00:00