[all-commits] [llvm/llvm-project] 29e043: [libclang] Split-out parts of `Index.h`

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Sep 29 11:30:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29e0435ac04957861aa1f85d41291c8b19db0122
      https://github.com/llvm/llvm-project/commit/29e0435ac04957861aa1f85d41291c8b19db0122
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    A clang/include/clang-c/CXDiagnostic.h
    A clang/include/clang-c/CXFile.h
    A clang/include/clang-c/CXSourceLocation.h
    M clang/include/clang-c/Index.h

  Log Message:
  -----------
  [libclang] Split-out parts of `Index.h`

The `Index.h` header defines some functions and data structures that are useful for other (non-indexing) APIs. This patch extracts those into separate headers.

Reviewed By: akyrtzi, benlangmuir

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


  Commit: 13921262cae0e7346e41875c1850d8861be0488e
      https://github.com/llvm/llvm-project/commit/13921262cae0e7346e41875c1850d8861be0488e
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h
    M clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp

  Log Message:
  -----------
  [clang][deps] NFC: Expose more flexible version of `Worker::computeDependencies()`

This patch adds new member function to `DependencyScanningWorker` that allows clients to pass custom `DiagnosticConsumer`, and returns `bool`.

This provides more flexibility compared to the existing version that automatically stringifies diagnostics and returns them in `llvm::Error`.

Reviewed By: benlangmuir

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


Compare: https://github.com/llvm/llvm-project/compare/013012b99a54...13921262cae0


More information about the All-commits mailing list