[PATCH] D67127: [clang-scan-deps] add skip excluded conditional preprocessor block preprocessing optimization
Michael Spencer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 17:20:25 PDT 2019
Bigcheese added inline comments.
Herald added a subscriber: wuzish.
================
Comment at: clang/include/clang/Frontend/CompilerInstance.h:256
+ /// preprocessor.
+ void setAdditionalPPCallbacks(std::unique_ptr<PPCallbacks> PPC);
+
----------------
This kinda sounds like it can be called multiple times. Is there any way you can use chained pp callbacks?
================
Comment at: clang/tools/clang-scan-deps/ClangScanDeps.cpp:171-177
+llvm::cl::opt<bool> SkipExcludedPPRanges(
+ "skip-excluded-pp-ranges",
+ llvm::cl::desc(
+ "Use the preprocessor optimization that skips excluded conditionals by "
+ "bumping the buffer pointer in the lexer instead of lexing the tokens "
+ "until reaching the end directive."),
+ llvm::cl::init(true), llvm::cl::cat(DependencyScannerCategory));
----------------
Is there any reason for this to be configurable other than for perf testing?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67127/new/
https://reviews.llvm.org/D67127
More information about the cfe-commits
mailing list