- Rename flags.defs to flag-definitions.h.
authoriposva@chromium.org <iposva@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Sep 2008 08:47:50 +0000 (08:47 +0000)
committeriposva@chromium.org <iposva@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Sep 2008 08:47:50 +0000 (08:47 +0000)
- Add better support for ignoring files in the presubmit tool.

Review URL: http://codereview.chromium.org/3082

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@322 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/flag-definitions.h [moved from src/flags.defs with 100% similarity, mode: 0644]
src/flags.cc
src/flags.h
tools/presubmit.py

old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from src/flags.defs
rename to src/flag-definitions.h
index 3b48021..73bb855 100644 (file)
@@ -36,11 +36,11 @@ namespace v8 { namespace internal {
 
 // Define all of our flags.
 #define FLAG_MODE_DEFINE
-#include "flags.defs"
+#include "flag-definitions.h"
 
 // Define all of our flags default values.
 #define FLAG_MODE_DEFINE_DEFAULTS
-#include "flags.defs"
+#include "flag-definitions.h"
 
 namespace {
 
@@ -143,7 +143,7 @@ struct Flag {
 
 Flag flags[] = {
 #define FLAG_MODE_META
-#include "flags.defs"
+#include "flag-definitions.h"
 };
 
 const size_t num_flags = sizeof(flags) / sizeof(*flags);
index bad0d26..813ea95 100644 (file)
@@ -33,7 +33,7 @@ namespace v8 { namespace internal {
 
 // Declare all of our flags.
 #define FLAG_MODE_DECLARE
-#include "flags.defs"
+#include "flag-definitions.h"
 
 // The global list of all flags.
 class FlagList {
index aa2c6b8..65812ec 100755 (executable)
@@ -134,6 +134,12 @@ class CppLintProcessor(SourceFileProcessor):
     return (super(CppLintProcessor, self).IgnoreDir(name)
               or (name == 'third_party'))
 
+  IGNORE_LINT = ['flag-definitions.h']
+  
+  def IgnoreFile(self, name):
+    return (super(CppLintProcessor, self).IgnoreFile(name)
+              or (name in CppLintProcessor.IGNORE_LINT))
+
   def GetPathsToSearch(self):
     return ['src', 'public', 'samples', join('test', 'cctest')]
 
@@ -168,7 +174,8 @@ class SourceProcessor(SourceFileProcessor):
               or (name == 'third_party')
               or (name == 'obj'))
 
-  IGNORE_COPYRIGHTS = ['earley-boyer.js', 'raytrace.js', 'crypto.js']
+  IGNORE_COPYRIGHTS = ['earley-boyer.js', 'raytrace.js', 'crypto.js',
+      'libraries.cc', 'libraries-empty.cc']
   IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js',
       'html-comments.js']