Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

li.zhe.hua (Eric Li)
User

Projects

User does not belong to any projects.

User Details

User Since
Jul 7 2021, 8:28 AM (116 w, 2 d)

Recent Activity

Aug 24 2023

li.zhe.hua accepted D158771: [clang][tooling] Fix `name` range-selector to handle TypeLocs correctly..
Aug 24 2023, 1:45 PM · Restricted Project, Restricted Project

Jun 6 2023

li.zhe.hua committed rG3cb6ead77c66: [clang][TypePrinter] Add option to skip over elaborated types (authored by li.zhe.hua).
[clang][TypePrinter] Add option to skip over elaborated types
Jun 6 2023, 12:12 PM · Restricted Project, Restricted Project
li.zhe.hua closed D149677: [clang][TypePrinter] Add option to skip over elaborated types.
Jun 6 2023, 12:11 PM · Restricted Project, Restricted Project

May 26 2023

li.zhe.hua added inline comments to D149677: [clang][TypePrinter] Add option to skip over elaborated types.
May 26 2023, 10:58 AM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D149677: [clang][TypePrinter] Add option to skip over elaborated types.

Switch option name to SuppressElaboration

May 26 2023, 10:58 AM · Restricted Project, Restricted Project

May 17 2023

li.zhe.hua added a comment to D149677: [clang][TypePrinter] Add option to skip over elaborated types.

Some additional context: I'm working on a refactoring tool to, in part, deprecate an alias by replacing it with its definition. That functionality by itself could be provided through something like a clang-tidy, so I say "initially".

We typically don't add new printing policies in tree without some need for them in the project itself (otherwise this becomes a maintenance problem), and I'm not certain I see a strong need for this to live in Clang. I think it might be best to wait until you're closer to having a clang-tidy check that would use this functionality before we continue with this patch. WDYT?

May 17 2023, 9:51 AM · Restricted Project, Restricted Project

May 4 2023

li.zhe.hua added a comment to D149677: [clang][TypePrinter] Add option to skip over elaborated types.

Will this new printing policy be used in tree?

May 4 2023, 1:54 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D149677: [clang][TypePrinter] Add option to skip over elaborated types.

Accept suggested edits.

May 4 2023, 1:53 PM · Restricted Project, Restricted Project

May 2 2023

li.zhe.hua added a reviewer for D149677: [clang][TypePrinter] Add option to skip over elaborated types: aaron.ballman.
May 2 2023, 12:21 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D149677: [clang][TypePrinter] Add option to skip over elaborated types.
May 2 2023, 12:08 PM · Restricted Project, Restricted Project

Jan 18 2023

li.zhe.hua committed rG2307029b1a43: [libTooling] Rename `getRangeForEdit` as `getFileRangeForEdit` (authored by li.zhe.hua).
[libTooling] Rename `getRangeForEdit` as `getFileRangeForEdit`
Jan 18 2023, 10:59 AM · Restricted Project, Restricted Project
li.zhe.hua closed D141636: [libTooling] Rename `getRangeForEdit` as `getFileRangeForEdit`.
Jan 18 2023, 10:58 AM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D141636: [libTooling] Rename `getRangeForEdit` as `getFileRangeForEdit`.

Update test name

Jan 18 2023, 10:57 AM · Restricted Project, Restricted Project

Jan 12 2023

li.zhe.hua committed rG7d0cdbf69edf: [libTooling] Add `getFileRange` as an alternative to `getRangeForEdit` (authored by li.zhe.hua).
[libTooling] Add `getFileRange` as an alternative to `getRangeForEdit`
Jan 12 2023, 2:45 PM · Restricted Project, Restricted Project
li.zhe.hua closed D141634: [libTooling] Add `getFileRange` as an alternative to `getRangeForEdit`.
Jan 12 2023, 2:44 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D141634: [libTooling] Add `getFileRange` as an alternative to `getRangeForEdit`.

Try this again...

Jan 12 2023, 2:40 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D141634: [libTooling] Add `getFileRange` as an alternative to `getRangeForEdit`.

Upload correct commit this time...

Jan 12 2023, 2:39 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D141634: [libTooling] Add `getFileRange` as an alternative to `getRangeForEdit`.

Fix description.
Remove default argument.
Fix copy/paste error.

Jan 12 2023, 2:38 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D141636: [libTooling] Rename `getRangeForEdit` as `getFileRangeForEdit`.
Jan 12 2023, 2:31 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D141634: [libTooling] Add `getFileRange` as an alternative to `getRangeForEdit`.
Jan 12 2023, 2:16 PM · Restricted Project, Restricted Project

Dec 8 2022

li.zhe.hua committed rGa78d4b5ba716: [libTooling] Add flag to getRangeForEdit to ignore macro expansions (authored by li.zhe.hua).
[libTooling] Add flag to getRangeForEdit to ignore macro expansions
Dec 8 2022, 7:41 PM · Restricted Project, Restricted Project
li.zhe.hua closed D139676: [libTooling] Add flag to getRangeForEdit to ignore macro expansions.
Dec 8 2022, 7:41 PM · Restricted Project, Restricted Project
li.zhe.hua added inline comments to D139676: [libTooling] Add flag to getRangeForEdit to ignore macro expansions.
Dec 8 2022, 7:36 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D139676: [libTooling] Add flag to getRangeForEdit to ignore macro expansions.

Address comments

Dec 8 2022, 7:34 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D139676: [libTooling] Add flag to getRangeForEdit to ignore macro expansions.
Dec 8 2022, 2:55 PM · Restricted Project, Restricted Project

Nov 17 2022

li.zhe.hua added a comment to D134072: [Support] Provide access to the full mapping in llvm::Annotations.

Yeah, that seems like it'd work just fine for us.

Nov 17 2022, 6:56 AM · Restricted Project, Restricted Project
li.zhe.hua added a comment to D134072: [Support] Provide access to the full mapping in llvm::Annotations.

So the two functions I added were because previously using Annotations required knowledge of the annotation names a priori. If you are constructing one and using it directly yourself in a test, great. If you handed the Annotations object to a helper function, you'd also need to hand the two sets of names with it (one for points and one for ranges), otherwise the helper function doesn't know what annotations exist. In our case, the helper function is a googletest matcher verifying matches on AST nodes are bound to IDs matching the annotations listed. However, if no nodes are matched, we can't verify that all annotated nodes were matched without a lot of extra (possibly error-prone) boilerplate.

Nov 17 2022, 5:16 AM · Restricted Project, Restricted Project

Nov 15 2022

li.zhe.hua added inline comments to D137948: [clang][dataflow] Add widening API and implement it for built-in boolean model..
Nov 15 2022, 7:19 AM · Restricted Project, Restricted Project

Oct 13 2022

li.zhe.hua committed rG576283c3a8ef: [clang] Support `constexpr` for some `ASTNodeKind` member functions (authored by li.zhe.hua).
[clang] Support `constexpr` for some `ASTNodeKind` member functions
Oct 13 2022, 10:01 AM · Restricted Project, Restricted Project
li.zhe.hua closed D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions.
Oct 13 2022, 10:01 AM · Restricted Project, Restricted Project
li.zhe.hua added inline comments to D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions.
Oct 13 2022, 9:42 AM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions.

Appease clang-format, add constexpr to operator<.

Oct 13 2022, 9:41 AM · Restricted Project, Restricted Project

Oct 12 2022

li.zhe.hua requested review of D135816: [clang] Support `constexpr` for some `ASTNodeKind` member functions.
Oct 12 2022, 2:34 PM · Restricted Project, Restricted Project

Sep 20 2022

li.zhe.hua committed rG403d72cd4352: [Support][NFC] Clarify function comment (authored by li.zhe.hua).
[Support][NFC] Clarify function comment
Sep 20 2022, 8:13 AM · Restricted Project, Restricted Project
li.zhe.hua committed rG86118ec2d0e9: [Support] Provide access to the full mapping in llvm::Annotations (authored by li.zhe.hua).
[Support] Provide access to the full mapping in llvm::Annotations
Sep 20 2022, 8:09 AM · Restricted Project, Restricted Project
li.zhe.hua closed D134072: [Support] Provide access to the full mapping in llvm::Annotations.
Sep 20 2022, 8:08 AM · Restricted Project, Restricted Project

Sep 19 2022

