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

Issue 5676055: Allow thread safety attributes on function definitions.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by delesley
Modified:
9 years, 4 months ago
Reviewers:
Richard Smith
Visibility:
Public.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update to address comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -19 lines) Patch
M include/clang/Basic/DiagnosticGroups.td View 1 1 chunk +2 lines, -0 lines 1 comment Download
M include/clang/Basic/DiagnosticParseKinds.td View 1 1 chunk +3 lines, -0 lines 1 comment Download
M include/clang/Parse/Parser.h View 3 chunks +7 lines, -3 lines 0 comments Download
M lib/Parse/ParseDecl.cpp View 1 10 chunks +42 lines, -13 lines 0 comments Download
M lib/Parse/ParseTemplate.cpp View 3 chunks +8 lines, -1 line 0 comments Download
M lib/Parse/Parser.cpp View 1 4 chunks +19 lines, -2 lines 0 comments Download
M test/Parser/attributes.c View 1 1 chunk +35 lines, -0 lines 0 comments Download
M test/SemaCXX/cxx0x-cursory-default-delete.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M test/SemaCXX/warn-thread-safety-analysis.cpp View 1 1 chunk +115 lines, -0 lines 0 comments Download
M test/SemaCXX/warn-thread-safety-parsing.cpp View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 4
delesley
http://codereview.appspot.com/5676055/diff/1/lib/Parse/ParseDecl.cpp File lib/Parse/ParseDecl.cpp (right): http://codereview.appspot.com/5676055/diff/1/lib/Parse/ParseDecl.cpp#newcode785 lib/Parse/ParseDecl.cpp:785: LA.D->isFunctionOrFunctionTemplate(); Already fixed these tabs.
12 years, 2 months ago (2012-02-15 19:20:43 UTC) #1
Richard Smith
http://codereview.appspot.com/5676055/diff/1/include/clang/Basic/DiagnosticParseKinds.td File include/clang/Basic/DiagnosticParseKinds.td (right): http://codereview.appspot.com/5676055/diff/1/include/clang/Basic/DiagnosticParseKinds.td#newcode156 include/clang/Basic/DiagnosticParseKinds.td:156: InGroup<Attributes>; This matches gcc's diagnostic, but isn't really true: ...
12 years, 2 months ago (2012-02-15 21:10:14 UTC) #2
delesley
http://codereview.appspot.com/5676055/diff/1/include/clang/Basic/DiagnosticParseKinds.td File include/clang/Basic/DiagnosticParseKinds.td (right): http://codereview.appspot.com/5676055/diff/1/include/clang/Basic/DiagnosticParseKinds.td#newcode156 include/clang/Basic/DiagnosticParseKinds.td:156: InGroup<Attributes>; On 2012/02/15 21:10:14, Richard Smith wrote: > This ...
12 years, 2 months ago (2012-02-16 00:23:47 UTC) #3
Richard Smith
12 years, 2 months ago (2012-02-16 01:04:12 UTC) #4
http://codereview.appspot.com/5676055/diff/10/include/clang/Basic/DiagnosticG...
File include/clang/Basic/DiagnosticGroups.td (right):

http://codereview.appspot.com/5676055/diff/10/include/clang/Basic/DiagnosticG...
include/clang/Basic/DiagnosticGroups.td:365: def GccCompat :
DiagGroup<"gcc-compatibility">;
gcc-compat rather than gcc-compatibility, for consistency with c++-compat,
c++98-compat and c++11-compat.

http://codereview.appspot.com/5676055/diff/10/include/clang/Basic/DiagnosticP...
File include/clang/Basic/DiagnosticParseKinds.td (right):

http://codereview.appspot.com/5676055/diff/10/include/clang/Basic/DiagnosticP...
include/clang/Basic/DiagnosticParseKinds.td:155: "GCC does not allow attribute
\'%0\' in this position on a function definition">,
You don't need to escape these 's. Also, please wrap this to get under 80
columns. tablegen supports C-style string concatenations.
Sign in to reply to this message.

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