[all-commits] [llvm/llvm-project] 523cae: [libTooling] Add option for `buildAST` to report d...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Tue Feb 18 06:13:48 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 523cae324d79d2e532d2be797058a94e8214ec45
      https://github.com/llvm/llvm-project/commit/523cae324d79d2e532d2be797058a94e8214ec45
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2020-02-18 (Tue, 18 Feb 2020)

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

  Log Message:
  -----------
  [libTooling] Add option for `buildAST` to report diagnostics.

Summary:
Currently, `buildAST[WithArgs]` either succeeds or fails.  This patch adds
support for the caller to pass a `DiagnosticConsumer` to receive all relevant
diagnostics.

Reviewers: gribozavr

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list