[clang-tools-extra] 7a48039 - [clang-tidy] Fix compilation of modernize-use-using check

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 26 02:20:35 PST 2023


Author: Piotr Zegar
Date: 2023-12-26T10:20:10Z
New Revision: 7a48039eb79fc887f473e80618b6bc98effea077

URL: https://github.com/llvm/llvm-project/commit/7a48039eb79fc887f473e80618b6bc98effea077
DIFF: https://github.com/llvm/llvm-project/commit/7a48039eb79fc887f473e80618b6bc98effea077.diff

LOG: [clang-tidy] Fix compilation of modernize-use-using check

Fix compilation issue introduced by #69102.

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
index f5fc3ad3fac68b..bb05f206c717ce 100644
--- a/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
@@ -14,7 +14,7 @@ using namespace clang::ast_matchers;
 namespace {
 
 AST_MATCHER(clang::LinkageSpecDecl, isExternCLinkage) {
-  return Node.getLanguage() == clang::LinkageSpecDecl::lang_c;
+  return Node.getLanguage() == clang::LinkageSpecLanguageIDs::C;
 }
 } // namespace
 


        


More information about the cfe-commits mailing list