diff options
Diffstat (limited to 'clang/lib/ExtractAPI/DeclarationFragments.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/DeclarationFragments.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/ExtractAPI/DeclarationFragments.cpp b/clang/lib/ExtractAPI/DeclarationFragments.cpp index d7eebcb..348e758 100644 --- a/clang/lib/ExtractAPI/DeclarationFragments.cpp +++ b/clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -883,6 +883,9 @@ DeclarationFragments DeclarationFragmentsBuilder::getFragmentsForCXXMethod( if (Method->isVolatile()) Fragments.append("volatile", DeclarationFragments::FragmentKind::Keyword) .appendSpace(); + if (Method->isVirtual()) + Fragments.append("virtual", DeclarationFragments::FragmentKind::Keyword) + .appendSpace(); // Build return type DeclarationFragments After; |