[PATCH] D97805: [clang-query] Add option to enable only displaying main file matches
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 2 13:51:24 PST 2021
njames93 created this revision.
njames93 added reviewers: aaron.ballman, steveire.
njames93 published this revision for review.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Add option `set match-scope (include-headers|main-file-only)` to control only printing matches from the main file.
This can be set once and then avoids the need to pollute all your match expressions with `isExpansionInMainFile()`
By default it is enabled to only show match results from the main file.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97805
Files:
clang-tools-extra/clang-query/Query.cpp
clang-tools-extra/clang-query/QueryParser.cpp
clang-tools-extra/clang-query/QueryParser.h
clang-tools-extra/clang-query/QuerySession.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-query/Inputs/foo.h
clang-tools-extra/test/clang-query/headers.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97805.327573.patch
Type: text/x-patch
Size: 11366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210302/40e092ca/attachment-0001.bin>
More information about the cfe-commits
mailing list