Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
f0fdefc13a58db2a8b32bb47ac23bc16efad6fda
/
test
/
SemaCXX
/
linkage.cpp
750dc2b
Change linkage computation so it doesn't depend on FunctionDecl::isExternC or VarDecl::isExternC, and instead queries what it actually cares about: whether the given declaration is inside an extern "C" context. Fundamentally, figuring out whether a function/variable uses C linkage requires knowing the linkage, and the logic in FunctionDecl::isExternC and VarDecl::isExternC was getting it wrong. Given that, fix FunctionDecl::isExternC and VarDecl::isExternC to use much simpler implementations that depend on the fixed linkage computation.
by Eli Friedman
· 13 years ago
dd9d645
Progress towards making isUsed() reflect whether a declaration is odr-used; don't set isUsed for local variables which are referenced in unevaluated contexts. Make other code use isReferenced() (which basically indicates that a declaration isn't dead) where appropriate.
by Eli Friedman
· 13 years ago
10aad44
Fix the rest of PR9316 along with some other bugs spotted by inspection.
by Chandler Carruth
· 14 years ago
094b643
Likely fix for PR9316 and other unknown bugs: don't use the anonynmous
by Chandler Carruth
· 14 years ago
af8ca37
Move the check that gives functions with unique-external types unique-external
by John McCall
· 14 years ago
f9536f4
Test case accidentally left out of my last commit.
by John McCall
· 14 years ago