Skip to content
Snippets Groups Projects
Forked from The Tor Project / Applications / Tor Browser
Source project has a limited visibility.
  • kriswright's avatar
    a9947c97
    Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi · a9947c97
    kriswright authored
    Creates a NoNewThreadsChecker plugin that looks for the function and checks to see if it's allowed.
    -Creates two allowlists - `ThreadAllows.txt` is for thread names, while `ThreadFileAllows.txt` checks for entire files where instances of `NS_NewNamedThread` should be ignored.
    -If an instance of `NS_NewNamedThread` is not listed in either list, then the checker throws an error with an additional note containing a more descriptive explanation of the failure.
    
    Differential Revision: https://phabricator.services.mozilla.com/D62635
    
    --HG--
    extra : moz-landing-system : lando
    a9947c97
    History
    Bug 1613440 - Add new clang plugin to deprecate NS_NewNamedThread r=andi
    kriswright authored
    Creates a NoNewThreadsChecker plugin that looks for the function and checks to see if it's allowed.
    -Creates two allowlists - `ThreadAllows.txt` is for thread names, while `ThreadFileAllows.txt` checks for entire files where instances of `NS_NewNamedThread` should be ignored.
    -If an instance of `NS_NewNamedThread` is not listed in either list, then the checker throws an error with an additional note containing a more descriptive explanation of the failure.
    
    Differential Revision: https://phabricator.services.mozilla.com/D62635
    
    --HG--
    extra : moz-landing-system : lando