Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(44)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

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

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

Patch Set 1 #

Total comments: 6
Created: 14 years, 4 months ago
Download [raw] [tar.bz2]
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
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).
14 years, 4 months ago (2011年09月07日 20:10:10 UTC) #1
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#ne...
lib/Analysis/ThreadSafety.cpp:172: buildMutexID(Parent, Parent);
This should be buildMutexID(Parent, 0).
Sign in to reply to this message.
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 ...
14 years, 4 months ago (2011年09月08日 23:57:04 UTC) #2
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#ne...
lib/Analysis/ThreadSafety.cpp:172: buildMutexID(Parent, Parent);
On 2011年09月07日 20:10:11, delesley wrote:
> This should be buildMutexID(Parent, 0). 
Done.
Sign in to reply to this message.
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 ...
14 years, 4 months ago (2011年09月09日 03:50:18 UTC) #3
Good to go w/ these comments addressed.
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) {}
"Bogus" isn't really a good technical term here. ;] How about "Invalid"?
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">,
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..
Sign in to reply to this message.
supertri
Committed! 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 handleBogusLockExp(SourceLocation Loc) {} On 2011年09月09日 03:50:18, ...
14 years, 4 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

AltStyle によって変換されたページ (->オリジナル) /