steveire added a comment.
FYI, CMake target property `INTERFACE_SOURCES` is designed to make this easy.
For each module you would generate a file containing
extern volatile int ${MODULE_NAME}ModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED ${MODULE_NAME}ModuleAnchorDestination =
${
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
Thanks, LG.
You probably may want to wait a bit (a day?) in case others want to comment.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55595/new/
https://reviews.llvm.org/D555
yvvan updated this revision to Diff 177832.
yvvan marked an inline comment as done.
yvvan added a comment.
Add standard prologue to the new header
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55595/new/
https://reviews.llvm.org/D55595
Files:
clang-tidy/ClangTidyForceLinker.h
clang
lebedev.ri added inline comments.
Comment at: clang-tidy/ClangTidyForceLinker.h:1
+#include "llvm/Support/Compiler.h"
+
Standard prologue missing
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55595/new/
https://reviews.llvm.org/D55595
_
yvvan updated this revision to Diff 177829.
yvvan retitled this revision from "Add missing bugprone checks to clang-tidy
plugin" to "Share the forced linking code between clang-tidy tool and plugin".
yvvan edited the summary of this revision.
Herald added a subscriber: srhines.
CHANGES SINCE LAST