-
Notifications
You must be signed in to change notification settings - Fork 4
Reorganized the golden tests #1295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
* Reorganized `examples/golden/` into 11 subdirectories: * `types/` - Type system tests (primitives, structs, unions, enums, typedefs) * `functions/` - Function declarations, callbacks, attributes * `arrays/` - Array tests * `macros/` - C preprocessor macro tests * `declarations/` - Scoping, redeclaration, linkage * `attributes/` - GCC/Clang attributes * `program-analysis/` - Slicing, selection, reparsing * `documentation/` - Doxygen, pragmas * `edge-cases/` - UTF-8, asm, special names * `binding-specs/` - Binding specification tests * `globals/` - Global variable tests * `manual/` - Manual examples (already existed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to attributes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to macros folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the types folder, further categorize the files: structs, enums, bool, etc..
edsko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| -- | ||
| -- Clang diagnostics | ||
| -- | ||
|
|
||
| , testDiagnostic "attributes" $ \diag -> | ||
| , testDiagnostic "attributes/attributes" $ \diag -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a global test list that is sorted by test name. In order to do that, associate these tests (testDiagnostic, e.g.) to variable names and add them to a list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make them top level function definitions instead

This PR closes #755
examples/golden/into 11 subdirectories:types/- Type system tests (primitives, structs, unions, enums, typedefs)functions/- Function declarations, callbacks, attributesarrays/- Array testsmacros/- C preprocessor macro testsdeclarations/- Scoping, redeclaration, linkageattributes/- GCC/Clang attributesprogram-analysis/- Slicing, selection, reparsingdocumentation/- Doxygen, pragmasedge-cases/- UTF-8, asm, special namesbinding-specs/- Binding specification testsglobals/- Global variable testsmanual/- Manual examples (already existed)