-
Notifications
You must be signed in to change notification settings - Fork 1
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
Misc updates after trying to run clang-tidy #3
Open
Vexthil
wants to merge
13
commits into
rasjani:master
Choose a base branch
from
Vexthil:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…th no known parent package"
When dumping the config this is now written to the current working directory instead of Janis specific folder
Updated the ignore file to make sure the processcdb.ini is not added into git
A couple of issues were found when trying to make clang tidy run. * The compiliation database was trying to use "command" instead of "arguments". According to the docs either are possible to this probably should be updated to support both instead of the quick fix I did here * to_dict can get given an empty string. Handle that error and return correctly * If there are no arg_additions specificed in the config then this needs to handle the error gracefully
xml files are the output from the process and so should not be submitted. This name is custom though so this may not be totally correct in all cases
* If no path_matcher is given then it would default to everything using the path matcher. Now it defaults to nothing using it instead as the setting is additive * It used to try to find the include path by using arg[2:] but will only work when the arguments are a single string. As the -I and the include_path are seperate arguments this needed to be rewritten to combine these into one argument. Sadly lambdas in python cannot handle out parameters or multiple return values so this needed to be unrolled a bit
Fixed a few spelling mistakes in the readme and added a note that the tools will all be defined in the config file
This was used to limit the compile_commands to specific git changelists. While something like this may be needed in the future this will need to be rewritten for perforce. The --commit arguments still exist but I have commented out the implementation for now until we know what is going to be needed for this fully. The main reason to remove this is to remove the dependencies and allow us to clean up our python packages
Fixed compile error
Add an initial batch script to run this tool for or usages. The paths are currently hard coded but when we move this into the full depot then we can abstract these correctly
If you put a path ../clang-tidy.exe into the binary field then it was not getting found and now it will correctly. Only clang-tody has been tested though
default_args in clang-tidy were getting prepended onto the standard set of arguments but this meant that filter_arguments culls the first one as it has an args[1:] in it. Secondly these were getting put after the -- line and so now these are "extra" instead and passed directly to clang-tidy instead of as extra arguments that are passed to the compiler
Made the clang tidy processor work with cl.exe and clang-cl.exe as this is what is available on windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@rasjani
I finally managed to get some time to look into this after your comment on Ericsson/codechecker#555. This looks to be a very useful tool so thank you for creating it, but I came across a few issues in my use case that I have fixed for me in this pull request. These I imagine are not all going to be valid in the current format to be accepted into your branch but I wanted to make you aware of the issues I came across.
As I said above these changes are not in a format that can currently be accepted into your branch. If you want to take these as a starting point and refactor/improve as you need to solve the issues I came across then that would be great to hear about. If you want any testing done on my side or with different data then do ask and I can update as things change.