Clean up tidy scripts, coverage, performance

This restructures tidy.py to walk the tree itself,
and improves performance considerably by not loading entire
files into buffers for licenseck.

Splits build rules into 'tidy', 'tidy-basic', 'tidy-binaries',
'tidy-errors', 'tidy-features'.
This commit is contained in:
Brian Anderson 2015-01-24 15:18:19 -08:00
parent 0e16ad8c3f
commit 290b79c15d
28 changed files with 192 additions and 102 deletions

View file

@ -1 +1,2 @@
// ignore-license
int foo() { return 0; }

View file

@ -1 +1,2 @@
// ignore-license
int foo() { return 0; }

View file

@ -1,3 +1,4 @@
// ignore-license
void foo();
int main() {

View file

@ -1,3 +1,4 @@
// ignore-license
void foo();
int main() {

View file

@ -1 +1,2 @@
// ignore-license
int foo() { return 0; }

View file

@ -1 +1,2 @@
// ignore-license
int foo() { return 0; }

View file

@ -1,16 +1,17 @@
// ignore-license
#include <stdint.h>
typedef struct TestStruct {
uint8_t x;
int32_t y;
uint8_t x;
int32_t y;
} TestStruct;
typedef int callback(TestStruct s);
uint32_t call(callback *c) {
TestStruct s;
s.x = 'a';
s.y = 3;
TestStruct s;
s.x = 'a';
s.y = 3;
return c(s);
return c(s);
}

View file

@ -1,8 +1,9 @@
// ignore-license
#include <stdint.h>
uint32_t foo();
uint32_t bar();
uint32_t add() {
return foo() + bar();
return foo() + bar();
}

View file

@ -1,3 +1,4 @@
// ignore-license
// Pragma needed cause of gcc bug on windows: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
#pragma pack(1)
struct __attribute__((packed)) Foo {

View file

@ -1,3 +1,4 @@
// ignore-license
#include <stdio.h>
#include <stdint.h>

View file

@ -1,3 +1,4 @@
// ignore-license
void foo();
void bar() { foo(); }

View file

@ -1 +1,2 @@
// ignore-license
void foo() {}

View file

@ -1 +1,2 @@
// ignore-license
void some_c_symbol() {}

View file

@ -1 +1,2 @@
// ignore-license
void foo() {}

View file

@ -1 +1,2 @@
// ignore-license
int should_return_one() { return 1; }

View file

@ -1 +1,2 @@
// ignore-license
int should_return_one() { return 0; }

View file

@ -1,3 +1,4 @@
// ignore-license
#include <stdint.h>
extern int32_t BAZ;

View file

@ -1,3 +1,4 @@
// ignore-license
void foo();
int main() {

View file

@ -1 +1,2 @@
// ignore-license
void bar() {}

View file

@ -1 +1,2 @@
// ignore-license
void bar() {}

View file

@ -1,3 +1,4 @@
// ignore-license
extern void foo();
void bar() { foo(); }

View file

@ -1 +1,2 @@
// ignore-license
void foo() {}