• brettw@chromium.org's avatar
    Support private values in GN. · afb30e39
    brettw@chromium.org authored
    This adds special handling for variables that begin with underscores, which is inspired by Dart. Such variables are not imported when doing an import, which gives .gni files a way to have intermediate private variables that won't pollute the scopes of the files that include them.
    
    This also applies to the root build config, which can have private values now.
    
    Adds some missing unused variable checks. This was disabled because processing imports would mean all imported variables were unused, and files not using all of them would get unused variable errors. This adds the option to mark merged values on a scope as used, which is used for imported values.
    
    BUG=341738
    R=cjhopman@chromium.org
    
    Review URL: https://codereview.chromium.org/287693002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271078 0039d316-1c4b-4281-b951-d872f2087c98
    afb30e39
scope_unittest.cc 7.7 KB