[clang-tidy][NFC] Update path of main translation unit
authorJens Carl <jenne@jens-carl.de>
Tue, 18 Jul 2023 15:48:22 +0000 (15:48 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Tue, 18 Jul 2023 15:49:01 +0000 (15:49 +0000)
The forcing of the linker for a new module was moved from file
clang-tidy/tools/ClangTidyModule.cpp to
clang-tidy/ClangTidyForceLinker.h.

Reviewed By: PiotrZSL

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

clang-tools-extra/docs/clang-tidy/Contributing.rst

index c4b9392..92074bd 100644 (file)
@@ -475,7 +475,7 @@ Add this near the ``ClangTidyModuleRegistry::Add<MyModule>`` variable:
 
 And this to the main translation unit of the :program:`clang-tidy` binary (or
 the binary you link the ``clang-tidy`` library in)
-``clang-tidy/tool/ClangTidyMain.cpp``:
+``clang-tidy/ClangTidyForceLinker.h``:
 
 .. code-block:: c++