li.zhe.hua added inline comments to D134072: [Support] Provide access to the full mapping in llvm::Annotations.
Sep 19 2022, 12:40 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D134072: [Support] Provide access to the full mapping in llvm::Annotations.

Address comments

Sep 19 2022, 12:40 PM · Restricted Project, Restricted Project

Sep 16 2022

li.zhe.hua requested review of D134072: [Support] Provide access to the full mapping in llvm::Annotations.
Sep 16 2022, 1:13 PM · Restricted Project, Restricted Project

Aug 19 2022

li.zhe.hua added inline comments to D131646: [clang][dataflow] Restructure loops to call widen on back edges.
Aug 19 2022, 1:09 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D131646: [clang][dataflow] Restructure loops to call widen on back edges.

Address comments

Aug 19 2022, 1:08 PM · Restricted Project, Restricted Project

Aug 11 2022

li.zhe.hua added inline comments to D131646: [clang][dataflow] Restructure loops to call widen on back edges.
Aug 11 2022, 12:15 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D131646: [clang][dataflow] Restructure loops to call widen on back edges.

Fix incorrect assumption that back edge blocks have an empty body.

Aug 11 2022, 11:19 AM · Restricted Project, Restricted Project
li.zhe.hua added a comment to D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator.

probably you are already aware of most of this

Aug 11 2022, 9:39 AM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator.

Add FIXME

Aug 11 2022, 9:39 AM · Restricted Project, Restricted Project
li.zhe.hua requested review of D131691: [clang][dataflow] Remove references of LatticeJoinEffect from dataflow.
Aug 11 2022, 9:23 AM · Restricted Project, Restricted Project
li.zhe.hua requested review of D131688: [clang][dataflow][NFC] Remove LatticeJoinEffect from framework interfaces.
Aug 11 2022, 9:02 AM · Restricted Project, Restricted Project
li.zhe.hua added inline comments to D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator.
Aug 11 2022, 7:52 AM · Restricted Project, Restricted Project
li.zhe.hua added inline comments to D131646: [clang][dataflow] Restructure loops to call widen on back edges.
Aug 11 2022, 7:52 AM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D131646: [clang][dataflow] Restructure loops to call widen on back edges.

Address comments

Aug 11 2022, 7:52 AM · Restricted Project, Restricted Project

Aug 10 2022

li.zhe.hua added reviewers for D131646: [clang][dataflow] Restructure loops to call widen on back edges: ymandel, xazax.hun.
Aug 10 2022, 10:07 PM · Restricted Project, Restricted Project
li.zhe.hua added reviewers for D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator: ymandel, xazax.hun.
Aug 10 2022, 10:07 PM · Restricted Project, Restricted Project
li.zhe.hua edited reviewers for D131644: [clang][dataflow] Don't skip the entry block, added: xazax.hun, ymandel; removed: NoQ.
Aug 10 2022, 10:06 PM · Restricted Project, Restricted Project
li.zhe.hua updated the summary of D131646: [clang][dataflow] Restructure loops to call widen on back edges.
Aug 10 2022, 10:05 PM · Restricted Project, Restricted Project
li.zhe.hua updated the summary of D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator.
Aug 10 2022, 10:05 PM · Restricted Project, Restricted Project
li.zhe.hua updated the summary of D131644: [clang][dataflow] Don't skip the entry block.
Aug 10 2022, 10:04 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D131644: [clang][dataflow] Don't skip the entry block.

Fix commit message

Aug 10 2022, 10:03 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D131646: [clang][dataflow] Restructure loops to call widen on back edges.
Aug 10 2022, 9:58 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D131645: [clang][dataflow] Allow user-provided lattices to provide a widen operator.
Aug 10 2022, 9:57 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D131644: [clang][dataflow] Don't skip the entry block.
Aug 10 2022, 9:53 PM · Restricted Project, Restricted Project

Aug 4 2022

li.zhe.hua closed D131178: [clang][dataflow][NFC] Convert mutable vector references to ArrayRef.

Bah, I think I screwed up arc at some point. This was committed as 18034aee63eeac673496a88d9e90c8dd73d15927.

