<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/unittests/Format/SortImportsTestJS.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[clang-format][NFC] Remove redundnat llvm::, clang::, etc.</title>
<updated>2024-05-21T03:32:18+00:00</updated>
<author>
<name>Owen Pan</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2024-05-21T02:28:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1c58208d899285318c89e069268145c85ec33368'/>
<id>1c58208d899285318c89e069268145c85ec33368</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format][NFC] Remove some extraneous newlines at end of test cases</title>
<updated>2023-10-26T20:37:23+00:00</updated>
<author>
<name>Owen Pan</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2023-10-26T20:30:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e3ecdf7d3b7ec8fa2c3c594ff39b20788e75eaf2'/>
<id>e3ecdf7d3b7ec8fa2c3c594ff39b20788e75eaf2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Fix a JavaScript import order bug</title>
<updated>2023-10-26T00:06:53+00:00</updated>
<author>
<name>Owen Pan</name>
<email>owenpiano@gmail.com</email>
</author>
<published>2023-10-25T14:31:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=265ed6819409a9d76f112a601d48b971904921c8'/>
<id>265ed6819409a9d76f112a601d48b971904921c8</id>
<content type='text'>
When the imported symbol is exactly "template" the sorting is disabled.
"import {template} from x;" is not recognized as an import.

Differential Revision: https://reviews.llvm.org/D61663
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the imported symbol is exactly "template" the sorting is disabled.
"import {template} from x;" is not recognized as an import.

Differential Revision: https://reviews.llvm.org/D61663
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: [JS] terminate import sorting on `export type X = Y`</title>
<updated>2023-05-15T13:37:18+00:00</updated>
<author>
<name>Jan Kuhle</name>
<email>jankuehle@google.com</email>
</author>
<published>2023-05-15T13:33:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e1f34b735b669c5978bfdead874ee59d33f99eb0'/>
<id>e1f34b735b669c5978bfdead874ee59d33f99eb0</id>
<content type='text'>
Contributed by @jankuehle!

https://reviews.llvm.org/D150116 introduced a bug. `export type X = Y` was considered an export declaration and took part in import sorting. This is not correct. With this change `export type X = Y` properly terminates import sorting.

Reviewed By: krasimir

Differential Revision: https://reviews.llvm.org/D150563
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Contributed by @jankuehle!

https://reviews.llvm.org/D150116 introduced a bug. `export type X = Y` was considered an export declaration and took part in import sorting. This is not correct. With this change `export type X = Y` properly terminates import sorting.

Reviewed By: krasimir

Differential Revision: https://reviews.llvm.org/D150563
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: [JS] support import/export type</title>
<updated>2023-05-10T13:27:03+00:00</updated>
<author>
<name>Jan Kuhle</name>
<email>jankuehle@google.com</email>
</author>
<published>2023-05-10T13:11:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=34b422bafbd934ee3c644fd7a8f0b6803976c818'/>
<id>34b422bafbd934ee3c644fd7a8f0b6803976c818</id>
<content type='text'>
Contributed by @jankuehle!

Users can choose to only import/export the type of the symbol (not value nor namespace) by adding a `type` keyword, e.g.:

```
import type {x} from 'y';
import {type x} from 'y';
export type {x};
export {type x};
```

Previously, this was not handled and would:
- Terminate import sorting
- Remove the space before the curly bracket in `export type {`

With this change, both formatting and import sorting work as expected.

Reviewed By: MyDeveloperDay, krasimir

Differential Revision: https://reviews.llvm.org/D150116
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Contributed by @jankuehle!

Users can choose to only import/export the type of the symbol (not value nor namespace) by adding a `type` keyword, e.g.:

```
import type {x} from 'y';
import {type x} from 'y';
export type {x};
export {type x};
```

Previously, this was not handled and would:
- Terminate import sorting
- Remove the space before the curly bracket in `export type {`

With this change, both formatting and import sorting work as expected.

Reviewed By: MyDeveloperDay, krasimir

