[PATCH] D61566: Fix for bug 41747: AST Printer doesn't print nested name specifier for out of scope record definitions

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 7 09:05:08 PDT 2019


aaron.ballman added inline comments.


================
Comment at: clang/lib/AST/DeclPrinter.cpp:958
+
+    if (auto *Q = D->getQualifier())
+      Q->print(Out, Policy);
----------------
Don't use `auto` here as the type is not explicitly spelled out in the initialization. If possible, `const`-qualify the pointer type as well.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61566/new/

https://reviews.llvm.org/D61566





More information about the cfe-commits mailing list