Aug 4 2022, 10:48 AM · Restricted Project, Restricted Project
li.zhe.hua committed rG5659908f4c6d: [clang][dataflow][NFC] Resize vector directly with ctor (authored by li.zhe.hua).
[clang][dataflow][NFC] Resize vector directly with ctor
Aug 4 2022, 10:13 AM · Restricted Project, Restricted Project
li.zhe.hua committed rG18034aee63ee: [clang][dataflow][NFC] Convert mutable vector references to ArrayRef (authored by li.zhe.hua).
[clang][dataflow][NFC] Convert mutable vector references to ArrayRef
Aug 4 2022, 10:13 AM · Restricted Project, Restricted Project
li.zhe.hua closed D131177: [clang][dataflow][NFC] Resize vector directly with ctor.
Aug 4 2022, 10:12 AM · Restricted Project, Restricted Project
li.zhe.hua requested review of D131178: [clang][dataflow][NFC] Convert mutable vector references to ArrayRef.
Aug 4 2022, 9:07 AM · Restricted Project, Restricted Project
li.zhe.hua requested review of D131177: [clang][dataflow][NFC] Resize vector directly with ctor.
Aug 4 2022, 9:02 AM · Restricted Project, Restricted Project
li.zhe.hua committed rG54d24eae9872: [clang][dataflow][NFC] Fix outdated comment on getStableStorageLocation (authored by li.zhe.hua).
[clang][dataflow][NFC] Fix outdated comment on getStableStorageLocation
Aug 4 2022, 8:15 AM · Restricted Project, Restricted Project
li.zhe.hua closed D131109: [clang][dataflow][NFC] Fix outdated comment on getStableStorageLocation.
Aug 4 2022, 8:15 AM · Restricted Project, Restricted Project

Aug 3 2022

li.zhe.hua requested review of D131109: [clang][dataflow][NFC] Fix outdated comment on getStableStorageLocation.
Aug 3 2022, 1:19 PM · Restricted Project, Restricted Project
li.zhe.hua added inline comments to D129097: [clang][dataflow] Handle null pointers of type std::nullptr_t.
Aug 3 2022, 9:57 AM · Restricted Project, Restricted Project

Jul 27 2022

li.zhe.hua added inline comments to D130600: [clang][dataflow] Handle return statements.
Jul 27 2022, 1:35 PM · Restricted Project, Restricted Project
li.zhe.hua added inline comments to D130600: [clang][dataflow] Handle return statements.
Jul 27 2022, 11:50 AM · Restricted Project, Restricted Project
li.zhe.hua committed rG5e28923e332f: [clang][dataflow][NFC] Remove last use of deprecated ctor (authored by li.zhe.hua).
[clang][dataflow][NFC] Remove last use of deprecated ctor
Jul 27 2022, 11:24 AM · Restricted Project, Restricted Project
li.zhe.hua closed D130653: [clang][dataflow][NFC] Remove last use of deprecated ctor.
Jul 27 2022, 11:23 AM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D130653: [clang][dataflow][NFC] Remove last use of deprecated ctor.

Explicitly name TransferOptions

Jul 27 2022, 11:22 AM · Restricted Project, Restricted Project
li.zhe.hua requested review of D130653: [clang][dataflow][NFC] Remove last use of deprecated ctor.
Jul 27 2022, 11:18 AM · Restricted Project, Restricted Project

Jul 25 2022

li.zhe.hua committed rG29d35ece8249: [clang][dataflow] Fix MapLattice::insert() to not drop return value (authored by li.zhe.hua).
[clang][dataflow] Fix MapLattice::insert() to not drop return value
Jul 25 2022, 11:25 AM · Restricted Project, Restricted Project
li.zhe.hua closed D130497: [clang][dataflow] Fix MapLattice::insert() to not drop return value.
Jul 25 2022, 11:25 AM · Restricted Project, Restricted Project
li.zhe.hua requested review of D130497: [clang][dataflow] Fix MapLattice::insert() to not drop return value.
Jul 25 2022, 9:22 AM · Restricted Project, Restricted Project

Jul 22 2022

li.zhe.hua added inline comments to D130306: [clang][dataflow] Analyze calls to in-TU functions.
Jul 22 2022, 12:58 PM · Restricted Project, Restricted Project

