[PATCH] Implementation of core DR580 and C++11 member access rules

Sean Silva silvas at purdue.edu
Fri Apr 19 17:05:44 PDT 2013



================
Comment at: lib/Sema/SemaAccess.cpp:1487
@@ +1486,3 @@
+  if (FunctionDecl *FN = dyn_cast<FunctionDecl>(D)) {
+    if (!DC->isFunctionOrMethod()) DC = FN;
+  } else if (TemplateDecl *TD = dyn_cast<TemplateDecl>(D)) {
----------------
While you're fixing style, you can probably bump the `DC = FN` statement onto the next line, as is more common.


http://llvm-reviews.chandlerc.com/D696



More information about the cfe-commits mailing list