diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-02-24 01:23:02 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-02-24 01:23:02 +0000 |
| commit | e62c0a45dd54045a523b6cf1c657d3bbc9a81404 (patch) | |
| tree | 39f3dc4eef45c3157db0a8d2a809a2cebb91112a /clang/Driver/CacheTokens.cpp | |
| parent | e6698847490224d4ade0a5e0f1c8784f23201c0b (diff) | |
| download | bcm5719-llvm-e62c0a45dd54045a523b6cf1c657d3bbc9a81404.tar.gz bcm5719-llvm-e62c0a45dd54045a523b6cf1c657d3bbc9a81404.zip | |
Improve merging of function declarations. Specifically:
- When we are declaring a function in local scope, we can merge with
a visible declaration from an outer scope if that declaration
refers to an entity with linkage. This behavior now works in C++
and properly ignores entities without linkage.
- Diagnose the use of "static" on a function declaration in local
scope.
- Diagnose the declaration of a static function after a non-static
declaration of the same function.
- Propagate the storage specifier to a function declaration from a
prior declaration (PR3425)
- Don't name-mangle "main"
llvm-svn: 65360
Diffstat (limited to 'clang/Driver/CacheTokens.cpp')
0 files changed, 0 insertions, 0 deletions

