]> granicus.if.org Git - clang/commit
In Sema::MergeVarDecl we handle merging of storage classes and visibility
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 12 Nov 2012 04:10:23 +0000 (04:10 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 12 Nov 2012 04:10:23 +0000 (04:10 +0000)
commit538fb98685522bb7234c693f12e82b8893e290ff
tree6f7055ac59dde57c6fb6ccc4f1109248c500bae4
parent778dd4a0b20cc176e441527734b1e3ccfd25e47a
In Sema::MergeVarDecl we handle merging of storage classes and visibility
attributes. In cases where the merged declaration is fully equivalent to the
two original ones, some of the code was getLVForDecl was duplicated.

Cases that are still handled in getLVForDecl are things like

__private_extern__ int N;
int N;

For which we cannot produce a single merged decl with all the information.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167703 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp