Page MenuHomePhabricator

KyleFromKitware (Kyle Edwards)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 17 2023, 12:16 PM (9 w, 1 d)

Recent Activity

Feb 3 2023

KyleFromKitware added a comment to D142991: [clang-tidy] Add --fix-mode and --nolint-prefix options.

Though I did find that it inserted more than one NOLINT comment for a templated function, probably due to multiple warnings being issued for the same violation.

Feb 3 2023, 1:19 PM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware added a comment to D142991: [clang-tidy] Add --fix-mode and --nolint-prefix options.

I just tried this out on a somewhat larger scale - I built all of CMake with this flag enabled, and it found a number of clang-tidy violations and added NOLINT comments to silence them. Worked like a charm.

Feb 3 2023, 1:16 PM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142673: [clang-tidy] Refactor HeaderGuardCheck to add HeaderGuardStyle.

Added virtual destructor to HeaderGuardStyle.

Feb 3 2023, 9:51 AM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

CI on all seven commits in this stack looks good.

Feb 3 2023, 9:22 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

Removed comma from documentation.

Feb 3 2023, 8:05 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

Updated documentation.

Feb 3 2023, 8:04 AM · Restricted Project, Restricted Project
KyleFromKitware added inline comments to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.
Feb 3 2023, 8:03 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

Updated with review feedback.

Feb 3 2023, 8:01 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142673: [clang-tidy] Refactor HeaderGuardCheck to add HeaderGuardStyle.
Feb 3 2023, 8:00 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142471: [pp-trace] Add PragmaOnce callback.
Feb 3 2023, 8:00 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142470: [clang][lex] Add PragmaOnce callback to PPCallbacks.
Feb 3 2023, 8:00 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142030: [pp-trace] Print HashLoc/Introducer parameter.
Feb 3 2023, 8:00 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D141961: [clang][lex] Pass hash location to more PPCallbacks methods.
Feb 3 2023, 7:59 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142465: [clang][lex] Consolidate PPCallbacks::PragmaDirective parameters.
Feb 3 2023, 7:59 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

@aaron.ballman @njames93 could you guys please take another look at this?

Feb 3 2023, 5:32 AM · Restricted Project, Restricted Project

Feb 2 2023

KyleFromKitware added a comment to D143139: [libc] Remove a now uneccesary CMake policy..

Any chance we could get the rest of LLVM upgraded to 3.20.0 as well? I'd like to get Ninja Multi-Config working.

Feb 2 2023, 7:07 AM · Restricted Project, Restricted Project
KyleFromKitware added inline comments to D143099: [clang][lex] Expose findBeginningOfLine().
Feb 2 2023, 5:38 AM · Restricted Project, Restricted Project

Feb 1 2023

KyleFromKitware updated the diff for D143099: [clang][lex] Expose findBeginningOfLine().

Fixed formatting.

Feb 1 2023, 12:27 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142991: [clang-tidy] Add --fix-mode and --nolint-prefix options.

Rebased onto D143099.

Feb 1 2023, 12:11 PM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware requested review of D143099: [clang][lex] Expose findBeginningOfLine().
Feb 1 2023, 12:10 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142991: [clang-tidy] Add --fix-mode and --nolint-prefix options.

Added tests and fixed assertion error in release build.

Feb 1 2023, 8:32 AM · Restricted Project, Restricted Project, Restricted Project

Jan 31 2023

KyleFromKitware updated the diff for D142991: [clang-tidy] Add --fix-mode and --nolint-prefix options.

Fixed crash when warning doesn't have associated location.

Jan 31 2023, 11:05 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware requested review of D142991: [clang-tidy] Add --fix-mode and --nolint-prefix options.
Jan 31 2023, 9:15 AM · Restricted Project, Restricted Project, Restricted Project

Jan 27 2023

KyleFromKitware added a comment to D142673: [clang-tidy] Refactor HeaderGuardCheck to add HeaderGuardStyle.

Note: I do not have possibility to add code comments - is there some too strict permissions set for this patch? It has not happened to other patches.

