Author: Baranov Victor Date: 2026-06-15T08:40:28+03:00 New Revision: 6f916feb8ba799f78c252907b6d659dae64039c6
URL: https://github.com/llvm/llvm-project/commit/6f916feb8ba799f78c252907b6d659dae64039c6 DIFF: https://github.com/llvm/llvm-project/commit/6f916feb8ba799f78c252907b6d659dae64039c6.diff LOG: [ASTMatchers][Docs] print ignoring message only when class was not documented before (#203783) Added: Modified: clang/docs/tools/dump_ast_matchers.py Removed: ################################################################################ diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py index 5db6826070934..5bd7b728a1c56 100755 --- a/clang/docs/tools/dump_ast_matchers.py +++ b/clang/docs/tools/dump_ast_matchers.py @@ -521,7 +521,10 @@ def act_on_decl(declaration, comment, allowed_types): if not result_types: if not comment: # Only overloads don't have their own doxygen comments; ignore those. - print('Ignoring "%s"' % name) + # Warn if this name was never successfully documented. + # Overloads of an already-documented matcher are expected. + if ids[name] == 0: + print('Ignoring "%s"' % name) else: print('Cannot determine result type for "%s"' % name) else: _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
