diff options
author | Zixu Wang <zixu_wang@apple.com> | 2022-02-10 13:42:35 -0800 |
---|---|---|
committer | Zixu Wang <zixu_wang@apple.com> | 2022-03-16 15:13:55 -0700 |
commit | 5aab45f430669d7d2af51386819d071b26c3c89c (patch) | |
tree | 5a94b9543831365d3ce7f4bf8b0771a6eda77328 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 07b176646134c3d88a4cecef5e0058e2de6b2409 (diff) | |
download | llvm-5aab45f430669d7d2af51386819d071b26c3c89c.zip llvm-5aab45f430669d7d2af51386819d071b26c3c89c.tar.gz llvm-5aab45f430669d7d2af51386819d071b26c3c89c.tar.bz2 |
[clang][extract-api] Add global record support
Add facilities for extract-api:
- Structs/classes to hold collected API information: `APIRecord`, `API`
- Structs/classes for API information:
- `AvailabilityInfo`: aggregated availbility information
- `DeclarationFragments`: declaration fragments
- `DeclarationFragmentsBuilder`: helper class to build declaration
fragments for various types/declarations
- `FunctionSignature`: function signature
- Serialization: `Serializer`
- Add output file for `ExtractAPIAction`
- Refactor `clang::RawComment::getFormattedText` to provide an
additional `getFormattedLines` for a more detailed view of comment lines
used for the SymbolGraph format
Add support for global records (global variables and functions)
- Add `GlobalRecord` based on `APIRecord` to store global records'
information
- Implement `VisitVarDecl` and `VisitFunctionDecl` in `ExtractAPIVisitor` to
collect information
- Implement serialization for global records
- Add test case for global records
Differential Revision: https://reviews.llvm.org/D119479
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r-- | clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 8a8a137..dcc20a5 100644 --- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -25,6 +25,7 @@ #include "clang/Rewrite/Frontend/FrontendActions.h" #include "clang/StaticAnalyzer/Frontend/AnalyzerHelpFlags.h" #include "clang/StaticAnalyzer/Frontend/FrontendActions.h" +#include "clang/SymbolGraph/FrontendActions.h" #include "llvm/Option/OptTable.h" #include "llvm/Option/Option.h" #include "llvm/Support/BuryPointer.h" |