https://llvm.org/bugs/show_bug.cgi?id=26383
Bug ID: 26383
Summary: QualType::print prints "&" when
PrintingPolicy.SuppressSpecifiers is true for
reference types
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Let have the type of "const QString&" and default (C++) language options. After
printing it like this:
PrintingPolicy TypePolicy(LangOpts);
TypePolicy.SuppressSpecifiers = true;
std::string String;
llvm::raw_string_ostream StringStream(String);
Type.print(StringStream, TypePolicy);
StringStream.flush();
String contains "&". Even if we assume skipping the entire type because of
"SuppressSpecifiers" is correct, the result should be an empty string because
"&" is part of the type.
--
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