Page MenuHomePhabricator

ziqingluo-90 (Ziqing Luo)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 21 2022, 2:03 PM (39 w, 3 d)

Recent Activity

Yesterday

ziqingluo-90 updated the diff for D146342: [WIP][-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit.

Address comments.

Fri, Mar 24, 4:52 PM · Restricted Project, Restricted Project

Thu, Mar 23

ziqingluo-90 added inline comments to D146669: [-Wunsafe-buffer-usage] Hide fixits/suggestions behind an extra flag, -fsafe-buffer-usage-suggestions..
Thu, Mar 23, 11:58 AM · Restricted Project
ziqingluo-90 added inline comments to D146669: [-Wunsafe-buffer-usage] Hide fixits/suggestions behind an extra flag, -fsafe-buffer-usage-suggestions..
Thu, Mar 23, 11:50 AM · Restricted Project

Wed, Mar 22

ziqingluo-90 added a comment to D146342: [WIP][-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit.

The template specialization information is still available but we may need to print it by ourselves.
I will add a FIXME there and we will deal with it in a follow-up patch.

Wed, Mar 22, 12:27 PM · Restricted Project, Restricted Project

Tue, Mar 21

ziqingluo-90 updated the summary of D146342: [WIP][-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit.
Tue, Mar 21, 5:29 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D146450: [-Wunsafe-buffer-usage] Bug fix: Handles the assertion violations for code within macros..
Tue, Mar 21, 5:00 PM · Restricted Project
ziqingluo-90 updated the summary of D146342: [WIP][-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit.
Tue, Mar 21, 4:35 PM · Restricted Project, Restricted Project
ziqingluo-90 added a comment to D146342: [WIP][-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit.

Current tests are mostly fine except that some notes with message "in instantiation of ... " are missing. Although these notes are not emitted by our analysis, we better understand why things change.

This sounds familiar, I think @usama54321 ran into a similar problem from inside clang-tidy: https://discourse.llvm.org/t/clang-tidy-diagnostics-for-template-code/62909

Tue, Mar 21, 4:33 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D144905: [-Wunsafe-buffer-usage] Handle unevaluated contexts that contain unsafe buffer usages.
Tue, Mar 21, 2:43 PM · Restricted Project
ziqingluo-90 added inline comments to D146450: [-Wunsafe-buffer-usage] Bug fix: Handles the assertion violations for code within macros..
Tue, Mar 21, 11:50 AM · Restricted Project

Mon, Mar 20

ziqingluo-90 committed rG6a0f2e539b8e: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic
Mon, Mar 20, 5:07 PM · Restricted Project, Restricted Project
ziqingluo-90 closed D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.
Mon, Mar 20, 5:07 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D144064: [-Wunsafe-buffer-usage] Match unsafe pointers being casted to bool or participating in pointer subtractions.

Address comments

Mon, Mar 20, 2:46 PM · Restricted Project, Restricted Project

Fri, Mar 17

ziqingluo-90 requested review of D146342: [WIP][-Wunsafe-buffer-usage] Move the whole analysis to the end of a translation unit.
Fri, Mar 17, 5:12 PM · Restricted Project, Restricted Project

Thu, Mar 16

ziqingluo-90 updated the diff for D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.

Address comments

Thu, Mar 16, 2:48 PM · Restricted Project, Restricted Project

Tue, Mar 14

ziqingluo-90 added a comment to D145739: [-Wunsafe-buffer-usage][WIP] Group variables associated by pointer assignments.

I have one general question: suppose we have two variables A and B in the same group. So fix-its emitted for A includes fix-its for B and vice verse, right? Does it mean that we cannot apply all fix-its at once from the command line?

Tue, Mar 14, 4:53 PM · Restricted Project

Mon, Mar 13

ziqingluo-90 committed rG148dc8a2a80f: [-Wunsafe-buffer-usage] Reducing non-determinism in diagnostics output stream (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Reducing non-determinism in diagnostics output stream
Mon, Mar 13, 5:23 PM · Restricted Project, Restricted Project
ziqingluo-90 closed D145993: [-Wunsafe-buffer-usage] Reducing non-determinism in diagnostics output stream.
Mon, Mar 13, 5:22 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D145993: [-Wunsafe-buffer-usage] Reducing non-determinism in diagnostics output stream.

Address comments

Mon, Mar 13, 5:14 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D145993: [-Wunsafe-buffer-usage] Reducing non-determinism in diagnostics output stream.
Mon, Mar 13, 3:19 PM · Restricted Project, Restricted Project
ziqingluo-90 requested review of D145993: [-Wunsafe-buffer-usage] Reducing non-determinism in diagnostics output stream.
Mon, Mar 13, 3:17 PM · Restricted Project, Restricted Project

Fri, Mar 10

ziqingluo-90 accepted D144905: [-Wunsafe-buffer-usage] Handle unevaluated contexts that contain unsafe buffer usages.
Fri, Mar 10, 10:34 AM · Restricted Project

Thu, Mar 9

ziqingluo-90 added inline comments to D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.
Thu, Mar 9, 5:15 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D144304: [-Wunsafe-buffer-usage] Add a Fixable for pointer pre-increment.

Rebased and addressed comments.

Thu, Mar 9, 2:01 PM · Restricted Project, Restricted Project

Tue, Mar 7

ziqingluo-90 added inline comments to D144304: [-Wunsafe-buffer-usage] Add a Fixable for pointer pre-increment.
Tue, Mar 7, 6:02 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.

Thanks for the valuable discussion about the philosophy on the ideal forms of fix-its. In this case, I think &DRE.data()[any] and (DRE.data() + any) are both straightforward enough for the user to tell what has been changed and why we change that. And I believe both forms are idiomatic so that the user are likely happy with the form. I will keep this discussion in mind as we have other cases whose fix-its may be less idiomatic, such as D144304.

Tue, Mar 7, 5:45 PM · Restricted Project, Restricted Project

Mon, Mar 6

ziqingluo-90 updated the diff for D143048: [-Wunsafe-buffer-usage][WIP] Add T* -> span<T> Fix-Its for function parameters.

Still work in progress (but comments are very welcomed) ---there are several problems need to be solved:

  • To conservatively detect any overload of the function whose parameter is being fixed. Thus far, the analysis cannot see any overload declared after the analyzing function.
  • Fix-its conflict. Insertions of #include<span> and [[clang::unsafe_buffer_usage]] can conflict if both are inserted at the beginning of a file.
  • There are many unsupported cases.
  • Do we really want to fix parameters one at a time?
  • As the fix-its become more complicated, tests now are harder to read.
Mon, Mar 6, 6:43 PM · Restricted Project
ziqingluo-90 commandeered D143048: [-Wunsafe-buffer-usage][WIP] Add T* -> span<T> Fix-Its for function parameters.

Taking care of this patch on behalf of @jkorous

Mon, Mar 6, 12:45 PM · Restricted Project

Thu, Feb 23

ziqingluo-90 committed rGcd2652963b6b: [-Wunsafe-buffer-usage] Fixits for assignments to array subscript expressions (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Fixits for assignments to array subscript expressions
Thu, Feb 23, 3:03 PM · Restricted Project, Restricted Project
ziqingluo-90 closed D142794: [-Wunsafe-buffer-usage] Fixits for assignment to array subscript expr.
Thu, Feb 23, 3:03 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rGf78c34346635: [-Wunsafe-buffer-usage] Create Fix-Its only if they are emitted (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Create Fix-Its only if they are emitted
Thu, Feb 23, 2:48 PM · Restricted Project, Restricted Project
ziqingluo-90 closed D143697: [-Wunsafe-buffer-usage] Create Fix-Its only if they are emitted.
Thu, Feb 23, 2:48 PM · Restricted Project, Restricted Project

Feb 22 2023

ziqingluo-90 retitled D144304: [-Wunsafe-buffer-usage] Add a Fixable for pointer pre-increment from [WIP][-Wunsafe-buffer-usage] Add a Fixable for pointer pre-increment to [-Wunsafe-buffer-usage] Add a Fixable for pointer pre-increment.
Feb 22 2023, 2:40 PM · Restricted Project, Restricted Project
ziqingluo-90 retitled D144064: [-Wunsafe-buffer-usage] Match unsafe pointers being casted to bool or participating in pointer subtractions from [WIP][-Wunsafe-buffer-usage] Match unsafe pointers being casted to bool or participating in pointer subtractions to [-Wunsafe-buffer-usage] Match unsafe pointers being casted to bool or participating in pointer subtractions.
Feb 22 2023, 2:38 PM · Restricted Project, Restricted Project
ziqingluo-90 retitled D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic from [-Wunsafe-buffer-usage][WIP] Add Fixable for dereference of simple ptr arithmetic to [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.
Feb 22 2023, 2:36 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.

Address some of the comments.
Add handling for both *(ptr + n) and *(n + ptr).
Add handling for *((..(ptr + n) .. )
Remove the white space handling

Feb 22 2023, 1:36 PM · Restricted Project, Restricted Project
ziqingluo-90 commandeered D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.

Taking care of this revision on behalf of @jkorous

Feb 22 2023, 1:26 PM · Restricted Project, Restricted Project

Feb 21 2023

ziqingluo-90 added inline comments to D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.
Feb 21 2023, 6:14 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D142794: [-Wunsafe-buffer-usage] Fixits for assignment to array subscript expr.

Addressing comments

Feb 21 2023, 2:54 PM · Restricted Project, Restricted Project
ziqingluo-90 commandeered D142794: [-Wunsafe-buffer-usage] Fixits for assignment to array subscript expr.

Taking care of this patch on behalf of @jkorous.

Feb 21 2023, 2:52 PM · Restricted Project, Restricted Project
ziqingluo-90 retitled D142794: [-Wunsafe-buffer-usage] Fixits for assignment to array subscript expr from [-Wunsafe-buffer-usage][WIP] Fixits for assignment to array subscript expr to [-Wunsafe-buffer-usage] Fixits for assignment to array subscript expr.
Feb 21 2023, 2:25 PM · Restricted Project, Restricted Project

Feb 20 2023

ziqingluo-90 added reviewers for D143697: [-Wunsafe-buffer-usage] Create Fix-Its only if they are emitted: xazax.hun, aaron.ballman, gribozavr, ymandel, sgatev.
Feb 20 2023, 11:16 AM · Restricted Project, Restricted Project

Feb 17 2023

ziqingluo-90 requested review of D144304: [-Wunsafe-buffer-usage] Add a Fixable for pointer pre-increment.
Feb 17 2023, 3:51 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.
Feb 17 2023, 1:46 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.

Now we have different FixableGadgets that may match the same Stmt (representing a context).
So in order to discover all "Fixable"s, we can no longer match anyOf FixableGadgets' matchers. Instead, we match eachOf them.

Feb 17 2023, 1:44 PM · Restricted Project, Restricted Project
ziqingluo-90 retitled D143680: [-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers from [WIP][-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers to [-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers.
Feb 17 2023, 1:27 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D143680: [-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers.
Feb 17 2023, 1:25 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D143680: [-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers.
Feb 17 2023, 1:23 PM · Restricted Project, Restricted Project

Feb 16 2023

ziqingluo-90 added inline comments to D143680: [-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers.
Feb 16 2023, 4:07 PM · Restricted Project, Restricted Project
ziqingluo-90 retitled D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)` from [-Wunsafe-buffer-usage][WIP] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)` to [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.
Feb 16 2023, 3:42 PM · Restricted Project, Restricted Project

Feb 14 2023

ziqingluo-90 requested review of D144064: [-Wunsafe-buffer-usage] Match unsafe pointers being casted to bool or participating in pointer subtractions.
Feb 14 2023, 6:15 PM · Restricted Project, Restricted Project

Feb 13 2023

ziqingluo-90 updated the diff for D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.

Rebased.

Feb 13 2023, 11:28 AM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D143680: [-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers.

Rebased

Feb 13 2023, 11:16 AM · Restricted Project, Restricted Project

Feb 9 2023

ziqingluo-90 added inline comments to D143676: [-Wunsafe-buffer-usage] FixableGadget for handling pointer references under UPC..
Feb 9 2023, 6:45 PM · Restricted Project
ziqingluo-90 added inline comments to D143133: [-Wunsafe-buffer-usage][WIP] Add fixit for variables that have an assignment from another spanified pointer.
Feb 9 2023, 5:30 PM · Restricted Project
ziqingluo-90 added inline comments to D143206: [-Wunsafe-buffer-usage] Add Fixable for simple pointer dereference.
Feb 9 2023, 5:14 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D143676: [-Wunsafe-buffer-usage] FixableGadget for handling pointer references under UPC..
Feb 9 2023, 3:58 PM · Restricted Project
ziqingluo-90 added inline comments to D142795: [-Wunsafe-buffer-usage] Add Fixable for dereference of simple ptr arithmetic.
Feb 9 2023, 3:36 PM · Restricted Project, Restricted Project
ziqingluo-90 requested review of D143680: [-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers.
Feb 9 2023, 2:16 PM · Restricted Project, Restricted Project

Feb 8 2023

ziqingluo-90 committed rG03cc52dfd1db: [-Wunsafe-buffer-usage] To disable a test on Windows systems. (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] To disable a test on Windows systems.
Feb 8 2023, 5:39 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rG829bcb06ec43: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas
Feb 8 2023, 2:12 PM · Restricted Project, Restricted Project

Feb 7 2023

ziqingluo-90 added a reverting change for rGaef05b5dc5c5: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas: rG9aa00c8a3065: Revert "[-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas".
Feb 7 2023, 5:07 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rG9aa00c8a3065: Revert "[-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas" (authored by ziqingluo-90).
Revert "[-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas"
Feb 7 2023, 5:07 PM · Restricted Project, Restricted Project
ziqingluo-90 added a reverting change for D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas: rG9aa00c8a3065: Revert "[-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas".
Feb 7 2023, 5:06 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rGaef05b5dc5c5: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas
Feb 7 2023, 4:55 PM · Restricted Project, Restricted Project
ziqingluo-90 closed D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas.
Feb 7 2023, 4:54 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rG692da6245d71: [-Wunsafe-buffer-usage] Filter out conflicting fix-its (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Filter out conflicting fix-its
Feb 7 2023, 4:16 PM · Restricted Project, Restricted Project
ziqingluo-90 closed D141338: [-Wunsafe-buffer-usage] Filter out conflicting fix-its.
Feb 7 2023, 4:15 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rGbdf4f2bea50e: [-Wunsafe-buffer-usage] Generate fix-it for local variable declarations (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Generate fix-it for local variable declarations
Feb 7 2023, 3:44 PM · Restricted Project, Restricted Project
ziqingluo-90 added a reverting change for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations: rG622be09c8152: Revert "[-Wunsafe-buffer-usage] Generate fix-it for local variable declarations".
Feb 7 2023, 2:48 PM · Restricted Project, Restricted Project
ziqingluo-90 added a reverting change for rGa29e67614c3b: [-Wunsafe-buffer-usage] Generate fix-it for local variable declarations: rG622be09c8152: Revert "[-Wunsafe-buffer-usage] Generate fix-it for local variable declarations".
Feb 7 2023, 2:48 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rG622be09c8152: Revert "[-Wunsafe-buffer-usage] Generate fix-it for local variable declarations" (authored by ziqingluo-90).
Revert "[-Wunsafe-buffer-usage] Generate fix-it for local variable declarations"
Feb 7 2023, 2:48 PM · Restricted Project, Restricted Project
ziqingluo-90 committed rGa29e67614c3b: [-Wunsafe-buffer-usage] Generate fix-it for local variable declarations (authored by ziqingluo-90).
[-Wunsafe-buffer-usage] Generate fix-it for local variable declarations
Feb 7 2023, 1:18 PM · Restricted Project, Restricted Project
ziqingluo-90 closed D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.
Feb 7 2023, 1:18 PM · Restricted Project, Restricted Project

Feb 6 2023

ziqingluo-90 updated the diff for D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.

Let fixUPCAddressofArraySubscriptWithSpan return std::nullopt instead of an empty list when we should give up on the fix-it.

Feb 6 2023, 5:06 PM · Restricted Project, Restricted Project
ziqingluo-90 added a comment to D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.

Why do we prefer DRE.data() + any to &DRE.data()[any]? It could be much less intrusive this way, and the safety guarantees are the same.

Feb 6 2023, 4:30 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.
Feb 6 2023, 3:17 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.
Feb 6 2023, 3:05 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.
Feb 6 2023, 1:39 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

To avoid emitting incorrect fix-its for array subscripts on span objects:

  • For unsafe operations of the form s[e] where s is being transformed to be a span, we only emit fix-its for s[e] when e is a non-negative integer literal or e has an unsigned integer type.
Feb 6 2023, 1:39 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

Fixed a bug in manipulating source locations:

Feb 6 2023, 12:47 PM · Restricted Project, Restricted Project

Feb 3 2023

ziqingluo-90 updated the summary of D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas.
Feb 3 2023, 2:00 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.
Feb 3 2023, 12:50 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas.

Change the fix-it test style

Feb 3 2023, 11:19 AM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

address comments

Feb 3 2023, 10:55 AM · Restricted Project, Restricted Project

Feb 1 2023

ziqingluo-90 requested review of D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`.
Feb 1 2023, 6:38 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

rebase

Feb 1 2023, 2:31 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

To attach fix-its to notes instead of warnings.
Fix the ending '\0' issue raised by @jkorous

Feb 1 2023, 1:24 PM · Restricted Project, Restricted Project

Jan 27 2023

ziqingluo-90 updated the diff for D141338: [-Wunsafe-buffer-usage] Filter out conflicting fix-its.
Jan 27 2023, 3:09 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D141338: [-Wunsafe-buffer-usage] Filter out conflicting fix-its.

Rebase the change

Jan 27 2023, 3:06 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

Addressing comments

Jan 27 2023, 12:49 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.
Jan 27 2023, 12:33 PM · Restricted Project, Restricted Project

Jan 24 2023

ziqingluo-90 updated the diff for D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas.

Put the implementation of the opt-out pragma completely in Preprocessor.
Add an opt-out pragma test for fix-its.

Jan 24 2023, 4:51 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

Addressed the minor comments

Jan 24 2023, 2:32 PM · Restricted Project, Restricted Project

Jan 23 2023

ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

Refactored the fix-it generation code to stop using the pretty-printer.

Jan 23 2023, 5:52 PM · Restricted Project, Restricted Project

Jan 19 2023

ziqingluo-90 added inline comments to D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas.
Jan 19 2023, 4:06 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas.
Jan 19 2023, 3:57 PM · Restricted Project, Restricted Project
ziqingluo-90 retitled D141338: [-Wunsafe-buffer-usage] Filter out conflicting fix-its from [WIP][-Wunsafe-buffer-usage] Filter out conflicting fix-its to [-Wunsafe-buffer-usage] Filter out conflicting fix-its.
Jan 19 2023, 2:24 PM · Restricted Project, Restricted Project
ziqingluo-90 added inline comments to D140179: [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas.
Jan 19 2023, 2:14 PM · Restricted Project, Restricted Project
ziqingluo-90 updated the diff for D139737: [-Wunsafe-buffer-usage] Initiate Fix-it generation for local variable declarations.

Rebased the code w.r.t. a series of refactoring in [-Wunsafe-buffer-usage].
Added a FixableGadget for array subscripts of the form DRE[*] in the context of lvalue-to-rvalue casting.

Jan 19 2023, 1:35 PM · Restricted Project, Restricted Project