• Lukasz Anforowicz's avatar
    Emit constexpr-initialized fields as candidates for exclusion. · fff469c8
    Lukasz Anforowicz authored
    After this CL, the rewriter will detect fields that are initialized
    with non-nullptr value in constexpr constructors.  Such fields will
    be emitted as candidates for exclusion via --exclude-fields cmdline
    parameter.
    
    This CL should help ensure that the build is successful, once we
    stop excluding |const char* fields| from the rewrite.  In particular,
    performance_manager::PriorityAndReason::reason_ field needs to be
    excluded in practice.  Additionally, this CL should help to automate
    excluding of the various base::FeatureParam fields/scenarios (they
    are currently covered via manual-fields-to-ignore.txt).
    
    Bug: 1069567
    Change-Id: I122a329577f77d8172e26f189b5155af742a33c2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495719
    Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Commit-Queue: Daniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#820840}
    fff469c8
RewriteRawPtrFields.cpp 45.3 KB