[PATCH] D96725: [clang-tidy] Fix modernize-use-using in extern C code

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 15 14:14:43 PST 2021


Eugene.Zelenko added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp:19
 
+AST_MATCHER(Decl, isInExternC) {
+  return Node.getDeclContext()->isExternCContext();
----------------
This matcher may be useful for other checks, for example, `modernize-use-nullptr`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96725



More information about the cfe-commits mailing list