Browse Source

Merge pull request #2083 from thewheat/cpp-parse-more-entries

CPP scrape entries ending with <typename>
Simon Legner 1 năm trước cách đây
mục cha
commit
2ac4b4a001
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/docs/filters/cpp/entries.rb

+ 1 - 1
lib/docs/filters/cpp/entries.rb

@@ -52,7 +52,7 @@ module Docs
         name.remove! %r{\s\(.+\)}
 
         name.sub! %r{\AStandard library header <(.+)>\z}, '\1'
-        name.sub! %r{(<[^>]+>)}, ''
+        name.sub! %r{(<[^>]+>::)}, '::'
 
         if name.include?('operator') && name.include?(',')
           name.sub!(%r{operator.+([\( ])}, 'operators (') || name.sub!(%r{operator.+}, 'operators')