Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init |
|
#
9ef2ac3a |
| 11-Jan-2024 |
Younan Zhang <zyn7109@gmail.com> |
[clangd] Handle lambda scopes inside Node::getDeclContext() (#76329)
We used to consider the `DeclContext` for selection nodes inside a
lambda as the enclosing scope of the lambda expression, rathe
[clangd] Handle lambda scopes inside Node::getDeclContext() (#76329)
We used to consider the `DeclContext` for selection nodes inside a
lambda as the enclosing scope of the lambda expression, rather than the
lambda itself.
For example,
```cpp
void foo();
auto lambda = [] {
return ^foo();
};
```
where `N` is the selection node for the expression `foo()`,
`N.getDeclContext()` returns the `TranslationUnitDecl` previously, which
IMO is wrong, since the method `operator()` of the lambda is closer.
Incidentally, this fixes a glitch in add-using-declaration tweaks.
(Thanks @HighCommander4 for the test case.)
show more ...
|
Revision tags: llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init |
|
#
9841daf2 |
| 03-Jul-2023 |
Kadir Cetinkaya <kadircet@google.com> |
[clang][tooling] Fix early termination when there are nested expansions
This also does some cleanups, I am happy to undo them (or send as separate patches): - Change the early exit to stop only once
[clang][tooling] Fix early termination when there are nested expansions
This also does some cleanups, I am happy to undo them (or send as separate patches): - Change the early exit to stop only once we hit an expansion inside the main file, to make sure we keep following the nested expansions. - Add more tests to cover all the cases mentioned in the implementation - Drop the adjustments for prev/next tokens. We do the final checks based on the expansion locations anyway, so any intermediate mapping was a no-op.
Differential Revision: https://reviews.llvm.org/D154335
show more ...
|
Revision tags: llvmorg-16.0.6, llvmorg-16.0.5 |
|
#
51df1a9a |
| 24-May-2023 |
Kadir Cetinkaya <kadircet@google.com> |
[clangd] Fix add-using tweak on declrefs with template arguments
Differential Revision: https://reviews.llvm.org/D151303
|
Revision tags: llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1 |
|
#
029ec03a |
| 21-Mar-2023 |
Kadir Cetinkaya <kadircet@google.com> |
[clangd][NFC] Format & include cleanup for AddUsingTests.cpp
|
#
35c2aac6 |
| 20-Mar-2023 |
Kadir Cetinkaya <kadircet@google.com> |
Revert "Revert "[clangd] Fix AddUsing in the face of typo-correction""
This reverts commit fb3f6a95393f33bc8d8550a5ac62c18e488a9b6f.
|
#
fb3f6a95 |
| 20-Mar-2023 |
Kadir Cetinkaya <kadircet@google.com> |
Revert "[clangd] Fix AddUsing in the face of typo-correction"
This reverts commit 6f23fee4ef98a695062aa128a177478ba7d742d4. Breaks windows buildbots
|
#
6f23fee4 |
| 20-Mar-2023 |
Kadir Cetinkaya <kadircet@google.com> |
[clangd] Fix AddUsing in the face of typo-correction
Fixes https://github.com/clangd/clangd/issues/559
Differential Revision: https://reviews.llvm.org/D146417
|
Revision tags: llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, working, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init, llvmorg-14.0.6, llvmorg-14.0.5, llvmorg-14.0.4 |
|
#
a316a981 |
| 06-May-2022 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Rewrite TweakTesting helpers to avoid reparsing the same code. NFC
Previously the EXPECT_AVAILABLE macros would rebuild the code at each marked point, by expanding the cases textually. Ther
[clangd] Rewrite TweakTesting helpers to avoid reparsing the same code. NFC
Previously the EXPECT_AVAILABLE macros would rebuild the code at each marked point, by expanding the cases textually. There were often lots, and it's nice to have lots!
This reduces total unittest time by ~10% on my machine. I did have to sacrifice a little apply() coverage in AddUsingTests (was calling expandCases directly, which was otherwise unused), but we have EXPECT_AVAILABLE tests covering that, I don't think there's real risk here.
Differential Revision: https://reviews.llvm.org/D125109
show more ...
|
Revision tags: llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1 |
|
#
46dbd19a |
| 21-Mar-2022 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Fix nullptr crash in AddUsing tweak on catch(...)
Fixes https://github.com/clangd/clangd/issues/1072
|
Revision tags: llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3, llvmorg-14.0.0-rc2 |
|
#
4d006520 |
| 26-Feb-2022 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Clean up unused includes. NFCI
Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes.
|
Revision tags: llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2, llvmorg-13.0.1-rc1 |
|
#
21745241 |
| 26-Oct-2021 |
Adam Czachorowski <adamcz@google.com> |
[clangd] AddUsing: Fix support for template specializations.
Before this change, we would add "using std::vector<int>" instead of just "using std::vector;", which would not even compile.
Fixes http
[clangd] AddUsing: Fix support for template specializations.
Before this change, we would add "using std::vector<int>" instead of just "using std::vector;", which would not even compile.
Fixes https://github.com/clangd/clangd/issues/904
Differential Revision: https://reviews.llvm.org/D112530
show more ...
|
Revision tags: llvmorg-13.0.0, llvmorg-13.0.0-rc4, llvmorg-13.0.0-rc3, llvmorg-13.0.0-rc2, llvmorg-13.0.0-rc1, llvmorg-14-init, llvmorg-12.0.1, llvmorg-12.0.1-rc4, llvmorg-12.0.1-rc3, llvmorg-12.0.1-rc2, llvmorg-12.0.1-rc1, llvmorg-12.0.0, llvmorg-12.0.0-rc5, llvmorg-12.0.0-rc4, llvmorg-12.0.0-rc3, llvmorg-12.0.0-rc2, llvmorg-11.1.0, llvmorg-11.1.0-rc3, llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2, llvmorg-11.1.0-rc1, llvmorg-11.0.1, llvmorg-11.0.1-rc2 |
|
#
5934a791 |
| 09-Dec-2020 |
Adam Czachorowski <adamcz@google.com> |
[clangd] Split tweak tests into one file per tweak.
No changes to the tests themselves, other than some auto -> const auto diagnostic fixes and formatting.
Differential Revision: https://reviews.ll
[clangd] Split tweak tests into one file per tweak.
No changes to the tests themselves, other than some auto -> const auto diagnostic fixes and formatting.
Differential Revision: https://reviews.llvm.org/D92939
show more ...
|