// 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 {
Flag flags[] = {
#define FLAG_MODE_META
-#include "flags.defs"
+#include "flag-definitions.h"
};
const size_t num_flags = sizeof(flags) / sizeof(*flags);
// Declare all of our flags.
#define FLAG_MODE_DECLARE
-#include "flags.defs"
+#include "flag-definitions.h"
// The global list of all flags.
class FlagList {
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')]
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']