Differential Revision: https://reviews.llvm.org/D150116
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: [JS] sort import aliases. Users can define aliases for long symbols using import aliases:</title>
<updated>2022-01-28T10:51:28+00:00</updated>
<author>
<name>Martin Probst</name>
<email>martin@probst.io</email>
</author>
<published>2022-01-28T08:12:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=03c59765b3eb2f2233728da8e16637f802147d66'/>
<id>03c59765b3eb2f2233728da8e16637f802147d66</id>
<content type='text'>
    import X = A.B.C;

Previously, these were unhandled and would terminate import sorting.
With this change, aliases sort as their own group, coming last after all
other imports.

Aliases are not sorted within their group, as they may reference each
other, so order is significant.

This reverts commit f750c3d95a0c8bf1d21380ae753fce12010a7561. It fixes
the msan issue by not parsing past the end of the line when handling
import aliases.

Differential Revision: https://reviews.llvm.org/D118446
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    import X = A.B.C;

Previously, these were unhandled and would terminate import sorting.
With this change, aliases sort as their own group, coming last after all
other imports.

Aliases are not sorted within their group, as they may reference each
other, so order is significant.

This reverts commit f750c3d95a0c8bf1d21380ae753fce12010a7561. It fixes
the msan issue by not parsing past the end of the line when handling
import aliases.

Differential Revision: https://reviews.llvm.org/D118446
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "clang-format: [JS] sort import aliases."</title>
<updated>2022-01-28T05:16:53+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2022-01-28T05:16:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f750c3d95a0c8bf1d21380ae753fce12010a7561'/>
<id>f750c3d95a0c8bf1d21380ae753fce12010a7561</id>
<content type='text'>
Triggers MSAN report.

This reverts commit c6d5efb5d98093c4bd7578b2ea52c9032d20dea3.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Triggers MSAN report.

This reverts commit c6d5efb5d98093c4bd7578b2ea52c9032d20dea3.
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: [JS] sort import aliases.</title>
<updated>2022-01-27T15:16:37+00:00</updated>
<author>
<name>Martin Probst</name>
<email>martin@probst.io</email>
</author>
<published>2022-01-27T14:15:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c6d5efb5d98093c4bd7578b2ea52c9032d20dea3'/>
<id>c6d5efb5d98093c4bd7578b2ea52c9032d20dea3</id>
<content type='text'>
Users can define aliases for long symbols using import aliases:

    import X = A.B.C;

Previously, these were unhandled and would terminate import sorting.
With this change, aliases sort as their own group, coming last after all
other imports.

Aliases are not sorted within their group, as they may reference each
other, so order is significant.

Revision URI: https://reviews.llvm.org/D118361
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Users can define aliases for long symbols using import aliases:

    import X = A.B.C;

Previously, these were unhandled and would terminate import sorting.
With this change, aliases sort as their own group, coming last after all
other imports.

Aliases are not sorted within their group, as they may reference each
other, so order is significant.

Revision URI: https://reviews.llvm.org/D118361
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-format] Indicate source location on test failure. NFC.</title>
<updated>2022-01-20T13:10:59+00:00</updated>
<author>
<name>Marek Kurdej</name>
<email>marek.kurdej+llvm.org@gmail.com</email>
</author>
<published>2022-01-20T13:03:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=69ecd2484f0d363537afc0157bd6a946fccf8453'/>
<id>69ecd2484f0d363537afc0157bd6a946fccf8453</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>clang-format: [JS] don't sort named imports if off.</title>
<updated>2021-06-11T10:02:33+00:00</updated>
<author>
<name>Martin Probst</name>
<email>martin@probst.io</email>
</author>
<published>2021-06-11T09:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=63042d46bb0c2481a8b7aa1c324405c2720b3603'/>
<id>63042d46bb0c2481a8b7aa1c324405c2720b3603</id>
<content type='text'>
The previous implementation would accidentally still sort the individual
named imports, even if the module reference was in a clang-format off
block.

Differential Revision: https://reviews.llvm.org/D104101
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previous implementation would accidentally still sort the individual
named imports, even if the module reference was in a clang-format off
block.

Differential Revision: https://reviews.llvm.org/D104101
</pre>
</div>
</content>
</entry>
</feed>
