[PATCH] D133436: Ground work for cuda-related checks in clang-tidy
Thorsten via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 7 10:17:17 PDT 2022
tschuett added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/cuda/CudaTidyModule.cpp:25
+
+// Register the GoogleTidyModule using this statically initialized variable.
+static ClangTidyModuleRegistry::Add<CudaModule>
----------------
Is Google a copy and paste error?
================
Comment at: clang-tools-extra/clang-tidy/cuda/CudaTidyModule.cpp:32
+// This anchor is used to force the linker to link in the generated object file
+// and thus register the GoogleModule.
+volatile int CudaModuleAnchorSource = 0;
----------------
Is Google a copy and paste error?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133436/new/
https://reviews.llvm.org/D133436
More information about the cfe-commits
mailing list