Skip to content

Commit

Permalink
[clang][NFC] Fix leftovers from LinkageSpecDecl::LanguageIDs refact…
Browse files Browse the repository at this point in the history
…oring

This fixes bot failure https://lab.llvm.org/buildbot/#/builders/139/builds/52622 introduced by 6576120
  • Loading branch information
Endilll committed Nov 1, 2023
1 parent c7f0e49 commit 008af1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ExternCRefutationVisitor
bool shouldVisitLambdaBody() const { return false; }

bool VisitLinkageSpecDecl(LinkageSpecDecl *LinkSpecDecl) const {
if (LinkSpecDecl->getLanguage() != LinkageSpecDecl::lang_c ||
if (LinkSpecDecl->getLanguage() != LinkageSpecLanguageIDs::C ||
!LinkSpecDecl->hasBraces())
return true;

Expand Down
4 changes: 2 additions & 2 deletions clang-tools-extra/modularize/Modularize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,10 @@ class CollectEntitiesVisitor
SourceRange BlockRange = D->getSourceRange();
const char *LinkageLabel;
switch (D->getLanguage()) {
case LinkageSpecDecl::lang_c:
case LinkageSpecLanguageIDs::C:
LinkageLabel = "extern \"C\" {}";
break;
case LinkageSpecDecl::lang_cxx:
case LinkageSpecLanguageIDs::CXX:
LinkageLabel = "extern \"C++\" {}";
break;
}
Expand Down

0 comments on commit 008af1c

Please sign in to comment.