Jan 27 2023, 8:55 AM · Restricted Project, Restricted Project
KyleFromKitware changed the edit policy for D142465: [clang][lex] Consolidate PPCallbacks::PragmaDirective parameters.
Jan 27 2023, 8:53 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware changed the edit policy for D141961: [clang][lex] Pass hash location to more PPCallbacks methods.
Jan 27 2023, 8:53 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware changed the edit policy for D142030: [pp-trace] Print HashLoc/Introducer parameter.
Jan 27 2023, 8:53 AM · Restricted Project, Restricted Project
KyleFromKitware changed the edit policy for D142470: [clang][lex] Add PragmaOnce callback to PPCallbacks.
Jan 27 2023, 8:53 AM · Restricted Project, Restricted Project
KyleFromKitware changed the edit policy for D142471: [pp-trace] Add PragmaOnce callback.
Jan 27 2023, 8:53 AM · Restricted Project, Restricted Project
KyleFromKitware changed the edit policy for D142673: [clang-tidy] Refactor HeaderGuardCheck to add HeaderGuardStyle.
Jan 27 2023, 8:52 AM · Restricted Project, Restricted Project
KyleFromKitware changed the edit policy for D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.
Jan 27 2023, 8:52 AM · Restricted Project, Restricted Project

Jan 26 2023

KyleFromKitware updated the diff for D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.
Jan 26 2023, 8:25 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142673: [clang-tidy] Refactor HeaderGuardCheck to add HeaderGuardStyle.
Jan 26 2023, 8:24 PM · Restricted Project, Restricted Project
KyleFromKitware abandoned D142121: [clang-tidy] Refactor common functionality of HeaderGuardCheck into HeaderGuardBase.

Closed in favor of D142673.

Jan 26 2023, 2:49 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

Refactored to use HeaderGuardStyle.

Jan 26 2023, 2:47 PM · Restricted Project, Restricted Project
KyleFromKitware requested review of D142673: [clang-tidy] Refactor HeaderGuardCheck to add HeaderGuardStyle.
Jan 26 2023, 2:46 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142471: [pp-trace] Add PragmaOnce callback.
Jan 26 2023, 2:45 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142470: [clang][lex] Add PragmaOnce callback to PPCallbacks.
Jan 26 2023, 2:44 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142030: [pp-trace] Print HashLoc/Introducer parameter.
Jan 26 2023, 2:44 PM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D141961: [clang][lex] Pass hash location to more PPCallbacks methods.
Jan 26 2023, 2:43 PM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142465: [clang][lex] Consolidate PPCallbacks::PragmaDirective parameters.
Jan 26 2023, 2:43 PM · Restricted Project, Restricted Project, Restricted Project

Jan 24 2023

KyleFromKitware updated the diff for D142471: [pp-trace] Add PragmaOnce callback.

Rebased onto main for D141000.

Jan 24 2023, 7:08 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142470: [clang][lex] Add PragmaOnce callback to PPCallbacks.

Rebased onto main for D141000.

Jan 24 2023, 7:08 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142030: [pp-trace] Print HashLoc/Introducer parameter.

Rebased onto main for D141000.

Jan 24 2023, 7:08 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D141961: [clang][lex] Pass hash location to more PPCallbacks methods.

Rebased onto main for D141000.

Jan 24 2023, 7:07 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142465: [clang][lex] Consolidate PPCallbacks::PragmaDirective parameters.

Rebased onto main for D141000.

Jan 24 2023, 7:07 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware requested review of D142471: [pp-trace] Add PragmaOnce callback.
Jan 24 2023, 6:57 AM · Restricted Project, Restricted Project
KyleFromKitware requested review of D142470: [clang][lex] Add PragmaOnce callback to PPCallbacks.
Jan 24 2023, 6:56 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142030: [pp-trace] Print HashLoc/Introducer parameter.

Printed Introducer parameter in Pragma methods.

Jan 24 2023, 6:16 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D141961: [clang][lex] Pass hash location to more PPCallbacks methods.

Added Introducer parameter to Pragma callbacks.

Jan 24 2023, 6:15 AM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware requested review of D142465: [clang][lex] Consolidate PPCallbacks::PragmaDirective parameters.
Jan 24 2023, 6:13 AM · Restricted Project, Restricted Project, Restricted Project

Jan 21 2023

KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

Can you just elaborate on what the registry is used for? Is the plan to support potentially dynamically loading HeaderGuardStyle classes.

Jan 21 2023, 12:52 PM · Restricted Project, Restricted Project

Jan 19 2023

KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

Basically, anything that extends HeaderGuardCheck (or HeaderGuardBase from D142121) is really just a fancy configuration option, rather than a separate check, and should be treated as such. My proposal is this:

Jan 19 2023, 12:04 PM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

The only way to avoid this is if we overhaul the existing HeaderGuardCheck and make its naming convention configurable by a configuration option as opposed to having to extend the C++ class to calculate the name.

Jan 19 2023, 11:32 AM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

It doesn't have to -- for example, we can name the guard based on the path to the header. e.g., foo/include/bar/baz.h could use FOO_INCLUDE_BAR_BAZ_H as the header guard.

Jan 19 2023, 11:27 AM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

In terms of a "generic check", there is already the HeaderGuardCheck, but that has to be extended to be specific to the project's naming convention. And I don't think there can be a generic check that converts #pragma once to a header guard - when it adds the header guard, what does it name it? It has to know the project's naming convention. If we want a check that replaces #pragma once with a header guard, our best bet would be modifying HeaderGuardCheck to do this, since it already does most of the needed work. However, such functionality is orthogonal to my proposal here.

Jan 19 2023, 10:57 AM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

We're trying to figure out what the correct approach is (fwiw, I'd be opposed to what's proposed as-is but would be fine with a tweaked proposal).

Jan 19 2023, 10:30 AM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142121: [clang-tidy] Refactor common functionality of HeaderGuardCheck into HeaderGuardBase.

Yes, this is for D142123. However, even if that doesn't land, I'd still like to land this. We use the code from D142123 in CMake's CI system, and getting it to work without this change resulted in a massive amount of code duplication. This refactoring would allow us to eliminate such duplication on our end.

Jan 19 2023, 10:21 AM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

and peoples eagerness to blindly enable all checks (or all checks from a module)

Jan 19 2023, 10:18 AM · Restricted Project, Restricted Project
KyleFromKitware added a comment to D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

We have this check in a custom clang-tidy module that runs on CMake's CI system. Other people have also sought out such a check, and I figured it made sense to upstream it instead of keeping it stuck in our CI. Even though it's not standard, other people might still want to use it. Perhaps there's a better category for it than modernize?

Jan 19 2023, 8:52 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.

Added documentation.

Jan 19 2023, 8:34 AM · Restricted Project, Restricted Project
KyleFromKitware requested review of D142123: [clang-tidy] Add header guard style to suggest use of #pragma once.
Jan 19 2023, 8:05 AM · Restricted Project, Restricted Project
KyleFromKitware requested review of D142121: [clang-tidy] Refactor common functionality of HeaderGuardCheck into HeaderGuardBase.
Jan 19 2023, 8:02 AM · Restricted Project, Restricted Project

Jan 18 2023

KyleFromKitware updated the diff for D142030: [pp-trace] Print HashLoc/Introducer parameter.
Jan 18 2023, 9:41 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D142030: [pp-trace] Print HashLoc/Introducer parameter.
Jan 18 2023, 9:34 AM · Restricted Project, Restricted Project
KyleFromKitware added a reviewer for D142030: [pp-trace] Print HashLoc/Introducer parameter: Restricted Project.
Jan 18 2023, 8:41 AM · Restricted Project, Restricted Project
KyleFromKitware requested review of D142030: [pp-trace] Print HashLoc/Introducer parameter.
Jan 18 2023, 8:36 AM · Restricted Project, Restricted Project
KyleFromKitware updated the diff for D141961: [clang][lex] Pass hash location to more PPCallbacks methods.
Jan 18 2023, 7:48 AM · Restricted Project, Restricted Project, Restricted Project

Jan 17 2023

KyleFromKitware added a comment to D141961: [clang][lex] Pass hash location to more PPCallbacks methods.

WIP - currently updating the tests for pp-trace and in the process debugging an issue with the location of the #endif hash.

Jan 17 2023, 2:13 PM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware removed a project from D141961: [clang][lex] Pass hash location to more PPCallbacks methods: Restricted Project.
Jan 17 2023, 2:11 PM · Restricted Project, Restricted Project, Restricted Project
KyleFromKitware requested review of D141961: [clang][lex] Pass hash location to more PPCallbacks methods.
Jan 17 2023, 12:27 PM · Restricted Project, Restricted Project, Restricted Project