[all-commits] [llvm/llvm-project] a82a84: [clang][deps] Keep #pragma push_macro, pop_macro a...
sylvain-audi via All-commits
all-commits at lists.llvm.org
Mon Nov 1 13:09:28 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a82a844961a55c8a5879453ce0e78774b33bf06a
https://github.com/llvm/llvm-project/commit/a82a844961a55c8a5879453ce0e78774b33bf06a
Author: Sylvain Audi <sylvain.audi at ubisoft.com>
Date: 2021-11-01 (Mon, 01 Nov 2021)
Changed paths:
M clang/include/clang/Lex/DependencyDirectivesSourceMinimizer.h
M clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
A clang/test/ClangScanDeps/Inputs/preprocess_minimized_pragmas.h
A clang/test/ClangScanDeps/Inputs/preprocess_minimized_pragmas_cdb.json
A clang/test/ClangScanDeps/preprocess_minimized_pragmas.cpp
A clang/test/Lexer/minimize_source_to_dependency_directives_pragmas.c
M clang/unittests/Lex/DependencyDirectivesSourceMinimizerTest.cpp
Log Message:
-----------
[clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code.
The #pragma directives push_macro/pop_macro and include_alias may influence the #include / import directives encountered by dependency scanning tools like clang-scan-deps.
This patch ensures that those directives are not removed during source code minimization.
Differential Revision: https://reviews.llvm.org/D112088
More information about the All-commits
mailing list