@@ -380,6 +380,11 @@ Options
380380 -f <format> : Output format, support depends on command. One of
381381 : native (default), s-expr, plist, json, csv
382382 Unique prefix ok, so -fs , -fp, -fj or -fc is sufficient.
383+ -g <regex> : 'grep' filter output with regular expression. Can be
384+ provided multiple times to narrow match ('and' semantics).
385+ Outputs are highlit with different colors (also see '-O')
386+ -O : 'or' smentics for for `-g`. Instead of requiring all
387+ regexs to match for a record, require one of them.
383388 -r : Follow dependencies recursively starting from pattern.
384389 Without numeric parameter, follows dependencies to the end.
385390 An optional parameter allows to limit the nesting depth,
@@ -423,16 +428,14 @@ Commands (unique prefix sufficient):
423428 → 2 column table: (target, dependency*)
424429 has-dependent : List cc library targets and the libraries that depend on it
425430 → 2 column table: (target, dependent*)
426- target-hdrs : Print hdrs mentioned in targets (-P: only physical files)
427- → 2 column table: (header-filename, target)
428- target-srcs : Print srcs mentioned in targets (-P: only physical files)
429- → 2 column table: (srcs-filename, target)
430- target-data : Print data mentioned in targets (-P: only physical files)
431- → 2 column table: (data-filename, target)
431+ target-hdrs, : Print either hdrs, srcs or data mentioned in targets.
432+ target-srcs, -P: only if these are physical files
433+ target-data → 2 column table: (header-filename, target)
432434 lib-headers : Like target-hdrs, but all reachable paths expanded with all
433435 combinations of includes = [], include_prefix, etc.
434436 So same header can show up multiple times with different
435437 paths. This is the relevant list used by dwyu.
438+ Use -r to recurse into dependencies beyond match pattern.
436439 → 2 column table: (header-filename, cc-library-target)
437440 genrule-outputs: Print generated files by genrule()s matching pattern.
438441 → 2 column table: (filename, genrule-target)
0 commit comments