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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to