[PATCH] D112334: [clang-tidy] Suppress readability-static-access-through-instance for CUDA built-in variables

Carlos Galvez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 25 10:14:46 PDT 2021


carlosgalvezp updated this revision to Diff 382038.
carlosgalvezp added a comment.

Move CUDA built-in declarations to a separate header, and create a macro to define the variables just like it's done in the real version. Back to named namespace.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112334/new/

https://reviews.llvm.org/D112334

Files:
  clang-tools-extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
  clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-static-accessed-through-instance/__clang_cuda_builtin_vars.h
  clang-tools-extra/test/clang-tidy/checkers/readability-static-accessed-through-instance.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112334.382038.patch
Type: text/x-patch
Size: 3833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211025/80ae5a37/attachment.bin>


More information about the llvm-commits mailing list