Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(410)

Issue 4968075: Resolving "this" expressions, along with a new warning for future unhandled cases

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by supertri
Modified:
12 years, 8 months ago
Reviewers:
chandlerc, delesley
Visibility:
Public.

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -22 lines) Patch
M include/clang/Analysis/Analyses/ThreadSafety.h View 1 chunk +1 line, -0 lines 2 comments Download
M include/clang/Basic/DiagnosticSemaKinds.td View 1 chunk +3 lines, -0 lines 2 comments Download
M lib/Analysis/ThreadSafety.cpp View 9 chunks +37 lines, -22 lines 2 comments Download
M lib/Sema/AnalysisBasedWarnings.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M test/SemaCXX/warn-thread-safety-analysis.cpp View 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 4
delesley
http://codereview.appspot.com/4968075/diff/1/lib/Analysis/ThreadSafety.cpp File lib/Analysis/ThreadSafety.cpp (right): http://codereview.appspot.com/4968075/diff/1/lib/Analysis/ThreadSafety.cpp#newcode172 lib/Analysis/ThreadSafety.cpp:172: buildMutexID(Parent, Parent); This should be buildMutexID(Parent, 0).
12 years, 8 months ago (2011-09-07 20:10:10 UTC) #1
supertri
http://codereview.appspot.com/4968075/diff/1/lib/Analysis/ThreadSafety.cpp File lib/Analysis/ThreadSafety.cpp (right): http://codereview.appspot.com/4968075/diff/1/lib/Analysis/ThreadSafety.cpp#newcode172 lib/Analysis/ThreadSafety.cpp:172: buildMutexID(Parent, Parent); On 2011/09/07 20:10:11, delesley wrote: > This ...
12 years, 8 months ago (2011-09-08 23:57:04 UTC) #2
chandlerc
Good to go w/ these comments addressed. http://codereview.appspot.com/4968075/diff/1/include/clang/Analysis/Analyses/ThreadSafety.h File include/clang/Analysis/Analyses/ThreadSafety.h (right): http://codereview.appspot.com/4968075/diff/1/include/clang/Analysis/Analyses/ThreadSafety.h#newcode50 include/clang/Analysis/Analyses/ThreadSafety.h:50: virtual void ...
12 years, 8 months ago (2011-09-09 03:50:18 UTC) #3
supertri
12 years, 8 months ago (2011-09-09 16:23:38 UTC) #4
Committed!

http://codereview.appspot.com/4968075/diff/1/include/clang/Analysis/Analyses/...
File include/clang/Analysis/Analyses/ThreadSafety.h (right):

http://codereview.appspot.com/4968075/diff/1/include/clang/Analysis/Analyses/...
include/clang/Analysis/Analyses/ThreadSafety.h:50: virtual void
handleBogusLockExp(SourceLocation Loc) {}
On 2011/09/09 03:50:18, chandlerc wrote:
> "Bogus" isn't really a good technical term here. ;] How about "Invalid"?

Done.

http://codereview.appspot.com/4968075/diff/1/include/clang/Basic/DiagnosticSe...
File include/clang/Basic/DiagnosticSemaKinds.td (right):

http://codereview.appspot.com/4968075/diff/1/include/clang/Basic/DiagnosticSe...
include/clang/Basic/DiagnosticSemaKinds.td:1427: "cannot resolve lock
expression">,
On 2011/09/09 03:50:18, chandlerc wrote:
> This doesn't really tell the user what went wrong. Why not? What does it even
> mean to ben 'unable to resolve'? Not sure how much we can do here right away.
> Just explaining what resolve means might help: "cannot resolve lock expression
> to a lockable object" or some such..

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b