Page MenuHomePhabricator

Krishna-13-cyber (Krishna Narayanan)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 19 2023, 11:46 AM (14 w, 1 d)

Recent Activity

Apr 29 2023

Krishna-13-cyber added a comment to D147888: Update declaration message of extern linkage.

I have tried a little modification from my side thinking on a beneficial note. I will make the changes to all the other test files as well if this diagnostic representation goes well after mentor review.

For refactoring and restructuring the whole of the re-declaration would need some time I have been through it and would initiate another patch for that,In the concern of giving or having just one diagnostic for getting all cases of re-declaration would also need multiple conditional or switch statements inside our function block.At present we have the same with conditional statements taking care of each linkage but it has multiple permutations of diagnostic messages which is nice but can be improved.GCC differs only for this case of extern linkage which can be better/precise in clang where as others seem to be more precise in clang than former as I worked out with good number of test cases regarding this.

Apr 29 2023, 11:49 AM · Restricted Project, Restricted Project

Apr 26 2023

Krishna-13-cyber updated the diff for D149000: Update with warning message for comparison to NULL pointer.
  • Updated with re-adding the required diagnostic message
Apr 26 2023, 6:42 AM · Restricted Project, Restricted Project

Apr 25 2023

Krishna-13-cyber updated the diff for D149000: Update with warning message for comparison to NULL pointer.
  • Updated with reviewed changes
Apr 25 2023, 11:32 AM · Restricted Project, Restricted Project

Apr 24 2023

Krishna-13-cyber updated the diff for D149000: Update with warning message for comparison to NULL pointer.
  • Update with addition of testcase
  • There is an issue for which the build fails, actually when I replace the diagnostic in /clang/test/Sema/conditional-expr.c Line 89, it tells C99 forbids conditional expressions with only one void side and if I remove it shows seen but not expected and vice versa.It regresses either ways.

In the same manner for comparison of address of 'g' equal to a null pointer is always false.

Apr 24 2023, 7:09 AM · Restricted Project, Restricted Project

Apr 23 2023

Krishna-13-cyber updated the diff for D149000: Update with warning message for comparison to NULL pointer.
  • Update with diagnostic addition
Apr 23 2023, 12:59 PM · Restricted Project, Restricted Project

Apr 22 2023

Krishna-13-cyber updated the diff for D149000: Update with warning message for comparison to NULL pointer.
  • Apologies for uploading some other/incorrect diff
  • Updated Diff
Apr 22 2023, 11:04 AM · Restricted Project, Restricted Project
Krishna-13-cyber requested review of D149000: Update with warning message for comparison to NULL pointer.
Apr 22 2023, 10:48 AM · Restricted Project, Restricted Project

Apr 21 2023

Krishna-13-cyber updated the diff for D147888: Update declaration message of extern linkage.

I have tried a little modification from my side thinking on a beneficial note. I will make the changes to all the other test files as well if this diagnostic representation goes well after mentor review.

Apr 21 2023, 11:33 AM · Restricted Project, Restricted Project

Apr 19 2023

Krishna-13-cyber added a comment to D147888: Update declaration message of extern linkage.

I think we should fundamentally rethink this entire category of diagnostic. Rather than having a static diagnostic per offence stating what happened, we should instead have a single diagnostic that captures both what happened, why it's bad, and how to fix it. Something along the lines of

error: 'x' has been declared with incompatible linkage specifiers (static and extern); please pick exactly one
  extern int x;
  ^~~~~~
note: previous definition here
  static int x;
  ^~~~~~

It'd also be more robust from an engineering perspective, since it means that we won't need to add new diagnostic permutations every time a new linkage specifier is added.

Apr 19 2023, 12:17 PM · Restricted Project, Restricted Project

Apr 12 2023

Krishna-13-cyber updated the diff for D147888: Update declaration message of extern linkage.
  • Updated with removing redundant flags
Apr 12 2023, 8:29 AM · Restricted Project, Restricted Project

Apr 9 2023

Krishna-13-cyber requested review of D147888: Update declaration message of extern linkage.
Apr 9 2023, 11:42 AM · Restricted Project, Restricted Project

Apr 7 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .

Thanks a lot everyone for helping me out with my first patch. I have uploaded the patch again after rebase.
Yes, It would be great if you could land it on my behalf.
Name: Krishna Narayanan
Email: <krishnanarayanan132002@gmail.com>

Apr 7 2023, 12:48 AM · Restricted Project, Restricted Project, Restricted Project

Apr 5 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .
  • Updated with the diagnostic messages (comments for test cases)
Apr 5 2023, 12:19 PM · Restricted Project, Restricted Project, Restricted Project

Apr 4 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .
  • Updated with release note
Apr 4 2023, 1:33 PM · Restricted Project, Restricted Project, Restricted Project

Mar 31 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .
  • Updated diff with git clang-format HEAD~1
Mar 31 2023, 11:50 PM · Restricted Project, Restricted Project, Restricted Project

Mar 30 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .
  • Updated with clang-formatting
  • Removed the redundant from the diff
Mar 30 2023, 7:10 AM · Restricted Project, Restricted Project, Restricted Project
Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .
  • Updated patch
  • Added testcases for chained operators
Mar 30 2023, 5:52 AM · Restricted Project, Restricted Project, Restricted Project
Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .

This patch aims to remove some redundant cases of static assert messages where the expansions are particularly unhelpful. In this particular patch, we have ignored the printing of diagnostic warnings for binary operators with logical OR operations.
This is done to prioritise and prefer to emit longer diagnostic warnings for more important concerns elsewhere.

Mar 30 2023, 3:04 AM · Restricted Project, Restricted Project, Restricted Project

Mar 29 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .

I have removed the redundant comments and have moved the if condition above with the ongoing conditional statement (to avoid printing obvious expressions).

Mar 29 2023, 1:47 AM · Restricted Project, Restricted Project, Restricted Project

Mar 25 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .

Updated with the new test cases and implemented the logic suggested for ignoring the BO_LOr operators at the top level. My sincere apologies @tbaeder that I could not place this logic at the first instance.

Mar 25 2023, 5:02 AM · Restricted Project, Restricted Project, Restricted Project

Mar 24 2023

Krishna-13-cyber added a comment to D146376: Update static_assert message for redundant cases .

The above Binary operator test case says that there are two Boolean expressions,UsefulToPrintExpr says we can avoid to print these expressions as they are don't need a note and are understandable.

Mar 24 2023, 6:34 AM · Restricted Project, Restricted Project, Restricted Project

Mar 22 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .

Have worked on the top level with Boolean literals unlike the previous diffs.I have updated the test case as well with this new upcoming change.

Mar 22 2023, 9:59 AM · Restricted Project, Restricted Project, Restricted Project

Mar 21 2023

Krishna-13-cyber updated the diff for D146376: Update static_assert message for redundant cases .

I have updated the patch without removing the whole of the previous block.I have added a condition to find the case where we don't need a diagnostic message to be printed or warned.

Mar 21 2023, 1:59 PM · Restricted Project, Restricted Project, Restricted Project

Mar 18 2023

Krishna-13-cyber requested review of D146376: Update static_assert message for redundant cases .
Mar 18 2023, 11:53 PM · Restricted Project, Restricted Project, Restricted Project