Jul 5 2022

li.zhe.hua committed rGf10d271ae27f: [clang][dataflow] Handle null pointers of type std::nullptr_t (authored by li.zhe.hua).
[clang][dataflow] Handle null pointers of type std::nullptr_t
Jul 5 2022, 6:51 AM · Restricted Project, Restricted Project
li.zhe.hua closed D129097: [clang][dataflow] Handle null pointers of type std::nullptr_t.
Jul 5 2022, 6:51 AM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D129097: [clang][dataflow] Handle null pointers of type std::nullptr_t.

Address comments.

Jul 5 2022, 6:48 AM · Restricted Project, Restricted Project

Jul 4 2022

li.zhe.hua requested review of D129097: [clang][dataflow] Handle null pointers of type std::nullptr_t.
Jul 4 2022, 1:48 PM · Restricted Project, Restricted Project

Jun 30 2022

li.zhe.hua added a comment to D128807: [clang][transformer] Finish plumbing `Note` all the way to the output..

Eric -- what do you think? You've thought a lot more about metadata recently.

Jun 30 2022, 9:02 AM · Restricted Project, Restricted Project, Restricted Project

Jun 29 2022

li.zhe.hua accepted D128833: [clang][dataflow] Handle `for` statements without conditions.
Jun 29 2022, 1:03 PM · Restricted Project, Restricted Project
li.zhe.hua abandoned D128848: Fix assertion when analyzing a for-loop with no condition expression.

Looks like you and Stanislav had the same idea?
https://reviews.llvm.org/D128833

Jun 29 2022, 1:02 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D128848: Fix assertion when analyzing a for-loop with no condition expression.
Jun 29 2022, 12:47 PM · Restricted Project, Restricted Project

May 25 2022

li.zhe.hua committed rG5520c5839016: [clang][dataflow] Fix incorrect CXXThisExpr pointee for lambdas (authored by li.zhe.hua).
[clang][dataflow] Fix incorrect CXXThisExpr pointee for lambdas
May 25 2022, 1:59 PM · Restricted Project, Restricted Project
li.zhe.hua committed rG33b598a808b9: [clang][dataflow] Relax assert on existence of `this` pointee storage (authored by li.zhe.hua).
[clang][dataflow] Relax assert on existence of `this` pointee storage
May 25 2022, 1:59 PM · Restricted Project, Restricted Project
li.zhe.hua closed D126413: [clang][dataflow] Fix incorrect CXXThisExpr pointee for lambdas.
May 25 2022, 1:58 PM · Restricted Project, Restricted Project
li.zhe.hua closed D126405: [clang][dataflow] Relax assert on existence of `this` pointee storage.
May 25 2022, 1:58 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D126413: [clang][dataflow] Fix incorrect CXXThisExpr pointee for lambdas.

Address reviewer comment.

May 25 2022, 1:57 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D126405: [clang][dataflow] Relax assert on existence of `this` pointee storage.

Accidentally a word...

May 25 2022, 1:45 PM · Restricted Project, Restricted Project
li.zhe.hua updated the diff for D126405: [clang][dataflow] Relax assert on existence of `this` pointee storage.

Address reviewer comments.

May 25 2022, 1:43 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D126413: [clang][dataflow] Fix incorrect CXXThisExpr pointee for lambdas.
May 25 2022, 1:17 PM · Restricted Project, Restricted Project
li.zhe.hua requested review of D126405: [clang][dataflow] Relax assert on existence of `this` pointee storage.
May 25 2022, 12:21 PM · Restricted Project, Restricted Project

May 17 2022

li.zhe.hua committed rG5bbef2e3fff1: [clang][dataflow] Fix double visitation of nested logical operators (authored by li.zhe.hua).
[clang][dataflow] Fix double visitation of nested logical operators
May 17 2022, 1:29 PM · Restricted Project, Restricted Project
li.zhe.hua closed D125821: [clang][dataflow] Fix double visitation of nested logical operators.
May 17 2022, 1:29 PM · Restricted Project, Restricted Project
li.zhe.hua added inline comments to D125821: [clang][dataflow] Fix double visitation of nested logical operators.
May 17 2022, 12:11 PM · Restricted Project, Restricted Project