-
-
Notifications
You must be signed in to change notification settings - Fork 114
Comparing changes
Open a pull request
base repository: arduino/arduino-builder
base: master
head repository: arduino/arduino-builder
compare: functionpointer
- 6 commits
- 6 files changed
- 2 contributors
Commits on Nov 5, 2015
-
Comparing prototypes with original functions. If they don't match,
prototype is skipped Signed-off-by: Federico Fissore <f.fissore@arduino.cc>
Federico Fissore committedNov 5, 2015 Configuration menu - View commit details
-
Copy full SHA for 9f371d2 - Browse repository at this point
Copy the full SHA 9f371d2View commit details -
Extracted function for readability
Signed-off-by: Federico Fissore <f.fissore@arduino.cc>
Federico Fissore committedNov 5, 2015 Configuration menu - View commit details
-
Copy full SHA for 830f8f2 - Browse repository at this point
Copy the full SHA 830f8f2View commit details -
Testing that prototype of a function containing a typename is not gen…
…erated Signed-off-by: Federico Fissore <f.fissore@arduino.cc>
Federico Fissore committedNov 5, 2015 Configuration menu - View commit details
-
Copy full SHA for bb83289 - Browse repository at this point
Copy the full SHA bb83289View commit details -
Be more conservative about what prototypes to add
Previously, a prototype was added if the generated prototype was contained in the original source code line, to catch cases where ctags did not provide enough information to generate a completely correct prototype. However, this substring matching was still too liberal: if something unsupported was present at the start of the function definition (such as `static` in `static void func()`) the substring matching would still think the prototype was correct, but the compiler would complain. This commit changes this to use prefix matching: Only if the original source line starts with the generated prefix, a prototype is added. Ideally, the full definition is matched, but that requires knowing where it ends, which can be at a curly open, but also a comment start, etc., so better to just leave it at this. This means that inline functions and functions with attributes specified at the start will no longer get a prototype, so the TestPrototypesAdderSketchWithInlineFunction is modified accordingly. Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Configuration menu - View commit details
-
Copy full SHA for 8bb7912 - Browse repository at this point
Copy the full SHA 8bb7912View commit details -
Merge some prototype generation testcases
All of these contain complex functions that should not get any prototypes, so merging them into a single testcase seems useful. Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Configuration menu - View commit details
-
Copy full SHA for c531892 - Browse repository at this point
Copy the full SHA c531892View commit details -
Add prototype adding test for static functions
Static functions should not get a prototype added, since ctags does not allow generating the correct prototype. Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Configuration menu - View commit details
-
Copy full SHA for c128bfa - Browse repository at this point
Copy the full SHA c128bfaView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...functionpointer