pestctrl added a comment.
@efriedma I think you were the last person to touch this code regarding cases
where pointer comparisons are invalid. Could you have a look at my changes and
gimme some feedback?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.or
pestctrl added a comment.
Ah, you're right. I don't see the clause in the C11 standard. I'll see what I
can do. Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
___
pestctrl added a comment.
Hey @efriedma, thanks again for the comments.
Yes, you were correct in that this message should only be emitted for
relational comparisons.
Regarding having the warning off by default, I did want to point out that GCC
enables this warning by default: https://c.godbolt
pestctrl updated this revision to Diff 265807.
pestctrl added a comment.
Changed error to warning, only emit during a relational operation
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/incl
pestctrl updated this revision to Diff 265898.
pestctrl added a comment.
Added warning to group c99-extensions, only enable warning when C99 or less
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
pestctrl updated this revision to Diff 265907.
pestctrl added a comment.
Both extension and extwarn need to be in the c99-extensions group
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/incl
pestctrl updated this revision to Diff 265908.
pestctrl added a comment.
Rebase on master.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/l
pestctrl updated this revision to Diff 266086.
pestctrl added a comment.
Rebase on master?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/l
pestctrl updated this revision to Diff 266214.
pestctrl added a comment.
Forgot to add a comma >_<
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
pestctrl marked an inline comment as done.
pestctrl added inline comments.
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:6447
+ InGroup;
+def warn_typecheck_compare_complete_incomplete_pointers : ExtWarn<
+ "ordered comparison of complete and incomplete pointers
pestctrl updated this revision to Diff 266645.
pestctrl marked an inline comment as done.
pestctrl added a comment.
ext_typecheck_compare_complete_incomplete_pointers:
- Moved to group C11.
ext_typecheck_compare_complete_incomplete_pointers:
- Changed to Warning from ExtWarn
- Moved to group C9
pestctrl updated this revision to Diff 266880.
pestctrl added a comment.
clang-format for the test file
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKinds
pestctrl updated this revision to Diff 267876.
pestctrl added a comment.
Updated warning message to be more descriptive
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/Dia
pestctrl updated this revision to Diff 267901.
pestctrl added a comment.
Updated test with new error message
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSema
pestctrl updated this revision to Diff 267920.
pestctrl added a comment.
Tests need to contain the full error message
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/Diagn
pestctrl updated this revision to Diff 267947.
pestctrl added a comment.
Copy pasted error message
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
pestctrl updated this revision to Diff 267950.
pestctrl added a comment.
Copy pasted error messages
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
pestctrl added a comment.
@efriedma Any more comments?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
h
pestctrl marked an inline comment as done.
pestctrl added inline comments.
Comment at: clang/lib/Sema/SemaExpr.cpp:11571
+ Diag(Loc,
+ getLangOpts().C11
+ ? diag::ext_typecheck_compare_complete_incomplete_pointers
efriedma
pestctrl updated this revision to Diff 269824.
pestctrl added a comment.
Don't diagnose outside of C99
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.
pestctrl marked 2 inline comments as done.
pestctrl added inline comments.
Comment at: clang/lib/Sema/SemaExpr.cpp:11571
+ Diag(Loc,
+ getLangOpts().C11
+ ? diag::ext_typecheck_compare_complete_incomplete_pointers
efriedma
pestctrl marked 2 inline comments as done.
pestctrl added inline comments.
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:6451
+ "%1 is %select{|in}3complete">,
+ InGroup;
def ext_typecheck_ordered_comparison_of_function_pointers : ExtWarn<
efrie
pestctrl marked an inline comment as done.
pestctrl added inline comments.
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:6451
+ "%1 is %select{|in}3complete">,
+ InGroup;
def ext_typecheck_ordered_comparison_of_function_pointers : ExtWarn<
rsmit
pestctrl updated this revision to Diff 270139.
pestctrl added a comment.
Moved the extension to C11 group
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKin
pestctrl marked 5 inline comments as done.
pestctrl added a comment.
@rsmith @efriedma Any more comments?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
___
cf
pestctrl added a comment.
Benson Chu
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm
pestctrl created this revision.
pestctrl added a reviewer: rsmith.
pestctrl added a project: clang.
Clang is missing one of the conditions for C99 6.5.9p2, where comparison
between pointers must either both point to incomplete types or both point to
complete types. This patch adds an extra check
pestctrl updated this revision to Diff 264089.
pestctrl added a comment.
Updated test to also expect a warning along with the newly added error.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang/include/clang/Basic/DiagnosticSemaKin
pestctrl updated this revision to Diff 264697.
pestctrl edited the summary of this revision.
pestctrl added a comment.
Rebased on top of master
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
Files:
clang
pestctrl updated this revision to Diff 366513.
pestctrl added a comment.
Update comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99732/new/
https://reviews.llvm.org/D99732
Files:
clang/lib/AST/Decl.cpp
clang/test/CodeGen/attr-tentative-de
pestctrl updated this revision to Diff 366522.
pestctrl added a comment.
Only look for attributes in check string for unit test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99732/new/
https://reviews.llvm.org/D99732
Files:
clang/lib/AST/Decl.cp
pestctrl added a comment.
@mizvekov Thanks for the help! I recently got commit access, so I think I can
commit this myself.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99732/new/
https://reviews.llvm.org/D99732
_
pestctrl marked an inline comment as done.
pestctrl added a comment.
@rsmith Ping!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99732/new/
https://reviews.llvm.org/D99732
___
cfe-commits mailing list
cf
pestctrl created this revision.
pestctrl added reviewers: akyrtzi, rsmith.
pestctrl added a project: clang.
pestctrl requested review of this revision.
Herald added a subscriber: cfe-commits.
I noticed this bug because attributes were being dropped from tentative
definitions after the second tenta
pestctrl updated this revision to Diff 335113.
pestctrl edited the summary of this revision.
pestctrl added a comment.
Removed extra pass over decl chain for acting definition.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99732/new/
https://review
pestctrl added inline comments.
Comment at: clang/lib/AST/Decl.cpp:2192
DefinitionKind Kind = isThisDeclarationADefinition();
- if (Kind != TentativeDefinition)
+ if (Kind != TentativeDefinition || hasDefinition())
return nullptr;
rsmith wrote:
> Is the
pestctrl added a comment.
Ping!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99732/new/
https://reviews.llvm.org/D99732
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9a5f38885056: [AST] Pick last tentative definition as the
acting definition (authored by pestctrl).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99732/new/
38 matches
Mail list logo