[cfe-dev] diff: clarify the AppendScope() call comment in TypePrinter::PrintTag()
Vladimir Kirillov
proger at uaoug.org.ua
Sat Aug 28 07:27:18 PDT 2010
Hello, cfe-dev!
As I've been digging into TypePrinter lately, I've noticed
a mismatch between the comment and the reality:
origin: clang/lib/AST
Index: TypePrinter.cpp
===================================================================
--- TypePrinter.cpp (revision 112370)
+++ TypePrinter.cpp (working copy)
@@ -431,8 +431,9 @@
}
if (!Policy.SuppressScope)
- // Compute the full nested-name-specifier for this type. In C,
- // this will always be empty.
+ // Compute the full nested-name-specifier for this type.
+ // In C, this will always be empty except when the type
+ // being printed is anonymous within other Record.
AppendScope(D->getDeclContext(), Buffer);
if (const IdentifierInfo *II = D->getIdentifier())
More information about the cfe-dev
mailing list