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

Issue 4954041: Adding support for guarded_by/var and pt_guarded_by/var annotations

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
Visibility:
Public.

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixes based on reviewer feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -5 lines) Patch
M include/clang/Basic/DiagnosticSemaKinds.td View 1 1 chunk +13 lines, -0 lines 0 comments Download
M lib/Sema/AnalysisBasedWarnings.cpp View 1 3 chunks +119 lines, -4 lines 0 comments Download
M test/SemaCXX/warn-thread-safety-analysis.cpp View 1 2 chunks +113 lines, -1 line 0 comments Download

Messages

Total messages: 3
chandlerc
http://codereview.appspot.com/4954041/diff/1/include/clang/Basic/DiagnosticSemaKinds.td File include/clang/Basic/DiagnosticSemaKinds.td (right): http://codereview.appspot.com/4954041/diff/1/include/clang/Basic/DiagnosticSemaKinds.td#newcode1411 include/clang/Basic/DiagnosticSemaKinds.td:1411: "accessing dereferenced variable '%0' requires lock '%1'">, I wonder ...
12 years, 8 months ago (2011-08-29 17:52:41 UTC) #1
supertri
Made these changes. Ready to commit? http://codereview.appspot.com/4954041/diff/1/include/clang/Basic/DiagnosticSemaKinds.td File include/clang/Basic/DiagnosticSemaKinds.td (right): http://codereview.appspot.com/4954041/diff/1/include/clang/Basic/DiagnosticSemaKinds.td#newcode1411 include/clang/Basic/DiagnosticSemaKinds.td:1411: "accessing dereferenced variable ...
12 years, 8 months ago (2011-08-29 18:40:51 UTC) #2
chandlerc
12 years, 8 months ago (2011-08-29 20:31:14 UTC) #3
LGTM

(modulo the comment below)

http://codereview.appspot.com/4954041/diff/1/lib/Sema/AnalysisBasedWarnings.cpp
File lib/Sema/AnalysisBasedWarnings.cpp (right):

http://codereview.appspot.com/4954041/diff/1/lib/Sema/AnalysisBasedWarnings.c...
lib/Sema/AnalysisBasedWarnings.cpp:867: /// \param Exp An expression that has
been read or written.
On 2011/08/29 18:40:51, supertri wrote:
> On 2011/08/29 17:52:41, chandlerc wrote:
> > Parameter commets shouldn't be placed in the middle of the comment block.
> > 
> > This entire comment is really hard to read. It could probably be cleaned up
> some
> > to flow better and/or be formatted better.
> 
> I deleted the "However" block and re-arranged the comment.

I think we do need to document the limitations of this approach as currently
implemented.
Sign in to reply to this message.

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