[PATCH] D137996: Add support for a backdoor driver option that enables emitting header usage information in JSON to a file
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 5 07:19:29 PST 2022
ahatanak updated this revision to Diff 480101.
ahatanak marked an inline comment as done.
ahatanak added a comment.
Add another environment variable `CC_PRINT_HEADERS_FILTERING`, which can be used to specify whether header information should be filtered or not.
Currently, `CC_PRINT_HEADERS_FORMAT=json, CC_PRINT_HEADERS_FILTERING=on` and `CC_PRINT_HEADERS_FORMAT=textual, CC_PRINT_HEADERS_FILTERING=off` are allowed. `CC_PRINT_HEADERS=1` gets translated to `CC_PRINT_HEADERS_FORMAT=textual, CC_PRINT_HEADERS_FILTERING=off`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137996/new/
https://reviews.llvm.org/D137996
Files:
clang/include/clang/Basic/HeaderIncludeFormatKind.h
clang/include/clang/Driver/Driver.h
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/DependencyOutputOptions.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/HeaderIncludeGen.cpp
clang/test/Preprocessor/Inputs/print-header-json/header0.h
clang/test/Preprocessor/Inputs/print-header-json/header1.h
clang/test/Preprocessor/Inputs/print-header-json/header2.h
clang/test/Preprocessor/Inputs/print-header-json/system/system0.h
clang/test/Preprocessor/Inputs/print-header-json/system/system1.h
clang/test/Preprocessor/Inputs/print-header-json/system/system2.h
clang/test/Preprocessor/Inputs/print-header-json/system/system3.h
clang/test/Preprocessor/print-header-json.c
clang/tools/driver/driver.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137996.480101.patch
Type: text/x-patch
Size: 20110 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221205/40dd66de/attachment-0001.bin>
More information about the cfe-commits
mailing list