[cfe-commits] r147423 - /cfe/trunk/include/clang/AST/Decl.h
Rafael Espindola
rafael.espindola at gmail.com
Sun Jan 1 22:00:54 PST 2012
Author: rafael
Date: Mon Jan 2 00:00:53 2012
New Revision: 147423
URL: http://llvm.org/viewvc/llvm-project?rev=147423&view=rev
Log:
Small refactoring so that only one of the mergeVisibility/mergeLinkage functions
calls setVisibility/setLinkage.
No functionality change.
Modified:
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=147423&r1=147422&r2=147423&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Jan 2 00:00:53 2012
@@ -252,13 +252,10 @@
setLinkage(minLinkage(linkage(), L));
}
void mergeLinkage(LinkageInfo Other) {
- setLinkage(minLinkage(linkage(), Other.linkage()));
+ mergeLinkage(Other.linkage());
}
- void mergeVisibility(Visibility V) {
- setVisibility(minVisibility(visibility(), V));
- }
- void mergeVisibility(Visibility V, bool E) {
+ void mergeVisibility(Visibility V, bool E = false) {
setVisibility(minVisibility(visibility(), V), visibilityExplicit() || E);
}
void mergeVisibility(LinkageInfo Other) {
More information about the cfe-commits
mailing list