Fix #14433 (Import project: refactor code to read compile_commands.json)#8030
Fix #14433 (Import project: refactor code to read compile_commands.json)#8030danmar merged 9 commits intodanmar:mainfrom
Conversation
3792859 to
7941aae
Compare
|
The clang-tidy warning seems to be a false positive, I have reported it here: llvm/llvm-project#172018 |
danmar
left a comment
There was a problem hiding this comment.
I have not checked it in detail yet but this is better approach in my opinion. 👍
I feel we shouldn't merge this before the release though it could introduce some bug.
5fbb9e0 to
b6c9031
Compare
0e066dd to
a9fd6d4
Compare
8e36982 to
20ac362
Compare
7c73ad4 to
fb2e7b3
Compare
fb2e7b3 to
a203ada
Compare
4fb1d36 to
63dae98
Compare
.github/workflows/selfcheck.yml
Outdated
| - name: Self check (unusedFunction / no test / no gui) | ||
| run: | | ||
| supprs="--suppress=unusedFunction:lib/errorlogger.h:196 --suppress=unusedFunction:lib/importproject.cpp:1516 --suppress=unusedFunction:lib/importproject.cpp:1540" | ||
| supprs="--suppress=unusedFunction:lib/errorlogger.h:196 --suppress=unusedFunction:lib/importproject.cpp:1515 --suppress=unusedFunction:lib/importproject.cpp:1539" |
There was a problem hiding this comment.
@firewave it feels like inline suppressions should be used instead. why don't we? my spontanous guess is that different selfchecks generate different warnings?
There was a problem hiding this comment.
@firewave or how about adding maybe_unused attributes to the functions?
danmar
left a comment
There was a problem hiding this comment.
some more small nits. overall this PR makes the code much cleaner imho and I envision it will be more robust thanks to that.
46445d7 to
48dd74c
Compare
d3ce262 to
f7ac10e
Compare
f7ac10e to
33c4119
Compare
|



There has been multiple issues with the import lately, and (my) fixes have been a bit hacky. With this change,
commandis first split similarily to how the shell would, and is then handled like theargumentsfield. For extracting compiler options, the argument list is handled like the compiler would readargv. I believe this will be easier to maintain in the future.