Comments (5)
Could you please try this with an older version (e.g., LLVM 16.0 or so?) of clang-tidy
? It could be that the changed diagnostic format around the fixits (#4063) are causing problems in the HTML view. What happens if you use CodeChecker parse
directly, without the HTML conversion?
from codechecker.
With commands
$ CodeChecker analyze ./build/compile_commands.json --enable sensitive --output ./reports --analyzer-config 'clang-tidy:take-config-from-directory=true'
$ CodeChecker parse ./reports
I got
----==== File Statistics ====----
-------------------------------------
File name | Number of reports
-------------------------------------
main.cpp | 2
functional_hash.h | 1
-------------------------------------
----=================----
Still, 2 errors detected on main.cpp, all of 3 warnings from calculator.cpp
missed.
Does this proves that, this is not a HTML rendering bug?
from codechecker.
Yes, the raw output files do not contain the warnings. So this must be an issue with how the analysis is executed. And the problem is likely the conflict between what the .clang-tidy
file says the checker list should be, vs. the --enable sensitive
passed on the command-line.
from codechecker.
So regarding this specific bug, is there a workaround solution or do I have to wait for a fixing patch?
from codechecker.
We have to investigate what is causing this exactly, why is .clang-tidy
files synergising badly with other CLI arguments. Unfortunately, we are in a release cycle as of right now, so it is likely that this will only be fixed in the following release, not the current one.
Meanwhile, what you can do, is not use the .clang-tidy
file and instead specify the enabled checkers through CodeChecker directly. --enable
takes multiple kinds of arguments: individual checkers, or checker "groups" (such as cppcoreguidelines
), or the profiles like sensitive
. So in your case, "Checks": "cppcoreguidelines-*,performance-*,clang-diagnostic-*"
would likely correspond to --enable cppcoreguidelines --enable performance --enable clang-diagnostic
.
from codechecker.
Related Issues (20)
- [server] Multiprocessed schema upgrades for `-j` products in parallel
- [DRAFT] CodeChecker invocation for single compilation entry with customizable behaviour
- [DRAFT] Support for relative paths in CodeChecker HOT 1
- Codechecker adding '-Wno-deprecated' causes clang-tidy to fail, when used with precompiled headers HOT 1
- Make reports available to `CodeChecker parse` incrementally during analysis
- Store fails when a source file referenced in a report is inside of a symlinked folder
- `parse` should fail when path does not exist
- `--file` has no effect HOT 2
- Facebook Infer analyzer support HOT 3
- How is compilation database JSON file searched when a source file is given as analysis input when running CodeChecker analyze? HOT 1
- Add a `db_cleanup` routine that updates the cached `CONFIG.products.num_of_runs` to the actual, sensible, value
- [web] **ALL** reports shown when the run filter "wildcard pattern" does NOT match ANY runs whatsoever (because typo)
- [web] Changing of filters and the reset of the page in the Reports table does not adjust the `page=` GET parameter, which can lead to out of bounds visualisation when used as a permalink or through the "Back to Reports" button
- [bug] ldlogger escaping characters
- CodeChecker analyze should warn if the compilation datbase is empty HOT 3
- CodeChecker analyze skip does not work if the file location is relative in the compilation db
- Add night mode to CodeChecker Web
- [db][server] Failing `db_cleanup` when started together with a schema migration should not result in the migration's `ROLLBACK`
- --ctu flag not handled during analysis HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codechecker.