[cfe-commits] r147424 - in /cfe/trunk: lib/AST/Decl.cpp test/CodeGenCXX/visibility.cpp

Rafael Espindola rafael.espindola at gmail.com
Sun Jan 1 22:26:22 PST 2012


Author: rafael
Date: Mon Jan  2 00:26:22 2012
New Revision: 147424

URL: http://llvm.org/viewvc/llvm-project?rev=147424&view=rev
Log:
Small cosmetic cleanups in code I will change anyway.

Modified:
    cfe/trunk/lib/AST/Decl.cpp
    cfe/trunk/test/CodeGenCXX/visibility.cpp

Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=147424&r1=147423&r2=147424&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Mon Jan  2 00:26:22 2012
@@ -115,7 +115,7 @@
 
 /// \brief Get the most restrictive linkage for the types in the given
 /// template parameter list.
-static LVPair 
+static LVPair
 getLVForTemplateParameterList(const TemplateParameterList *Params) {
   LVPair LV(ExternalLinkage, DefaultVisibility);
   for (TemplateParameterList::const_iterator P = Params->begin(),
@@ -130,7 +130,7 @@
         }
         continue;
       }
-      
+
       if (!NTTP->getType()->isDependentType()) {
         LV = merge(LV, NTTP->getType()->getLinkageAndVisibility());
         continue;
@@ -162,7 +162,7 @@
     case TemplateArgument::Integral:
     case TemplateArgument::Expression:
       break;
-      
+
     case TemplateArgument::Type:
       LV = merge(LV, Args[I].getAsType()->getLinkageAndVisibility());
       break;
@@ -178,7 +178,7 @@
 
     case TemplateArgument::Template:
     case TemplateArgument::TemplateExpansion:
-      if (TemplateDecl *Template 
+      if (TemplateDecl *Template
                 = Args[I].getAsTemplateOrTemplatePattern().getAsTemplateDecl())
         LV = merge(LV, getLVForDecl(Template, F));
       break;

Modified: cfe/trunk/test/CodeGenCXX/visibility.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/visibility.cpp?rev=147424&r1=147423&r2=147424&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/visibility.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/visibility.cpp Mon Jan  2 00:26:22 2012
@@ -456,7 +456,7 @@
 }
 
 namespace PR10113 {
-  namespace foo __attribute__ ((__visibility__ ("default"))) {
+  namespace foo DEFAULT {
     template<typename T>
       class bar {
       void zed() {}





More information about the cfe-commits mailing list