[all-commits] [llvm/llvm-project] da168d: [clang] Allow clang-check to customize analyzer ou...

Kirill Bobyrev via All-commits all-commits at lists.llvm.org
Mon Nov 15 07:49:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da168dd875bf0392e8e88834009d776bfbaae376
      https://github.com/llvm/llvm-project/commit/da168dd875bf0392e8e88834009d776bfbaae376
  Author: Ella Ma <alansnape3058 at gmail.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    A clang/test/Tooling/clang-check-set-analyzer-output-path.cpp
    M clang/tools/clang-check/ClangCheck.cpp

  Log Message:
  -----------
  [clang] Allow clang-check to customize analyzer output file or dir name

Required by https://stackoverflow.com/questions/58073606

As the output argument is stripped out in the clang-check tool, it seems impossible for clang-check users to customize the output file name, even with -extra-args and -extra-arg-before.

This patch adds the -analyzer-output-path argument to allow users to adjust the output name. And if the argument is not set or the analyzer is not enabled, the original strip output adjuster will remove the output arguments.

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




More information about the All-commits mailing list