You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is a great idea, thanks @rdb! I might have time to implement that this week, but if you're able to add it yourself, PRs are always greatly appreciated!
clang-tidy can be extremely verbose, adding lots of context that can be useful but is often redundant and can cause extremely long comments.
It would be great if the additional context, if present, could be hidden underneath a collapsible section, like so:
warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn]
return result; ^
Additional context
panda/src/downloadertools/multify.cxx:784: Assuming 'argc' is >= 2
panda/src/downloadertools/multify.cxx:784: Taking false branch
panda/src/downloadertools/multify.cxx:791: 'argc' is >= 2
panda/src/downloadertools/multify.cxx:791: Taking true branch
panda/src/downloadertools/multify.cxx:792: Assuming the condition is false
panda/src/downloadertools/multify.cxx:792: Left side of '&&' is false
panda/src/downloadertools/multify.cxx:807: Left side of '&&' is false
panda/src/downloadertools/multify.cxx:817: Assuming the condition is false
while (flag != EOF) { ^
panda/src/downloadertools/multify.cxx:817: Loop condition is false. Execution continues on line 953
while (flag != EOF) { ^
panda/src/downloadertools/multify.cxx:956: Assuming 'create' is false
panda/src/downloadertools/multify.cxx:956: '?' condition is false
panda/src/downloadertools/multify.cxx:956: Assuming 'append' is false
panda/src/downloadertools/multify.cxx:956: '?' condition is false
panda/src/downloadertools/multify.cxx:956: Assuming 'update' is false
panda/src/downloadertools/multify.cxx:956: '?' condition is false
panda/src/downloadertools/multify.cxx:956: Assuming 'tlist' is false
panda/src/downloadertools/multify.cxx:956: '?' condition is false
panda/src/downloadertools/multify.cxx:956: Assuming 'extract' is true
panda/src/downloadertools/multify.cxx:956: '?' condition is true
panda/src/downloadertools/multify.cxx:956: Assuming 'kill_cmd' is false
panda/src/downloadertools/multify.cxx:956: '?' condition is false
panda/src/downloadertools/multify.cxx:956: Taking false branch
panda/src/downloadertools/multify.cxx:962: Assuming 'got_multifile_name' is true
if (!got_multifile_name) { ^
panda/src/downloadertools/multify.cxx:962: Taking false branch
if (!got_multifile_name) { ^
panda/src/downloadertools/multify.cxx:977: Assuming 'i' is >= 'argc'
panda/src/downloadertools/multify.cxx:977: Loop condition is false. Execution continues on line 982
panda/src/downloadertools/multify.cxx:982: Assuming 'create' is true
if (create || append || update) { ^
panda/src/downloadertools/multify.cxx:982: Left side of '||' is true
if (create || append || update) { ^
panda/src/downloadertools/multify.cxx:983: Calling 'add_files'
panda/src/downloadertools/multify.cxx:381: Assuming 'append' is false
if (append || update) { ^
panda/src/downloadertools/multify.cxx:381: Left side of '||' is false
if (append || update) { ^
panda/src/downloadertools/multify.cxx:381: Assuming 'update' is false
if (append || update) { ^
panda/src/downloadertools/multify.cxx:381: Taking false branch
if (append || update) { ^
panda/src/downloadertools/multify.cxx:387: Assuming the condition is false
panda/src/downloadertools/multify.cxx:387: Taking false branch
panda/src/downloadertools/multify.cxx:396: Assuming 'got_record_timestamp_flag' is false
if (got_record_timestamp_flag) { ^
panda/src/downloadertools/multify.cxx:396: Taking false branch
if (got_record_timestamp_flag) { ^
panda/src/downloadertools/multify.cxx:400: Assuming 'encryption_flag' is false
if (encryption_flag) { ^
panda/src/downloadertools/multify.cxx:400: Taking false branch
if (encryption_flag) { ^
panda/src/downloadertools/multify.cxx:405: Assuming 'got_header_prefix' is false
if (got_header_prefix) { ^
panda/src/downloadertools/multify.cxx:405: Taking false branch
if (got_header_prefix) { ^
panda/src/downloadertools/multify.cxx:409: Assuming 'scale_factor' is equal to 0
panda/src/downloadertools/multify.cxx:409: Left side of '&&' is false
panda/src/downloadertools/multify.cxx:419: Loop condition is false. Execution continues on line 426
for (si = params.begin(); si != params.end(); ++si) { ^
panda/src/downloadertools/multify.cxx:425: Assuming 'got_chdir_to' is false
if (got_chdir_to && !chdir_to.chdir()) { ^
panda/src/downloadertools/multify.cxx:425: Left side of '&&' is false
if (got_chdir_to && !chdir_to.chdir()) { ^
panda/src/downloadertools/multify.cxx:430: Calling 'do_add_files'
bool okflag = do_add_files(multifile, filenames); ^
panda/src/downloadertools/multify.cxx:338: Loop condition is true. Entering loop body
for (fi = filenames.begin(); fi != filenames.end(); ++fi) { ^
panda/src/downloadertools/multify.cxx:341: Assuming the condition is false
if (subfile_name.is_directory()) { ^
panda/src/downloadertools/multify.cxx:341: Taking false branch
if (subfile_name.is_directory()) { ^
panda/src/downloadertools/multify.cxx:346: Assuming the condition is false
panda/src/downloadertools/multify.cxx:346: Taking false branch
panda/src/downloadertools/multify.cxx:351: Taking false branch
if (is_text(subfile_name)) { ^
panda/src/downloadertools/multify.cxx:358: Assuming 'update' is false
if (update) { ^
panda/src/downloadertools/multify.cxx:358: Taking false branch
if (update) { ^
panda/src/downloadertools/multify.cxx:363: Calling 'get_compression_level'
panda/src/downloadertools/multify.cxx:297: 'result' declared without an initial value
int result; ^
panda/src/downloadertools/multify.cxx:298: Assuming 'compress_flag' is true
if (!compress_flag) { ^
panda/src/downloadertools/multify.cxx:298: Taking false branch
if (!compress_flag) { ^
panda/src/downloadertools/multify.cxx:303: Calling 'operator!='
if (dont_compress.find(ext) != dont_compress.end()) { ^
/usr/include/c++/11/bits/stl_tree.h:401: Assuming '__x._M_node' is equal to '__y._M_node'
/usr/include/c++/11/bits/stl_tree.h:401: Returning zero, which participates in a condition later
panda/src/downloadertools/multify.cxx:303: Returning from 'operator!='
if (dont_compress.find(ext) != dont_compress.end()) { ^
panda/src/downloadertools/multify.cxx:303: Taking false branch
if (dont_compress.find(ext) != dont_compress.end()) { ^
panda/src/downloadertools/multify.cxx:309: Undefined or garbage value returned to caller
return result; ^
The text was updated successfully, but these errors were encountered: