66 Commits
Author SHA1 Message Date
Connor Clark e7a6489e5c Enable projectService for TypeScript files in eslint config
Enabling this is required for rules that need to use the types as
resolved by the TypeScript compiler.

The no-floating-promises rule was missing some stuff due to missing
types, so this CL resolves that too. Also, return-await kicked up more
stuff.

A warm run of `npm run lint` went from ~23s to ~35s on my M1 Mac.

Bug: 406518012
Change-Id: I0c413e2ca14ee903851fd8404e490335c7f8aae0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6397499
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-03-28 05:02:27 -07:00
Nikolay Vitkov 58be9b4c44 [cleanup] Don't declare default in constructor (#1)
This moves some of the default from the constructor
to the declaration methods, this requires less space and
also point easier to what is coming from outside and what
the constructor is doing.

Bug: 397260638
Change-Id: I67a00b28e2cc92394e4bceca431b3d6f662a7537
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6377983
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2025-03-25 07:25:21 -07:00
Philip Pfaffe 541df53fac [cxx_debugging] Shot-in-the-dark attempt to reduce flakiness
Bug: none
Change-Id: I8c18dcc0c1b4cf61aaaf55531397975c5949c236
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6352838
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-03-14 02:25:36 -07:00
Nikolay Vitkov bb976f7b9e Update node_module dependecies
Add one more deps "@typescript-eslint/utils" to top level to be used in our own custom rules (also needed override if I didn't).

Bug: none
Change-Id: I130415d1ec5f096ca51200df3eb688dadd963d0f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6343232
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-03-12 06:49:46 -07:00
Nikolay Vitkov 4ae5b582b2 Fix dwarf extension build
Ref: https://github.com/microsoft/TypeScript/issues/57164

Bug: none
Change-Id: I48ea7808f810f108b27f0bf20a1d3f7b219afe96
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6324570
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-03-05 02:35:37 -08:00
Nikolay Vitkov b30f3b2520 [Eslint] No unsafe function type
Bug: 397260638
Change-Id: I5d2e99c81bc58f16e9be95d54ca10a4d5be1a871
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6316671
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2025-03-05 01:05:38 -08:00
Liviu Rau 309221b081 Update conductor import for Cpp Extension
Bots stated failing at https://ci.chromium.org/ui/p/devtools-frontend/builders/ci/Cpp%20Debugging%20Extension%20Linux%20Debug/409/overview

Bug: none
Cq-Include-Trybots: luci.devtools-frontend.try:cpp_debug_extension_e2e_dbg,cpp_debug_extension_e2e_rel
Change-Id: I8dca3cc615a059d91b2d4348707ee0955c1a9774
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6313000
Commit-Queue: Liviu Rau <liviurau@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2025-03-03 01:33:32 -08:00
Jack Franklin c10b497bff ESLint: lint *.d.ts files
Bug: none
Change-Id: Ie91dbdc6ed1533c2c58cdb2eafa6d5f23632d243
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6311457
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2025-02-28 11:35:14 -08:00
Nikolay Vitkov d1ebd9e14d [EsLint] Don't use empty blocks
Bug: 397260638
Change-Id: Ibf4389ce952333a7af1877450ded87a480d2041f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6298125
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-02-26 08:30:00 -08:00
Jordan 1ec62a03c0 Updating license IDs to be spdx compliant
Bug: b/358504615
Change-Id: Ie0014e7d747b8a446f5b470d4c41c696a946a7b6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6277979
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Jordan Brown <rop@google.com>
Owners-Override: Jordan Brown <rop@google.com>
2025-02-25 01:23:45 -08:00
Nikolay Vitkov 6814017c77 [eslint] Enforce optional chaining
This simplify the code that we write

Bug: 397260638
Change-Id: I9757acd0d700af2675264c7f4d2c22fa89b7dc8f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6287365
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
2025-02-21 00:01:45 -08:00
Nikolay Vitkov d36860c0b4 [eslint] Enable useful rules
@typescript-eslint/no-inferrable-types Simplifies the code and makes
type be more specific.

@typescript-eslint/return-await In theory more performant, but also
provides better debugging experience.

@typescript-eslint/ban-ts-comment Disallow all but ts-expect-error, as
else the error may get fixed not remove and later mask unrelated issues

Bug: 397260638
Change-Id: I09f268eb9157336635c378fa76546a4196e448e9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6281149
Reviewed-by: Victor Porof <victorporof@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
2025-02-19 10:49:41 -08:00
Nikolay Vitkov d396b27c46 [eslint] Enable @typescript-eslint/consistent-generic-constructors
Bug: 397260638
Change-Id: Id9eb30ea776f9b4bb05dc6a095ff24d1c742b89c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6279125
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2025-02-19 01:18:37 -08:00
Nikolay Vitkov 65a5a91d89 [eslint] Run no-unnecessary-type-assertion
This type duplication can happen because of two reasons. 1) TypeScript
was not smart enough to deduce the type correctly 2) During our
TypeScript migration not very was typed, so we need to type cast in a
lot of places.

The rule is disabled as its too aggressive in some places, will file
issues upstream.

Bug: 397260638
Change-Id: Ic1100fee1e5a1d160d366f65d969442909f16eaf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6276556
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-02-19 00:30:23 -08:00
Nikolay Vitkov 93062643d1 [eslint] Add rule only-throw-error
https://typescript-eslint.io/rules/only-throw-error/

Bug: 397260638
Change-Id: I2dbdd6006ce21a99818fd6de2e4d727894194e35
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6277290
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-02-18 02:23:53 -08:00
Philip Pfaffe 52d6d442d4 [cxx debugging] Don't build stage 1 with autoninja
Bug: none
Change-Id: I61deb314a0fb3050545f90fcbc37d1edc699a115
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6276132
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-02-17 04:50:08 -08:00
Nikolay Vitkov 3cace8fe6f Fix CXX debugging extension build
Fix TypeScript build issues

Bug: none
Change-Id: I73d6870b64c5f8ad76746dc1d4358fa013689b10
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6269096
Reviewed-by: Paul Irish <paulirish@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2025-02-17 02:21:17 -08:00
Nikolay Vitkov 92b8346981 [test] Use frontend directly
The helpers are DevTools specific

Bug: none
Change-Id: If12bbc6a0c3de520b8963ebd58f0253711e17e1d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6262910
Reviewed-by: Alina Varkki <alinavarkki@chromium.org>
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Alina Varkki <alinavarkki@chromium.org>
2025-02-13 06:07:55 -08:00
Benedikt Meurer 84b0fcc58c [eslint] Replace prefer-readonly-keyword with @typescript-eslint/array-type.
We had our own homegrown ESLint rule that was trying to enforce some
consistency around `ReadonlyArray<T>` vs. `readonly T[]`, but that was
fairly limited and still allowed for `Array<T>` vs `T[]` with no shared
discipline.

We now use the `@typescript-eslint/array-type` rule instead and enforce
that for simple types the `T[]` (and `readonly T[]`) syntax is used,
while for complex types the `Array<A & B>` (and `ReadonlyArray<A & B>`)
syntax is used.

Bug: none
Change-Id: I8933869f98577d4afc4141c5736fccb2159924a6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6257990
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-02-12 07:40:43 -08:00
Nikolay Vitkov 2205050d6a [eslint] Add extensions folder to linting
Includes linting of the extensions folder.
Also add .mjs files to the PRESUBMIT which was previously missing.

Bug: none
Change-Id: I6ae5bb8a218461c3b2bf07d95310d79c57f2cdd9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6177277
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-01-21 04:58:17 -08:00
Benedikt Meurer 586a9a5908 [eslint] Adopt ESLint Rule Naming Conventions.
Update our custom ESLint rules to follow the official naming
conventions[^1], in particular the rule names need to

1. consistently use dashes to separate words (rather a mix of
   underscores and dashes), and
1. consistently use `no-` prefix for rules that disallow something.

Drive-by-fix: Also remove the `fixable` setting from rules that don't
provide a fix.

This is a functionally neutral change.

[^1]: https://eslint.org/docs/latest/contribute/core-rules#rule-naming-conventions

Fixed: 386319581
Change-Id: Ifcb6c0e4ca8334a263be6534596c30b3bcca243b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6110726
Reviewed-by: Samiya Caur <samiyac@chromium.org>
Commit-Queue: Samiya Caur <samiyac@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2024-12-27 02:54:56 -08:00
Rob Paveza c6e874eaa1 Upgrade parameters to rollup for cxx debugging plugin
Bug: 380367785
Change-Id: I8e74310db2b5b14d9801e1b449f14efe0d0d7c4c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6041172
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Robert Paveza <Rob.Paveza@microsoft.com>
2024-11-22 20:08:03 +00:00
Benedikt Meurer 61a8b2d0a0 [cleanup] Consistently use 'Open in Foo panel'.
Instead of the longer 'Reveal in Foo panel', just use 'Open in Foo
panel', which also aligns well with the wording that is otherwise
used (e.g. 'Open in new tab').

Bug: 372873222
Change-Id: Icbd93f5c6bbe8ea011179cbcedb8c306536ed781
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5979752
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Peter Müller <petermueller@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2024-10-31 09:48:18 +00:00
Benedikt Meurer 595ae84f3a [cleanup] Remove several unnnecessary foo as FooData casts.
This removes most unnecessary `foo as FooData` casts that we previously
enforced for `.data=${...}` assignments in lit-html templates. These
casts in this CL were 100% redundant and didn't hide any typing bugs.
There's another set of casts that were hiding potential bugs, and that
will be addressed in a separate CL.

Bug: 375114000
Change-Id: I4fa89a802e4f7880fbd47073c8b077adecdf5d5c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5956835
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2024-10-23 12:23:29 +00:00
Benedikt Meurer a75ec1d5d6 [cleanup] Remove rules/lit_html_data_as_type ESLint rule.
Bug: 375114000
Change-Id: I73e1f7b44733cbd98ad4565dc8e68a88596a3e0e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5953150
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2024-10-23 12:23:29 +00:00
Simon Zünd 4f7ccf48cc [cxx_debugging] skipLibCheck for e2e tests
Looks like TSC is unhappy with @types/node and we shouldn't type check
node_modules in any case. skipLibCheck: true is used by default
throughout the rest of the DevTools code base.

R=pfaffe@chromium.org

Bug: None
Change-Id: I6a0ffaba4aa6cfde554ce980d2b8b1f9aa5026ad
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5933844
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2024-10-15 12:55:52 +00:00
Jiewei Qian d4b700dfc6 ssci: canonicalize / backfill dependencies managed by DEPS
A LSC to canonicalize and backfill "Version: N/A; Revision: DEPS"
if the dependency managed by the readme file has non-compliant
versioning information, and can be plausibly identified as "managed
by DEPS".

This is the first step to fix "insufficient versioning information" at
scale, as it allows us to tell "managed by DEPS" apart from "genuinely
missing versioning information".

Bug: b/335761679
Change-Id: I3a34bd6b816e1ae250abe713d91949f3343c4b2a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5919048
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Jiewei Qian <qjw@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2024-10-09 06:25:20 +00:00
Danil Somsikov d74dc865b3 Remove check_component_naming and ban_literal_devtools_component_tag_names eslint rules.
These are superceeded by the lit-analyzer

No-Presubmit: true
Bug: 301364727
Change-Id: If14f928e9bff3fe5d3cdfe9b7b94adc2887aa43c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5915494
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2024-10-08 08:40:20 +00:00
Danil Somsikov dc5df3fd69 Remove custom_element_definitions_location lint rule.
It is hard to justify this requiement in the light of UI engineering
approach we are taking.

Bug: 301364727
Change-Id: I9f8f42255aab5dd41858e5840e048e47719f8520
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5899035
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Danil Somsikov <dsv@chromium.org>
2024-10-01 16:29:08 +00:00
Alex Rudenko d5d1201a2a [Refactor] Move mocha-interface to conductor
This allows using the same implementation to instrument
test functions, thus, removing watchForHang.

Bug: none
Change-Id: Ibe1868bb0bd31fcdece342fac1d7b56fedf16506
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5891210
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2024-09-26 06:11:55 +00:00
Jiewei Qian 011179f431 ssci: set Version: N/A for lldb-eval
Per metadata file guideline, lldb-eval is tracked by Revision,
so the Version field should be N/A.

Fixed: b/362397184
Change-Id: I504dc94e0f9d8fccd935ff114cd15e1308f95864
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5833004
Auto-Submit: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Eric Leese <leese@chromium.org>
2024-09-03 10:47:49 +00:00
Alex Rudenko 5810552d74 Implement custom mocha test interface instead of mocha-extensions
This CL simplifies the implementation of the test runner for e2e
and interaction tests by moving the test helpers previously found
in mocha-extensions.ts to a new mocha interface in mocha-interface.ts.

The interface file is provided to mocha using the `-u` option and
it will be used by the test runner to process test files.

This allows more easily to control the test interface exposed to tests
and implementing custom logic before the test is executed without
resorting to interception and re-definition of built-in mocha interfaces.

This change also eliminates the need to import mocha-extensions.js in
every test file.

The following features are now exposed to tests:

1) it/it.skip/it.only/it.skipOnPlatforms
2) describe/describe.skip/describe.only/describe.skipOnPlatforms
3) itScreenshot/itScreenshot.only/itScreenshot.skip/itScreenshot.skipOnPlatforms
4) AbortSignal to abort test operations is added to AsyncScope.abortSignal.
5) AsyncScope and screenshots are taken on timeout or error as previously.

Cq-Include-Trybots: luci.devtools-frontend.try:cpp_debug_extension_e2e_dbg,cpp_debug_extension_e2e_rel
Bug: none
Change-Id: I03e3ef145a9bf527631ae99c03384b8ef0179c98
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5804334
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2024-08-29 12:34:35 +00:00
Philip Pfaffe 403a437d67 Enable velogging testing mode for the cxx extension e2e tests
Bug: none
Change-Id: I6eb79ce807a13e7e8102f8952859156bd4c0b0a4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5729352
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2024-08-01 05:57:43 +00:00
Philip Pfaffe 19c95f3936 [cxx_debugging] Document e2e tests
Bug: none
Change-Id: I75679b91ef0f3b5eca83facbb687fc261b907332
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5735981
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
2024-07-24 11:49:40 +00:00
Philip Pfaffe 5626e0fced [cxx_debugging] Allow umd access to fix build with new ts
Bug: none
Change-Id: Icf774dec104742b577d3aa96872af1e06a384fed
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5703409
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2024-07-15 10:18:17 +00:00
Takuto Ikuta 0d9bda5c80 Roll extensions/cxx_debugging/third_party/llvm/src/ c08d3b08f..3c51ea361 (1044 commits)
This updates to the commit before breaking builds.

https://chromium.googlesource.com/external/github.com/llvm/llvm-project/+log/c08d3b08f6d7..3c51ea3619e4

$ git log c08d3b08f..3c51ea361 --date=short --no-merges --format='%ad %ae %s'
2022-11-30 rupprecht [DataFormatter] Fix variant npos with `_LIBCPP_ABI_VARIANT_INDEX_TYPE_OPTIMIZATION` enabled.
2022-11-30 rsundahl [asan][aarch64] Don't use 64 bit allocator for Apple ios family
2022-11-30 bazuzi [test] Fix aggregate initialization incompatible with c++20
2022-11-30 jonas [lldb] Use LLDB_ENABLE_SWIG as the canonical CMake variable
2022-11-30 spatel [InstSimplify] (X && Y) ? X : Y --> Y
2022-11-30 spatel [InstSimplify] add tests for select with common 'and' ops; NFC
2022-11-18 alexrichardson [clang][TargetInfo] Use LangAS for getPointer{Width,Align}()
2022-11-30 paul.robinson [Windows] Canonicalize on 'target=.*-windows'
2022-11-30 paul.robinson [PS4/PS5] Convert tests to check 'target=<triple>'
2022-11-30 spatel [InstCombine] canonicalize trunc + insert as bitcast + shuffle, part 1 (2nd try)
2022-11-18 szakharin [flang] Use proper attributes for runtime calls with 'i1' arguments/returns.
2022-11-29 ajcbik [mlir][sparse][vectorization] implement "index" vectorization
2022-11-29 smeenai [compiler-rt] Fix check-profile dependencies
2022-11-29 smeenai [runtimes] Add check-profile dependencies to runtimes
2022-11-29 smeenai [runtimes] Create check- targets for LLVM_RUNTIME_DISTRIBUTION_COMPONENTS
2022-11-29 smeenai [runtimes] Support sub-components in LLVM_RUNTIME_DISTRIBUTION_COMPONENTS
2022-11-29 smeenai [runtimes] Name stripped install targets consistently
2022-11-30 spatel Revert "[InstCombine] canonicalize trunc + insert as bitcast + shuffle, part 1"
2022-11-03 michaeltmaitland [RISCV][Codegen] Account for LMUL in Vector floating-point instructions
2022-11-30 preames [RISCV] Inline RISCVFrameLowering::adjustReg out of existance [nfc]
2022-11-29 sguelton [Nomination] Adding Mozilla representative to security group
2022-11-30 momchil.velikov [FuncSpec] Invalidate analyses when deleting a fully specialised function
2022-11-30 preames [RISCV] Adjust code to fallthrough to a single adjustReg callsite [nfc]
2022-11-30 craig.topper [RISCV] Teach getRegAllocationHints about compressible SRAI/SRLI.
2022-11-30 yijiagu Add async_funcs_only option to AsyncToAsyncRuntime pass
2022-11-30 spatel [InstCombine] canonicalize trunc + insert as bitcast + shuffle, part 1
2022-11-30 thurston msan: update tests for new memory mappings on aarch64
2022-11-30 saugustine Fix bazel build for https://reviews.llvm.org/D138980
2022-11-30 preames [RISCV] Merge two versions of adjustReg on TRI [nfc]
2022-11-30 jay.foad [AMDGPU] Use s_cmp instead of s_cmpk
2022-11-30 clementval [flang] Delegate pointer association to class(*) pointer to the runtime
2022-11-30 preames [RISCV] Reuse and generalize adjustReg from another spot in frame lowering [nfc]
2022-11-30 thurston msan: update shadow constant in strlen_of_shadow test
2022-11-30 antiagainst [mlir][spirv] Allow controlling subgroup size
2022-11-30 preames [RISCV] Share code for fixed offsets adjustRegs (thus materializing fewer constants)
2022-11-30 sam.mccall [include-cleaner] Move RecordedPP::RecordedIncludes -> Includes in Types.h. NFC
2022-11-30 sam.mccall [include-cleaner] Record whether includes are spelled with <angle> quotes
2022-11-30 yueh.ting.chen [NFC] Add missing period
2022-11-30 flo Recommit "[VPlan] Add VPDerivedIVRecipe, use for VPScalarIVStepsRecipe."
2022-11-30 archibald.elliott [Threading] Ensure Tests Reflect Disabled Threads
2022-11-30 kazu [mlir] Fix a warning
2022-11-30 kazu [Basic] Fix a warning
2022-11-30 flo [LV] Add test showing crash with 0fa666ecedc3.
2022-11-29 yueh.ting.chen [RISCV] Add macro to imply compiler availability on RISC-V Vector intrinsics version
2022-11-30 kai.ting.wang [MLIR][Transform] Consolidate the transform ops of get_parent_for and loop unroll from affine and scf dialects.
2022-11-30 kubak [mlir][vector] Use zip_equal instead of size assertions. NFC.
2022-11-22 lntue [libc][math] Improve the performance of subtraction for UInt<>.
2022-11-30 jhuber6 [libc][docs] Fix code block not being emitted
2022-11-30 qiongsiwu [AIX][LTO] Enabling Context Sensitive PGO Options
2022-11-30 flo [LV] Update test to use opaque pointers.
(...)
2022-11-22 stefan.graenitz Revert "[CGObjC] Add run line for release mode in test arc-exceptions-seh.mm (NFC)"
2022-11-22 i [ELF] addRelIpltSymbols: make it explicit some passes are for non-relocatable links. NFC
2022-11-22 xur [CHR] Add a threshold for the code duplication
2022-11-04 nikolasklauser [libc++][math.h][NFC] Refactor enable_ifs
2022-11-04 nikolasklauser [libc++][math.h] Remove some code duplication
2022-11-04 nikolasklauser [libc++][math.h] Remove __libcpp_<func> functions and instead call builtins directly
2022-11-04 nikolasklauser [libc++] Assume that builtins for math.h functions are available
2022-10-28 nikolasklauser [libc++] Remove duplication in math_h.pass.cpp and improve coverage
2022-11-18 kparzysz [Hexagon] Use V6_vmpyuhvs for 16-bit mulhu on HVX v69+
2022-11-22 zequanwu Reland "[LTO][COFF] Use bitcode file names in lto native object file names."
2022-11-22 paulkirth Revert "[clang-doc] Move file layout to the generators."
2022-11-22 benny.kra [mlir] Add tablegen types for fp8 types
2022-11-22 vitalybuka Revert "[AArch64] Add GPR rr instructions to isAssociativeAndCommutative"
2022-11-22 zequanwu Revert "[LTO][COFF] Use bitcode file names in lto native object file names."
2022-11-22 mariya.podchishchaeva [Driver][Test] Fix pic.c when CLANG_DEFAULT_PIE_ON_LINUX set to OFF
2022-11-15 brettw [clang-doc] Move file layout to the generators.
2022-11-17 zequanwu [LLDB][Minidump] Merge executable module's architecture into target's architecture.
2022-11-22 samitolvanen [Clang][Driver] Add KCFI to SupportsCoverage
2022-11-01 zequanwu [LTO][COFF] Use bitcode file names in lto native object file names.
2022-11-22 llvm-dev [DAG] isGuaranteedNotToBeUndefOrPoison - handle FrameIndex/TargetFrameIndex
2022-11-14 dbakunevich [Utils] Improved chunk-print-before-all.py script
2022-10-18 alexander.timofeev [AMDGPU] Avoid SCC clobbering before S_CSELECT_B32
2022-11-18 hassnaa.hamdi [AArch64][SME]: Generate streaming-compatible code for fp_arith and fp-fma
2022-11-18 hassnaa.hamdi [AArch64][SME]: Add precursory tests for D138290
2022-11-22 kazu [ADT] Define None as std::nullopt (NFC)
2022-11-22 llvm-dev [X86] Cleanup WriteBlend classes to match (V)PLENDW instruction
2022-11-22 kparzysz [Hexagon] Make local array static in getIntrinsicForHexagonNonClangBuiltin
2022-11-18 kstoimenov [Sanitizer][NFC] Rearranged prototype definitions in lsan_common.h to group them by implementation file.
2022-11-22 carrot [AArch64] Correctly recognize -reserve-regs-for-regalloc=X30,X29
2022-11-22 jay.foad [AMDGPU] Remove RegStrictDom variable. NFC.
2022-11-22 jay.foad [AMDGPU] Define and use new allZeroWaitcnt helper. NFC.
2022-11-22 flo [AArch64] Add zext test with scalable vectors.
2022-11-15 koraq [libc++][format] Fixes visit_format_arg.
2022-11-22 springerm [mlir][tensor] Add dim(expand_shape/collapse_shape) folding
2022-11-18 tbaeder [clang][Parse] Remove constant expression from if condition
2022-11-20 bixia [mlir][sparse] Fix a bug in concatenate operator rewriting.
2022-11-20 Matthew.Arsenault clang/HIP: Add new header test for math IR gen
2022-11-20 Matthew.Arsenault LoopDeletion: Fix missing newlines in debug printing
2022-11-03 yitzhakm [clang][dataflow] Add widening API and implement it for built-in boolean model.
2022-11-22 springerm [mlir][bufferize][NFC] Minor code and comment cleanups
2022-11-22 kli [Flang] Removing Float Bessel functions for AIX
2022-11-21 david.spickett [libcxx] Add BOT_OWNERS.txt
2022-11-18 vyng [lld-macho] Fix bug in CUE folding that resulted in wrong unwind table.
2022-11-17 yaxun.liu [HIP] Fix lld failure when devie object is empty
2022-11-22 stefanp [PowerPC] Add handling for WACC register spilling.
2022-11-22 spatel [VectorCombine] switch on opcode to compile faster
2022-11-06 pavel [lldb] rm include/lldb/Host/posix/Fcntl.h
2022-11-06 pavel Add include guards for PlatformQemuUser.h
2022-11-22 zinenko [mlir] fix incorrect summary/description in doc
2022-11-11 paul.walker [SVE] Fix incorrect predicate for fixed length int/fp conversion.

Created with:
  roll-dep extensions/cxx_debugging/third_party/llvm/src

Bug: chromium:346233599
Change-Id: I756ab27f09d60784c7b2efab4886a04eb8604554
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5633556
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2024-06-19 04:58:23 +00:00
tombl e65008765e Only substitute sourcemapped names in JavaScript code
We substitute sourcemapped identifiers by parsing entered code with
a JavaScript parser. This shouldn't be done when the debugger is used
in a C/C++ context.

Fixed: 343124456
Change-Id: Ie0d804a07079429aa2000700fa2bba9f88625777
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5578628
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2024-06-07 10:51:23 +00:00
Takuto Ikuta cc6215f278 extensions: remove references to goma
goma is not used anymore.

Bug: 41489832
Change-Id: Ie4e7b127db690a2f09afc99baf311e4ae5f84468
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5578916
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
2024-05-29 09:31:21 +00:00
Jérôme Vouillon 32d0a0e32b C++ debugging extension: support type externref
This is implemented by passing a reference to the externref value through the extension (type ForeignObject in the extension API).

A tricky point is that one can only pass numeric values through LLDB, so we pack this reference into a 64-bit integer.

Fixed: 334965862
Change-Id: I6b4644d51ff59eee2c66f034017bc7a924d5febe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5458414
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2024-05-28 07:30:44 +00:00
Kim-Anh Tran f04c1f3f32 Change getFunctionInfo api to also accept missing symbols and frames
Previously there was a mismatch between what DevTools front-end
expected and what the DWARF C/C++ extension would return on
`getFunctionInfo`. The front-end only expected either `frames`
or `missingSymbolFiles` to be sent, but the extension would
return both. Combined with a recent change, this led to unwanted
warning messages on missing symbol files, although no symbol files
were actually missing.

This CL changes the LanguageExtensionPlugin API such that
`getFunctionInfo` may also return both.

Bug: 342316962
Change-Id: I312fd6783052d948ff76c3285a52b3a7c0052763
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5557983
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2024-05-23 09:09:57 +00:00
Philip Pfaffe d522f860b0 [cxx] Use new test driver infrastructure for the cxx debugging extension
This lets us remove a test runner.

Drive-by: Remove goma-related flags.

Bug: b:333423685
Change-Id: I104113dc3b49ab34e13c8abe83d9c2994345c04e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5465640
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
2024-04-18 14:20:44 +00:00
Philip Pfaffe 705cfde469 [testing] Run interactions tests with a unified test runner
Bug: b:333423685
Change-Id: Ibbde7fe953dbcd1350c8fe3011d43063ea69c1d1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5435762
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2024-04-11 10:29:41 +00:00
Benedikt Meurer 83425110a6 [eslint] Remove another bunch of eslint-disable pragmas.
Fixed: b:323795352
Bug: b:40166562
Change-Id: I3fe91197d35fd14d0e68f32695bcd6d2db826d10
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5385332
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2024-03-26 09:17:59 +00:00
Kim-Anh Tran 429e8b7d15 Link missing symbol warnings in Sources Panel to Developer Resources
This introduces a "Show request" button next to the warning of
missing DWARF debug data when using the C/C++ DWARF extension.
The button opens the Developer resource panel and selects the
request.

Also-by: pfaffe@chromium.org
Fixed: 40843774
Change-Id: I4530ebb1a72c94c0ef7e801b8d580261727b6283
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5377321
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2024-03-20 09:48:56 +00:00
Kim-Anh Tran 5c78764316 Use dw_opcodes in reporting missing dwarf info tests
Bug: 40746829
Change-Id: Idd62f64bcd2c0e02f54abd66ff89ca7cce291a80
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5358875
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Auto-Submit: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2024-03-11 14:22:04 +00:00
Kim-Anh Tran 2df74668bf Report loaded symbol resources to DevTools
Calling into DevTools in order to report loaded or missing symbol files.

Bug: 40746829
Change-Id: I0dabc00e1079d9a403ba850edecf31c6835432d2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5308065
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2024-03-11 08:23:58 +00:00
Benedikt Meurer 95b5000b68 [cleanup] Remove a bunch of @typescript-eslint/no-explicit-any pragmas.
Bug: b:319814509
Change-Id: Iafd7f9121f01de0208638cbe240bfae6fba84ef1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5317931
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
2024-02-22 16:13:42 +00:00
Benedikt Meurer d87daa6fba [cleanup] Remove unnecessary defineComponent() helper.
The helper was originally introduced with https://crrev.com/c/2878729 in
order to prevent accidental duplicate registrations, but that is not an
actual problem in practice. On the flip side the helper adds unnecessary
noise (both in terms of readability/familiarity and in terms of
additional pragmas to disable the relevant ESLint rule). And
additionally Open Web Component tooling[^1] doesn't understand the
helper, and cannot infer Web Component information for our code
correctly.

Given the downsides (and basically no upsides) and the fact that we are
actively exploring the idea of adopting more of open-wc, we'll drop the
helper and its eslint here.

[^1]: https://open-wc.org/guides/tools/web-component-devtools/

Doc: http://go/chrome-devtools:eslint-pain-points-design
Bug: b:319814509, chromium:1205825
Change-Id: If888be52c94d97f09662543fbf604f8dfe1eb575
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5308066
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2024-02-20 11:53:37 +00:00
Benedikt Meurer 9c139aacf7 [eslint] Allow unrestricted type imports.
Bug: b:325903709, b:319814509
Change-Id: I85014dbd6d1fa52898beb246d991111aa6c3cb0e
Doc: http://go/chrome-devtools:eslint-pain-points-design
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5308062
Reviewed-by: Simon Zünd <szuend@chromium.org>
2024-02-20 07:07:32 +00:00
Paul Irish ad9592cfa4 Improve predictability of interaction tests
1) RPP interaction test timeouts should be disabled when in DEBUG_TEST
If using `npm run debug-interactionstest`, any timeout overrides
shouldn't interfere with debugging.  The `this.timeout() !== 0`
pattern used elsewhere is reused here.

2) Many HTML documents used in interaction/e2e tests were in quirks
mode. This results in very slight differences [0] like unexpected
table styling. We apply a doctype to keep the component pages
consistent with how the frontend is delivered.

3) Hide component docs UI during interaction tests to prevent accidental
click()s on it.

[0] https://quirks.spec.whatwg.org/

Bug: chromium:325316147
Change-Id: I7a9defa4006382c130e384fe1bcc671bb7f00505
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5301854
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Paul Irish <paulirish@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2024-02-16 06:54:21 +00:00