summaryrefslogtreecommitdiff
path: root/clang/test/ExtractAPI/struct.c
AgeCommit message (Collapse)Author
2024-04-03Reenable external categories (#87357)Daniel Grumberg
Reenables b31414bf4f9898f7817a9fcf8a91f62ec26f3eaf. Also adds a new warning for missing `--symbol-graph-dir` arg when `--emit-extension-symbol-graphs` is provided. This also reverts the commit that removed.
2024-04-02Revert "[clang][ExtractAPI] Add ability to create multiple symbol graphs ↵Daniel Grumberg
(#86676)" This failed the test suite due to missing DiagGroup for a new warning. This reverts commit b31414bf4f9898f7817a9fcf8a91f62ec26f3eaf.
2024-04-02[clang][ExtractAPI] Add ability to create multiple symbol graphs (#86676)Daniel Grumberg
This extends ExtractAPI to take into account symbols defined in categories to types defined in an external module. This introduces 2 new command line flags, `--symbol-graph-dir=DIR` and `--emit-extension-symbol-graphs`, when used together this generates additional symbol graph files at `DIR/ExtendedModule@ProductName.symbols.json` for each external module that is extended in this way. Additionally this makes some cleanups to tests to make them more resilient and cleans up the `APISet` data structure.
2023-11-14ExtractAPI: use zero-based indices for line/column in symbol graph (#71753)QuietMisdreavus
Other implementations of the symbol graph format use zero-based indices for source locations, which causes problems when combined with clang's current one-based indices. This commit sets ExtractAPI's symbol graph output to use zero-based indices to align with other implementations. rdar://107639783
2023-07-31[clang][ExtractAPI] Add semicolons to vars and fields and to test reference JSONErick Velez
Differential Revision: https://reviews.llvm.org/D154038
2023-03-20[clang][ExtractAPI] Add semicolons for enum, typedef, struct declaration ↵NagaChaitanya Vellanki
fragments Fixes https://github.com/llvm/llvm-project/issues/61480 Reviewed By: dang Differential Revision: https://reviews.llvm.org/D146354
2022-11-07Revert "Only add targetFallback if target is not in defined in current product"Daniel Grumberg
This was an accidental addition of a non-reviewed change. This reverts commit f63db9159bbbb0db98e13cb4440fdaa5c40e219b.
2022-11-07Only add targetFallback if target is not in defined in current productDaniel Grumberg
2022-11-07[clang][ExtractAPI] Add targetFallback to relationships in symbol graphDaniel Grumberg
Adds a 'targetFallback' field to relationships in symbol graph that contains the plain name of the relationship target. This is useful for clients when the relationship target symbol is not available. Differential Revision: https://reviews.llvm.org/D136455
2022-04-12[clang][ExtractAPI][NFC] Fix sed delimiter in testZixu Wang
Fix path replacement in sed (properly this time) using lit regex_replacement. Differential Revision: https://reviews.llvm.org/D123526 Co-authored-by: Michele Scandale <michele.scandale@gmail.com> Co-authored-by: Zixu Wang <9819235+zixu-w@users.noreply.github.com>
2022-04-08[clang][extract-api] Emit "navigator" property of "name" in SymbolGraphDaniel Grumberg
Differential Revision: https://reviews.llvm.org/D123391
2022-04-06[clang][extract-api] Fix small issues with SymbolGraphSerializerDaniel Grumberg
This includes: - replacing "relationhips" with "relationships" - emitting the "pathComponents" property on symbols - emitting the "accessLevel" property on symbols Differential Revision: https://reviews.llvm.org/D123045
2022-03-23[clang][extract-api] Add struct supportZixu Wang
- Add `StructFieldRecord` and `StructRecord` to store API information for structs - Implement `VisitRecordDecl` in `ExtractAPIVisitor` - Implement Symbol Graph serialization for struct records. - Add test case for struct records. Depends on D121873 Differential Revision: https://reviews.llvm.org/D122202