[all-commits] [llvm/llvm-project] 89f6b2: [clang][extract-api] Refactor ExtractAPI and impro...

Zixu Wang via All-commits all-commits at lists.llvm.org
Tue Mar 22 13:22:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89f6b26f1beb2c1344f5cfeb34e405128544c76b
      https://github.com/llvm/llvm-project/commit/89f6b26f1beb2c1344f5cfeb34e405128544c76b
  Author: Zixu Wang <zixu_wang at apple.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    A clang/include/clang/ExtractAPI/API.h
    A clang/include/clang/ExtractAPI/AvailabilityInfo.h
    A clang/include/clang/ExtractAPI/DeclarationFragments.h
    A clang/include/clang/ExtractAPI/FrontendActions.h
    A clang/include/clang/ExtractAPI/Serialization/SerializerBase.h
    A clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h
    R clang/include/clang/SymbolGraph/API.h
    R clang/include/clang/SymbolGraph/AvailabilityInfo.h
    R clang/include/clang/SymbolGraph/DeclarationFragments.h
    R clang/include/clang/SymbolGraph/FrontendActions.h
    R clang/include/clang/SymbolGraph/Serialization.h
    M clang/lib/CMakeLists.txt
    A clang/lib/ExtractAPI/API.cpp
    A clang/lib/ExtractAPI/CMakeLists.txt
    A clang/lib/ExtractAPI/DeclarationFragments.cpp
    A clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
    A clang/lib/ExtractAPI/Serialization/SerializerBase.cpp
    A clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
    M clang/lib/FrontendTool/CMakeLists.txt
    M clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
    R clang/lib/SymbolGraph/API.cpp
    R clang/lib/SymbolGraph/CMakeLists.txt
    R clang/lib/SymbolGraph/DeclarationFragments.cpp
    R clang/lib/SymbolGraph/ExtractAPIConsumer.cpp
    R clang/lib/SymbolGraph/Serialization.cpp
    A clang/test/ExtractAPI/global_record.c
    R clang/test/SymbolGraph/global_record.c

  Log Message:
  -----------
  [clang][extract-api] Refactor ExtractAPI and improve docs

- The name SymbolGraph is inappropriate and confusing for the new library
  for clang-extract-api. Refactor and rename things to make it clear that
  ExtractAPI is the core functionality and SymbolGraph is one serializer
  for the API information.
- Add documentation comments to ExtractAPI classes and methods to improve
  readability and clearness of the ExtractAPI work.

Differential Revision: https://reviews.llvm.org/D122160




More information about the All-commits mailing list