[PATCH] D124447: [clang-tidy] Add infrastructure support for running on project-level information

Benedek Attila Bahrami via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 26 04:50:14 PDT 2022


bahramib created this revision.
bahramib added reviewers: aaron.ballman, njames93, whisperity, martong.
bahramib added a project: clang-tools-extra.
Herald added subscribers: carlosgalvezp, arphaman, rnkovacs, xazax.hun.
Herald added a project: All.
bahramib requested review of this revision.

This patch adds the necessary infrastructure bindings and overloads that
allow checks to implement collecting and emitting per-TU data to a
directory from which the diagnosis mode can read it and decide whether
to diagnose.

What checks emit and how they transform the data is a per-check
implementation detail.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124447

Files:
  clang-tools-extra/clang-tidy/ClangTidy.cpp
  clang-tools-extra/clang-tidy/ClangTidy.h
  clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
  clang-tools-extra/clang-tidy/ClangTidyCheck.h
  clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
  clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
  clang-tools-extra/clang-tidy/ClangTidyOptions.h
  clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/index.rst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124447.425183.patch
Type: text/x-patch
Size: 23348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220426/b0988415/attachment-0001.bin>


More information about the cfe-commits mailing list