Click here to Skip to main content
14,661,403 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Pet the cat, own the bathrobe: Linus Torvalds on working from home Pin
Mark_Wallace22-Mar-20 22:57
MemberMark_Wallace22-Mar-20 22:57 
GeneralRe: Pet the cat, own the bathrobe: Linus Torvalds on working from home Pin
Dan Neely23-Mar-20 2:54
MemberDan Neely23-Mar-20 2:54 
NewsMicrosoft shares sneak peek of upcoming Windows 10 features Pin
Kent Sharkey22-Mar-20 8:00
staffKent Sharkey22-Mar-20 8:00 
GeneralRe: Microsoft shares sneak peek of upcoming Windows 10 features Pin
Nelek22-Mar-20 10:08
protectorNelek22-Mar-20 10:08 
GeneralRe: Microsoft shares sneak peek of upcoming Windows 10 features Pin
David O'Neil22-Mar-20 10:52
professionalDavid O'Neil22-Mar-20 10:52 
GeneralRe: Microsoft shares sneak peek of upcoming Windows 10 features Pin
Mark_Wallace23-Mar-20 1:44
MemberMark_Wallace23-Mar-20 1:44 
NewsDeepCode brings AI-powered code review to C and C++ Pin
Kent Sharkey19-Mar-20 11:30
staffKent Sharkey19-Mar-20 11:30 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas19-Mar-20 14:20
professionalGreg Utas19-Mar-20 14:20 
I just authorized it to analyze RSC, which is written in C++ (first link in .sig below). Let's see what it finds. I'm sure there will be some "obvious" things, but I'm more interested in how "deep" it goes.

EDIT: That was fast! It analyzed 745 files in 0.336 seconds and returned 7 types of warnings:
  • object used after being freed (looks legitimate, but somehow the code must muddle through!)
  • possible nullptr dereference (2 occurrences in 1 file)
  • possible memory leaks (109 occurrences in 21 files--I hope most of these are spurious!)
  • divide by zero (deliberate, to test the ability to handle SIGFPE)
  • expression will always evaluate to false (19 occurrences in 10 files)
  • expression will always evaluate to true (11 occurrences in 7 files)
  • unreachable code (5 occurrences in 4 files)
I need to investigate most of them. It also made two suggestions:
  • use empty() instead of size() == 0 to check for an empty string (sure)
  • operator new and operator delete should be implemented in pairs (22 occurrences in 21 files: likely a false alarm)
I would give it a Thumbs Up | :thumbsup:


modified 19-Mar-20 20:56pm.

GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace19-Mar-20 22:35
MemberMark_Wallace19-Mar-20 22:35 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Joe Woodbury20-Mar-20 8:28
professionalJoe Woodbury20-Mar-20 8:28 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 9:27
professionalGreg Utas20-Mar-20 9:27 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Member 798912220-Mar-20 11:08
MemberMember 798912220-Mar-20 11:08 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 11:30
professionalGreg Utas20-Mar-20 11:30 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace19-Mar-20 22:37
MemberMark_Wallace19-Mar-20 22:37 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Dan Neely20-Mar-20 2:23
MemberDan Neely20-Mar-20 2:23 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 4:05
professionalGreg Utas20-Mar-20 4:05 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace20-Mar-20 5:13
MemberMark_Wallace20-Mar-20 5:13 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 5:29
professionalGreg Utas20-Mar-20 5:29 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Member 798912220-Mar-20 6:30
MemberMember 798912220-Mar-20 6:30 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 7:16
professionalGreg Utas20-Mar-20 7:16 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Member 798912220-Mar-20 7:43
MemberMember 798912220-Mar-20 7:43 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Joe Woodbury20-Mar-20 8:52
professionalJoe Woodbury20-Mar-20 8:52 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Member 798912220-Mar-20 6:11
MemberMember 798912220-Mar-20 6:11 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 6:33
professionalGreg Utas20-Mar-20 6:33 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
ZurdoDev20-Mar-20 6:12
mveZurdoDev20-Mar-20 6:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.