https://llvm.org/bugs/show_bug.cgi?id=26383

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #6 from Richard Smith <[email protected]> ---
(In reply to comment #5)
> What I mean is that I want to only skip the specifiers of the function.
> About what I want, I've already explained - I want to explicitly instantiate
> functions of template types:
> 
> template const QString & QList<QString>::first() const;

Here, 'const' and 'QString' are both specifiers, so you'll need to produce
those somehow. One possibility would be:

 1) print the declaration with SuppressSpecifiers = true
 2) get the function's return type and print it to a string stream with a
marker string for the declared name:
      FD->getType()->castAs<FunctionProtoType>()->getReturnType().print(Out,
Policy, "<<<MARKER>>>");
 3) take the string from step 2, remove the marker and everything after it, and
glue that on the start of the declaration from step 1.

In any case, I'm closing this bug as invalid, as SuppressSpecifiers is working
as intended.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to