]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Help the analyzer find phutil_is_hiphop_runtime
authorEdward Speyer <edward@fb.com>
Wed, 2 May 2012 01:12:15 +0000 (18:12 -0700)
committerEdward Speyer <edward@fb.com>
Wed, 2 May 2012 01:16:11 +0000 (18:16 -0700)
Summary:
rPHUf9ba25d188c1dcf39e4454b2c6bb058e0beeaa3e adds
global function phutil_is_hiphop_runtime() to
__phutil_library_init__.php.  This diff helps lint files that call that
function.

Test Plan: Lint D2365.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2366

scripts/phutil_analyzer.php

index 5dd568a479e24cbebf26ecac52ba11815729c7ab..e091d09a82cc8adae285d85bcff806cf697515b8 100755 (executable)
@@ -39,6 +39,7 @@ $builtin = array(
 
       'phutil_is_windows'   => true,
       'phutil_load_library' => true,
+      'phutil_is_hiphop_runtime' => true,
 
       // HPHP/i defines these functions as 'internal', but they are NOT
       // builtins and do not exist in vanilla PHP. Make sure we don't mark them