Hi All,

A very minor one here, but potentially useful for those that run into it.
Calling print() on an AccessSpecDecl currently results in nothing being
printed. The attached patch rectifies this omission in DeclPrinter.cpp.

Note: AccessSpecDecl's printed as part of a CXXRecordDecl are printed as
they're handled as a special case in DeclPrinter::VisitDeclContext() -
probably due to the unusual indentation convention used by these
declarations.

No test cases I'm afraid as I couldn't find an obvious way of adding one -
unless I've missed something. Anyhow, the change should be safe enough.

- Will.

Attachment: print_AccessSpecDecl.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to