[all-commits] [llvm/llvm-project] e08911: [clang][tooling] Accept custom diagnostic options ...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Fri Sep 10 04:31:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e08911e17b2bf7030a587bbf158e6a4fe0164f38
      https://github.com/llvm/llvm-project/commit/e08911e17b2bf7030a587bbf158e6a4fe0164f38
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

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

  Log Message:
  -----------
  [clang][tooling] Accept custom diagnostic options in ToolInvocation

This patch allows the clients of `ToolInvocation` to provide custom diagnostic options to be used during driver -> cc1 command-line transformation and parsing.

Tests covering this functionality are in a follow-up commit. To make this testable, the `DiagnosticsEngine` needs to be properly initialized via `CompilerInstance::createDiagnostics`.

Reviewed By: dexonsmith, arphaman

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




More information about the All-commits mailing list