We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9348d43 commit c52a46aCopy full SHA for c52a46a
clang/lib/AST/Decl.cpp
@@ -2200,8 +2200,7 @@ static LanguageLinkage getDeclLanguageLinkage(const T &D) {
2200
2201
// Language linkage is a C++ concept, but saying that everything else in C has
2202
// C language linkage fits the implementation nicely.
2203
- ASTContext &Context = D.getASTContext();
2204
- if (!Context.getLangOpts().CPlusPlus)
+ if (!D.getASTContext().getLangOpts().CPlusPlus)
2205
return CLanguageLinkage;
2206
2207
// C++ [dcl.link]p4: A C language linkage is ignored in determining the
0 commit comments