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:
parent
0e16ad8c3f
commit
290b79c15d
28 changed files with 192 additions and 102 deletions
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
int foo() { return 0; }
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
int foo() { return 0; }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// ignore-license
|
||||
void foo();
|
||||
|
||||
int main() {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// ignore-license
|
||||
void foo();
|
||||
|
||||
int main() {
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
int foo() { return 0; }
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
int foo() { return 0; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
// ignore-license
|
||||
#include <stdint.h>
|
||||
|
||||
uint32_t foo();
|
||||
uint32_t bar();
|
||||
|
||||
uint32_t add() {
|
||||
return foo() + bar();
|
||||
return foo() + bar();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// ignore-license
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// ignore-license
|
||||
void foo();
|
||||
|
||||
void bar() { foo(); }
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
void foo() {}
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
void some_c_symbol() {}
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
void foo() {}
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
int should_return_one() { return 1; }
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
int should_return_one() { return 0; }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// ignore-license
|
||||
#include <stdint.h>
|
||||
|
||||
extern int32_t BAZ;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// ignore-license
|
||||
void foo();
|
||||
|
||||
int main() {
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
void bar() {}
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
void bar() {}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// ignore-license
|
||||
extern void foo();
|
||||
|
||||
void bar() { foo(); }
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
// ignore-license
|
||||
void foo() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue