Page MenuHomePhabricator

abrahamcd (Abraham Corea Diaz)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 21 2022, 4:01 PM (49 w, 1 d)

Recent Activity

Aug 26 2022

abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Reset SARIFDiag during EndSourceFile().

Aug 26 2022, 11:29 AM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Deleted copy and move for Printer and added asserts.

Aug 26 2022, 11:21 AM · Restricted Project, Restricted Project
abrahamcd added inline comments to D131632: [clang] Enable output of SARIF diagnostics.
Aug 26 2022, 10:42 AM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Resolved pending comments.

Aug 26 2022, 10:42 AM · Restricted Project, Restricted Project

Aug 25 2022

abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Ran clang-format.

Aug 25 2022, 3:04 PM · Restricted Project, Restricted Project
abrahamcd added inline comments to D131632: [clang] Enable output of SARIF diagnostics.
Aug 25 2022, 3:00 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Addressed some refactoring and reformatting comments.

Aug 25 2022, 3:00 PM · Restricted Project, Restricted Project

Aug 24 2022

abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Deleted copy/move from renderer and returned OS to reference.

Aug 24 2022, 3:13 PM · Restricted Project, Restricted Project

Aug 23 2022

abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Removed use of pointer reset in Printer.

Aug 23 2022, 4:23 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Added use of std::make_unique.

Aug 23 2022, 1:47 PM · Restricted Project, Restricted Project
abrahamcd added inline comments to D131632: [clang] Enable output of SARIF diagnostics.
Aug 23 2022, 1:04 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Documented issue with representing PresumedLocs modified by #line directives.

Aug 23 2022, 12:22 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Modified Printer's interface to use unique pointers when setting the SARIF writer.

Aug 23 2022, 11:56 AM · Restricted Project, Restricted Project

Aug 22 2022

abrahamcd added inline comments to D131632: [clang] Enable output of SARIF diagnostics.
Aug 22 2022, 4:56 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Addressed review comments on formatting, style, C++ best practices.

Aug 22 2022, 4:55 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Formatting fixes and synchronization of documentation.

Aug 22 2022, 3:33 PM · Restricted Project, Restricted Project

Aug 19 2022

abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Addressed review style comments.

Aug 19 2022, 3:41 PM · Restricted Project, Restricted Project
abrahamcd updated the summary of D131632: [clang] Enable output of SARIF diagnostics.
Aug 19 2022, 3:19 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Added diagnostic level and default configuration to SARIF output.
Removed unit test file.

Aug 19 2022, 3:06 PM · Restricted Project, Restricted Project

Aug 18 2022

abrahamcd added a comment to D131632: [clang] Enable output of SARIF diagnostics.

Precommit CI found a relevant failure.

Aug 18 2022, 3:28 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Commented out unfinished test case

Aug 18 2022, 2:28 PM · Restricted Project, Restricted Project

Aug 17 2022

abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Removed Clang name from FileCheck test.

Aug 17 2022, 10:55 AM · Restricted Project, Restricted Project

Aug 16 2022

abrahamcd added a comment to D128372: [Clang-Tidy] Empty Check.

Hi, checking in on this again, thanks!

Aug 16 2022, 2:40 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Fixed FileCheck test case and added multiple source range error.

Aug 16 2022, 2:12 PM · Restricted Project, Restricted Project

Aug 15 2022

abrahamcd added inline comments to D131632: [clang] Enable output of SARIF diagnostics.
Aug 15 2022, 4:58 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Naming fixes.

Aug 15 2022, 4:33 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Minor cleanup.

Aug 15 2022, 4:21 PM · Restricted Project, Restricted Project
abrahamcd added reviewers for D131632: [clang] Enable output of SARIF diagnostics: cjdb, denik, aaron.ballman, vaibhav.y.
Aug 15 2022, 4:03 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D131632: [clang] Enable output of SARIF diagnostics.

Removed unused remaining parts of traditional text diagnostics.

Aug 15 2022, 3:56 PM · Restricted Project, Restricted Project

Aug 10 2022

abrahamcd requested review of D131632: [clang] Enable output of SARIF diagnostics.
Aug 10 2022, 4:44 PM · Restricted Project, Restricted Project

Aug 9 2022

abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Minor formatting/naming fixes.

Aug 9 2022, 10:51 AM · Restricted Project, Restricted Project
abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Adds check for the compatibility of qualifiers on the clear method and the object it is called on.

Aug 9 2022, 10:44 AM · Restricted Project, Restricted Project

Aug 8 2022

abrahamcd added inline comments to D128372: [Clang-Tidy] Empty Check.
Aug 8 2022, 3:00 PM · Restricted Project, Restricted Project

Aug 5 2022

abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Adds non-dependent base class test case.

Aug 5 2022, 3:18 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Checks for clear() in base classes as well.

Aug 5 2022, 2:26 PM · Restricted Project, Restricted Project
abrahamcd added a comment to D131084: Add support for specifying the severity of a SARIF Result..

Submitting for review:

Some notes:

There are a couple of ways I think we can acheive this, per the spec:

  1. The reportingDescriptor (rule) objects can be given a default configuration property, which can set the default warning level and other data such as rule parameters etc.
  2. The reportingDescriptor objects can omit the default configuration (which then allows operating with warning as default), and the level is then set when the result is reported.

The first approach would be "more correct", what are your thoughts on this? Would we benefit from having per-diagnostic configuration?

There is also the question about the "kind" of results in clang. From my reading of the spec, it seems that "fail" is the only case that applies to us because:

  • "pass": Implies no issue was found.
  • "open": This value is used by proof-based tools. It could also mean additional assertions required
  • "informational": The specified rule was evaluated and produced a purely informational result that does not indicate the presence of a problem
  • "notApplicable": The rule specified by ruleId was not evaluated, because it does not apply to the analysis target.

Of these "open" and "notApplicable" seem to be ones that *could* come to use but I'm not sure where / what kind of diagnostics would use these. Probably clang-tidy's bugprone-* suite?

Let me know what you think is a good way to approach this wrt clang's diagnostics system.

Aug 5 2022, 11:44 AM · Restricted Project, Restricted Project

Aug 1 2022

abrahamcd added a comment to D128372: [Clang-Tidy] Empty Check.

Hi all, I just wanted to check in on this again and see if any more feedback or progress could be made. Thank you!

Aug 1 2022, 9:26 AM · Restricted Project, Restricted Project

Jul 19 2022

abrahamcd added inline comments to D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.
Jul 19 2022, 1:00 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.

Removed unintended formatting.

Jul 19 2022, 1:00 PM · Restricted Project, Restricted Project
abrahamcd added inline comments to D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.
Jul 19 2022, 12:47 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.

Enabled both "sarif" and "SARIF" as flag spellings.

Jul 19 2022, 12:05 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.

Update test file to check for warning and address other minor comments

Jul 19 2022, 9:17 AM · Restricted Project, Restricted Project

Jul 18 2022

abrahamcd added inline comments to D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.
Jul 18 2022, 10:13 AM · Restricted Project, Restricted Project
abrahamcd added a comment to D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.

Might be worth hiding it from --help, despite the instability warning.

Jul 18 2022, 10:10 AM · Restricted Project, Restricted Project
abrahamcd updated the diff for D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.

Adds test file and fixes warning-flags test failure by adding warning group.

Jul 18 2022, 10:04 AM · Restricted Project, Restricted Project

Jul 15 2022

abrahamcd added reviewers for D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output: cjdb, denik, aaron.ballman.
Jul 15 2022, 11:36 AM · Restricted Project, Restricted Project
abrahamcd updated the diff for D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.

Commit message edits did not go through

Jul 15 2022, 11:34 AM · Restricted Project, Restricted Project
abrahamcd updated the diff for D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.

Edited commit message

Jul 15 2022, 11:24 AM · Restricted Project, Restricted Project
abrahamcd abandoned D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.
Jul 15 2022, 11:03 AM · Restricted Project, Restricted Project
abrahamcd requested review of D129886: [clang] Add -fdiagnostics-format=sarif option for future SARIF output.
Jul 15 2022, 11:02 AM · Restricted Project, Restricted Project
abrahamcd added a comment to D128372: [Clang-Tidy] Empty Check.

Gentle ping!

Jul 15 2022, 9:58 AM · Restricted Project, Restricted Project

Jul 13 2022

abrahamcd added a comment to D109701: [clang] Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface.

Hi! I'm interning with @cjdb and @denik this summer and I was working on adding a -fdiagnostics-format=sarif option to start off my project, but I just found that a previous abandoned version of this change (D109697) was intending to add it. Seeing as the flag is no longer included in this version of the change, is it okay for me to go on and add it myself, or are you still planning on adding it here? Thanks!

Sure, feel free to use D109697 as you see fit!

Jul 13 2022, 3:50 PM · Restricted Project, Restricted Project

Jul 12 2022

abrahamcd updated subscribers of D109701: [clang] Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface.

Hi! I'm interning with @cjdb and @denik this summer and I was working on adding a -fdiagnostics-format=sarif option to start off my project, but I just found that a previous abandoned version of this change (D109697) was intending to add it. Seeing as the flag is no longer included in this version of the change, is it okay for me to go on and add it myself, or are you still planning on adding it here? Thanks!

Jul 12 2022, 4:27 PM · Restricted Project, Restricted Project

Jul 7 2022

abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Adds argument 0 test case and refactoring based on feedback.

Jul 7 2022, 1:55 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Adds functionality for only warning on the case of unused return value
of the call to empty() and removes using-directive.

Jul 7 2022, 11:55 AM · Restricted Project, Restricted Project

Jun 28 2022

abrahamcd planned changes to D128372: [Clang-Tidy] Empty Check.

Stuck on determining unused return value, uploaded current state for @denik and @cjdb to take a look.

Jun 28 2022, 1:25 PM · Restricted Project, Restricted Project
abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Progress Update

Jun 28 2022, 1:23 PM · Restricted Project, Restricted Project

Jun 27 2022

abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Addressed review edits and clarity feedback.

Jun 27 2022, 11:57 AM · Restricted Project, Restricted Project
abrahamcd added inline comments to D128372: [Clang-Tidy] Empty Check.
Jun 27 2022, 9:55 AM · Restricted Project, Restricted Project
abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Removed old test file.

Jun 27 2022, 9:54 AM · Restricted Project, Restricted Project
abrahamcd abandoned D128663: Removed old test file..
Jun 27 2022, 9:27 AM · Restricted Project, Restricted Project
abrahamcd requested review of D128663: Removed old test file..
Jun 27 2022, 9:25 AM · Restricted Project, Restricted Project

Jun 24 2022

abrahamcd updated the diff for D128372: [Clang-Tidy] Empty Check.

Added functionality to check if member function clear() exists before
suggesting it as a fix, including updated tests to reflect that. Fixed
path change and rebase errors from the initial revision.

Jun 24 2022, 5:26 PM · Restricted Project, Restricted Project

Jun 22 2022

abrahamcd abandoned D128368: added clear check functionality.
Jun 22 2022, 1:53 PM · Restricted Project, Restricted Project
abrahamcd added reviewers for D128372: [Clang-Tidy] Empty Check: cjdb, aaron.ballman, denik.
Jun 22 2022, 1:52 PM · Restricted Project, Restricted Project
abrahamcd requested review of D128372: [Clang-Tidy] Empty Check.
Jun 22 2022, 12:33 PM · Restricted Project, Restricted Project
abrahamcd requested review of D128368: added clear check functionality.
Jun 22 2022, 11:49 AM · Restricted Project, Restricted Project