diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-13 00:12:11 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-13 00:12:11 +0000 |
| commit | 3ae00052cd260a7ed753ec2e1338d22119d25595 (patch) | |
| tree | d9bc7cf2ffc60eba2f2ccaf8d6c08f5d2a9d908f /clang/lib/StaticAnalyzer/Core/CheckerContext.cpp | |
| parent | 0e4676e1f53b7a463cc4c4e9af87ee91c86d2a62 (diff) | |
| download | bcm5719-llvm-3ae00052cd260a7ed753ec2e1338d22119d25595.tar.gz bcm5719-llvm-3ae00052cd260a7ed753ec2e1338d22119d25595.zip | |
Cleanup handling of UniqueExternalLinkage.
This patch renames getLinkage to getLinkageInternal. Only code that
needs to handle UniqueExternalLinkage specially should call this.
Linkage, as defined in the c++ standard, is provided by
getFormalLinkage. It maps UniqueExternalLinkage to ExternalLinkage.
Most places in the compiler actually want isExternallyVisible, which
handles UniqueExternalLinkage as internal.
llvm-svn: 181677
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/CheckerContext.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/CheckerContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp b/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp index 74eeef1c67a..6b22bf411c2 100644 --- a/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp +++ b/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp @@ -68,7 +68,7 @@ bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD, // If this function is not externally visible, it is not a C library function. // Note that we make an exception for inline functions, which may be // declared in header files without external linkage. - if (!FD->isInlined() && FD->getLinkage() != ExternalLinkage) + if (!FD->isInlined() && !FD->isExternallyVisible()) return false; if (Name.empty()) |

