[PATCH] D147928: [clang] Keep multiple-include optimization for null directives
Elliot Goodrich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 10 04:41:14 PDT 2023
IncludeGuardian added a comment.
Differences between the behaviors of compilers can be found here https://github.com/IncludeGuardian/multiple-inclusion-optimization-tests
You can see the number of boost preprocessor files failing the include guard optimization when running IncludeGuardian <https://includeguardian.io/> over Boost Graph https://gist.github.com/IncludeGuardian/0837719e0d1162d5b50e4c8fed4d3c0d#file-boost_graph-yaml-L345-L749
An example boost preprocessor header can be found here https://github.com/boostorg/preprocessor/blob/667e87b3392db338a919cbe0213979713aca52e3/include/boost/preprocessor.hpp. Note the consistent use of null directives outside of the guard.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147928/new/
https://reviews.llvm.org/D147928
More information about the cfe-commits
mailing list