VitaNuo added a comment.
Thanks!
Comment at:
clang-tools-extra/clangd/unittests/tweaks/OrganizeImportsTests.cpp:35-41
+ {
+ R"cpp(
+#include "Te^stTU.h"
+)cpp",
+ true,
+ {}},
+ {"void foo(^) {}"
VitaNuo updated this revision to Diff 557771.
VitaNuo marked 10 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153769/new/
https://reviews.llvm.org/D153769
Files:
clang-to
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Respond to comments.
Comment at: clang-tools-extra/clangd/refactor/tweaks/OrganizeImports.cpp:56
+return false;
+ Range PreambleRange;
+ PreambleRange.start =
kadircet wrote:
> VitaNuo wro
VitaNuo added a comment.
I think I also managed to update the wrong patch. Not sure how an alternative
patch got created in the first place :( Sorry for the mess, should be fine now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153769/new/
https:
VitaNuo updated this revision to Diff 556532.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153769/new/
https://reviews.llvm.org/D153769
Files:
clang-too
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
I'm sorry I think the upload failed because I tried to upload without a message
or something, and I didn't notice that it failed :(
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153
VitaNuo updated this revision to Diff 556531.
VitaNuo added a comment.
Address comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159498/new/
https://reviews.llvm.org/D159498
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
VitaNuo marked 10 inline comments as done.
VitaNuo added a comment.
Thank you for the comments!
Comment at: clang-tools-extra/clangd/ClangdServer.cpp:752
auto Action = [File = File.str(), Sel, TweakID = TweakID.str(),
- CB = std::move(CB),
+ C
This revision was automatically updated to reflect the committed changes.
Closed by commit rG64366d4935d3: [clangd] Rollforward include-cleaner library
usage in symbol collector. (authored by VitaNuo).
Changed prior to commit:
https://reviews.llvm.org/D156659?vs=556135&id=556396#toc
Repository
VitaNuo updated this revision to Diff 556135.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Address comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156659/new/
https://reviews.llvm.org/D156659
Files:
clang-tools-extr
VitaNuo marked 2 inline comments as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:919
+ if (IncludeHeader.empty())
+HeaderFileURIs->getIncludeHeader(FID);
+
kadircet wrote:
> i guess LHS of the as
VitaNuo added a comment.
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156659/new/
https://reviews.llvm.org/D156659
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/
VitaNuo updated this revision to Diff 556130.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Address the comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156659/new/
https://reviews.llvm.org/D156659
Files:
clang-tools-e
VitaNuo added inline comments.
Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:912
+if (Directives & Symbol::Import) {
+ if (auto IncludeHeader = HeaderFileURIs->getIncludeHeader(FID);
+ !IncludeHeader.empty()) {
kadircet wrote:
>
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG43c20367f417: [include-cleaner][clangd][clang-tidy] Ignore
resource dir during include… (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
VitaNuo added a comment.
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157610/new/
https://reviews.llvm.org/D157610
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/
VitaNuo updated this revision to Diff 556127.
VitaNuo marked 3 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157610/new/
https://reviews.llvm.org/D157610
Files:
clang-too
This revision was automatically updated to reflect the committed changes.
Closed by commit rG625891288087: [clangd][clang-tidy] Add missing symbols to
the symbol map. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159462/new/
h
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd71adebb9fb8: [include-cleaner] Map the 4-argument move
overload to the algorithm header. (authored by VitaNuo).
Repository:
rG LLVM Github Monore
VitaNuo updated this revision to Diff 556004.
VitaNuo marked 5 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156659/new/
https://reviews.llvm.org/D156659
Files:
clang-too
VitaNuo created this revision.
Herald added a subscriber: kadircet.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159463
Fi
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman, xazax.hun.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang.
Repository:
rG LLVM Github Monorepo
https
VitaNuo updated this revision to Diff 555995.
VitaNuo added a comment.
Rebase to current main.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157610/new/
https://reviews.llvm.org/D157610
Files:
clang-tools-extra/clang-tidy/misc/IncludeCleanerChec
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Thanks for the help in resolving the resource dir issues!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157610/new/
https://reviews.llvm.org/D157610
___
VitaNuo updated this revision to Diff 555985.
VitaNuo added a comment.
Fix analysis test to properly recognize the resource directory.
Use HeaderSearch->getModuleMap().BuiltinDir to find out the resource directory.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://review
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp:122
llvm::DenseSet SeenSymbols;
+ std::string ResourceDir = HS->getHeaderSearchOpts().ResourceDir;
// FIXME: Find a way to have less code duplication b
VitaNuo updated this revision to Diff 549443.
VitaNuo marked 4 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157610/new/
https://reviews.llvm.org/D157610
Files:
clang-too
VitaNuo created this revision.
Herald added subscribers: PiotrZSL, kadircet, carlosgalvezp, arphaman,
xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc3ad4b763602: [include-cleaner] Follow `IWYU pragma: export`
links transitively. (authored by VitaNuo).
Changed prior to commit:
https://reviews.l
VitaNuo updated this revision to Diff 548546.
VitaNuo added a comment.
Add a test with private headers involved. Order of exporters is from outermost
to innermost.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157395/new/
https://reviews.llvm.org/
VitaNuo updated this revision to Diff 548540.
VitaNuo added a comment.
Address the comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157395/new/
https://reviews.llvm.org/D157395
Files:
clang-tools-extra/include-cleaner/lib/FindHeaders.cpp
VitaNuo accepted this revision.
VitaNuo added a comment.
This revision is now accepted and ready to land.
Thanks.
Comment at: clang-tools-extra/include-cleaner/unittests/FindHeadersTest.cpp:474
+ Inputs.ExtraFiles["bar.h"] =
+ guard(R"cpp(#include "foo.h" // IWYU pragma:
VitaNuo updated this revision to Diff 548217.
VitaNuo added a comment.
Remove the preferred header hint for exporters.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157395/new/
https://reviews.llvm.org/D157395
Files:
clang-tools-extra/include-cl
VitaNuo updated this revision to Diff 548204.
VitaNuo added a comment.
Remove accidental comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157395/new/
https://reviews.llvm.org/D157395
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
VitaNuo created this revision.
Herald added a subscriber: kadircet.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157395
Fi
VitaNuo accepted this revision.
VitaNuo added a comment.
This revision is now accepted and ready to land.
Thanks.
Comment at: clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.h:48
+ // Whether emit only one finding per usage of a symbol.
+ const bool EmitOnce;
llvm::S
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8a5c0ccee293: [clangd][clang-tidy][std_symbol_map] Add
missing symbol. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE L
VitaNuo created this revision.
VitaNuo added a reviewer: kadircet.
Herald added subscribers: carlosgalvezp, arphaman, xazax.hun.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang.
Rep
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5d492766a8fb: [clangd][clang-tidy][stdlib] Add a missing
symbol to the mapping. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGE
VitaNuo created this revision.
Herald added subscribers: carlosgalvezp, kadircet, arphaman, xazax.hun.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang.
Repository:
rG LLVM Github
VitaNuo added a comment.
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156123/new/
https://reviews.llvm.org/D156123
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/
VitaNuo accepted this revision.
VitaNuo added a comment.
This revision is now accepted and ready to land.
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156122/new/
https://reviews.llvm.org/D156122
__
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/lib/Record.cpp:248
+ if (Top.SeenAtFile == SM.getMainFileID() && IncludedFile)
+Out->ShouldKeep.insert(IncludedFile->getUniqueID());
}
If I understand correctly, you sh
VitaNuo added inline comments.
Comment at:
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Record.h:63
+ bool shouldKeep(unsigned HashLineNumber) const;
+ bool shouldKeep(const FileEntry *FE) const;
Why wouldn't you actually inline the implem
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added projects: clang, clang-tools-extra.
Repository:
rG LLVM Github Monorepo
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/refactor/tweaks/OrganizeImports.cpp:62
+ const auto &SM = Inputs.AST->getSourceManager();
+ std::set Spellings;
+ for (const auto &Missing : Findings.MissingIncludes)
kadi
VitaNuo updated this revision to Diff 544751.
VitaNuo marked 8 inline comments as done.
VitaNuo added a comment.
Address review comments. Update the action to trigger when source action is
requested explicitly or from the preamble range. Add unit test.
Repository:
rG LLVM Github Monorepo
CHA
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3c6a7b0045af: [clangd] Revert the symbol collector behavior
to old pre-include-cleaner… (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
VitaNuo updated this revision to Diff 544689.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Address comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156403/new/
https://reviews.llvm.org/D156403
Files:
clang-tools-extra
VitaNuo updated this revision to Diff 544684.
VitaNuo marked 6 inline comments as done.
VitaNuo added a comment.
Address comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156403/new/
https://reviews.llvm.org/D156403
Files:
clang-tools-extr
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1f7c7d4bdd7b: [clangd] Update symbol collector to use
include-cleaner. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE L
VitaNuo updated this revision to Diff 542000.
VitaNuo marked 9 inline comments as done.
VitaNuo added a comment.
Address the latest comment batch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152900/new/
https://reviews.llvm.org/D152900
Files:
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG22605f5f1bf8: [clangd] Make an include always refer to
itself. Background: clang-review… (authored by VitaNuo).
Repository:
rG LLVM Github Monorep
VitaNuo accepted this revision.
VitaNuo added inline comments.
This revision is now accepted and ready to land.
Comment at: clang-tools-extra/clangd/XRefs.cpp:1361-1362
});
- if (Results.References.empty())
-return std::nullopt;
-
usaxena95 wrote:
> S
VitaNuo updated this revision to Diff 541882.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Remove only one of the checks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155614/new/
https://reviews.llvm.org/D155614
Files:
cla
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG96e50797d6ea: [clangd] Fix the range for include reference
to itself. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LA
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Thanks for the comments!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155215/new/
https://reviews.llvm.org/D155215
___
cfe-commits mail
VitaNuo updated this revision to Diff 540385.
VitaNuo added a comment.
Address comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155215/new/
https://reviews.llvm.org/D155215
Files:
clang-tools-extra/clangd/IncludeCleaner.cpp
clang-tools-
VitaNuo updated this revision to Diff 540321.
VitaNuo added a comment.
Re-use the logic from include cleaner in clangd.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155215/new/
https://reviews.llvm.org/D155215
Files:
clang-tools-extra/clangd/In
VitaNuo added a comment.
Hi Alex,
Thank you for the patch.
We are aware that issuing one diagnostic per symbol reference might be
overwhelming. However, we have decided to choose it over other options after
considering the use cases that we'd like to cover.
This check is intended to be used in
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
VitaNuo updated this revision to Diff 539908.
VitaNuo marked 3 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152900/new/
https://reviews.llvm.org/D152900
Files:
clang-too
VitaNuo marked 19 inline comments as done.
VitaNuo added a comment.
Thank you!
Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:839
+ if (!Headers.empty())
+SymbolProviders.insert({S.ID, Headers[0]});
}
kadircet wrote:
> once we have the opt
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7322f2d5ed54: [clangd] Use canonical path as resolved path
for includes. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154962/new/
https://reviews.llvm.org/D154962
___
cfe-commits mailing list
cfe-comm
VitaNuo updated this revision to Diff 539121.
VitaNuo added a comment.
Address comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154962/new/
https://reviews.llvm.org/D154962
Files:
clang-tools-extra/clangd/Headers.cpp
Index: clang-tools-e
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
VitaNuo accepted this revision.
VitaNuo added a comment.
This revision is now accepted and ready to land.
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154068/new/
https://reviews.llvm.org/D154068
__
VitaNuo added a comment.
Thanks for comments!
Comment at: clang-tools-extra/clangd/index/CanonicalIncludes.h:40
/// Adds a file-to-string mapping from \p ID to \p CanonicalPath.
void addMapping(FileEntryRef Header, llvm::StringRef CanonicalPath);
kadirc
VitaNuo updated this revision to Diff 535740.
VitaNuo marked 27 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152900/new/
https://reviews.llvm.org/D152900
Files:
clang-to
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:393-395
+const auto *FileEntry = SM.getFileEntryForID(FID);
+for (const auto *Export : PI.getExporters(FileEntry, SM.getFileManager()))
+ return toURI(E
VitaNuo updated this revision to Diff 532964.
VitaNuo marked 8 inline comments as done.
VitaNuo added a comment.
Herald added a subscriber: javed.absar.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152900/new/
https://revi
VitaNuo added a comment.
Thanks!
Comment at: clang-tools-extra/clangd/unittests/HoverTests.cpp:3726
+TEST(Hover, FunctionParameterDefaulValueNotEvaluatedOnInvalidDecls) {
+ struct {
hokein wrote:
> nit: instead of creating a completely-new TEST, it seems sim
This revision was automatically updated to reflect the committed changes.
VitaNuo marked an inline comment as done.
Closed by commit rGc9888dce4474: [clangd] Skip function parameter decls when
evaluating variables on hover. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SIN
VitaNuo added inline comments.
Comment at: clang-tools-extra/clangd/Hover.cpp:663
+ const auto *Var = dyn_cast(D);
+ if (Var && !llvm::isa(Var)) {
if (const Expr *Init = Var->getInit())
VitaNuo wrote:
> hokein wrote:
> > We're ignoring all `ParmVarDecl` ca
VitaNuo added a comment.
Thanks for the review!
Comment at: clang-tools-extra/clangd/Hover.cpp:663
+ const auto *Var = dyn_cast(D);
+ if (Var && !llvm::isa(Var)) {
if (const Expr *Init = Var->getInit())
hokein wrote:
> We're ignoring all `ParmVarDecl` ca
VitaNuo updated this revision to Diff 532044.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Simplify.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153015/new/
https://reviews.llvm.org/D153015
Files:
clang-tools-extra/clangd
VitaNuo updated this revision to Diff 532042.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153015/new/
https://reviews.llvm.org/D153015
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-ex
VitaNuo accepted this revision.
VitaNuo added a comment.
This revision is now accepted and ready to land.
thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153018/new/
https://reviews.llvm.org/D153018
__
VitaNuo added a comment.
thanks!
Comment at: clang-tools-extra/clangd/unittests/HoverTests.cpp:3726
+TEST(Hover, FunctionParameterDefaulValueNotEvaluated) {
+ Annotations T("void foo(int p^aram = 5);");
+ TestTU TU = TestTU::withCode(T.code());
hokein wrote:
VitaNuo added a comment.
Duplicate of https://reviews.llvm.org/D152913. Landed the other one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152542/new/
https://reviews.llvm.org/D152542
___
cfe-commits ma
VitaNuo accepted this revision.
VitaNuo added a comment.
This revision is now accepted and ready to land.
Thanks!
Comment at: clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp:49
SourceLocation SymRefLocation;
+ include_cleaner::Symbol Sym;
include_cleaner::Heade
VitaNuo updated this revision to Diff 531718.
VitaNuo added a comment.
Simplify.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153015/new/
https://reviews.llvm.org/D153015
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/unit
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
This revision was not accepted when it landed; it landed in state "Needs
Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6a6c7ed5cd8d: [clangd] Use include_cleaner spelling
strategies in clangd. (authored by VitaNuo).
Repository:
rG LLVM Gi
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo updated this revision to Diff 531275.
VitaNuo added a comment.
VitaNuo updated this revision to Diff 531278.
VitaNuo added a reviewer: kadircet.
VitaNuo published this revision for revi
VitaNuo updated this revision to Diff 529974.
VitaNuo added a comment.
Remove unrelated formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152542/new/
https://reviews.llvm.org/D152542
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tool
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
rG LLVM Github Monorepo
http
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG90c5fe98: [include-cleaner] Allow multiple strategies
for spelling includes. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANG
VitaNuo updated this revision to Diff 528341.
VitaNuo marked 4 inline comments as done.
VitaNuo added a comment.
Address the comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/Hover.cpp:1225
- HI.Provider = spellHeader(AST, SM.getFileEntryForID(SM.getMainFileID()), H);
+ HI.Provider = include_cleaner::spellHeader(
+ {H, AST.getPreprocessor().getHeaderSearc
VitaNuo updated this revision to Diff 528315.
VitaNuo marked 11 inline comments as done.
VitaNuo added a comment.
Herald added subscribers: PiotrZSL, carlosgalvezp.
Herald added a reviewer: njames93.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
http
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc28506ba4b69: [clang-tidy] Implement an include-cleaner
check. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://revi
VitaNuo added a comment.
Thanks for the comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https:
VitaNuo updated this revision to Diff 527872.
VitaNuo marked 6 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-too
1 - 100 of 442 matches
Mail list logo