[llvm-bugs] [Bug 44603] New: NamedDecl::printQualifiedName does not use PrintingPolicy for printing declaration name
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 21 03:11:00 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44603
Bug ID: 44603
Summary: NamedDecl::printQualifiedName does not use
PrintingPolicy for printing declaration name
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: john.plate at gmx.us
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
The member function NamedDecl::printQualifiedName uses the PrintingPolicy
parameter only for printing the nested name specifier, but not for printing the
declaration name. One effect is that it prints e.g. "MyClass::MyClass<T>" even
if the PrintingPolicy flag SuppressTemplateArgsInCXXConstructors is set.
To fix it, the line 1575 in the file clang/lib/AST/Decl.cpp would have to be
changed from
OS << *this;
to
getDeclName().print(OS, P);
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200121/ea9c72a5/attachment.html>
More information about the llvm-bugs
mailing list