forked from OSchip/llvm-project
Make sure to print cvr-qualifiers on function declarations
llvm-svn: 119817
This commit is contained in:
parent
8be14414f6
commit
8fc96fc555
|
@ -379,6 +379,16 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
|
|||
|
||||
Proto += ")";
|
||||
|
||||
if (FT && FT->getTypeQuals()) {
|
||||
unsigned TypeQuals = FT->getTypeQuals();
|
||||
if (TypeQuals & Qualifiers::Const)
|
||||
Proto += " const";
|
||||
if (TypeQuals & Qualifiers::Volatile)
|
||||
Proto += " volatile";
|
||||
if (TypeQuals & Qualifiers::Restrict)
|
||||
Proto += " restrict";
|
||||
}
|
||||
|
||||
if (FT && FT->hasExceptionSpec()) {
|
||||
Proto += " throw(";
|
||||
if (FT->hasAnyExceptionSpec())
|
||||
|
|
Loading…
Reference in New Issue