VitaNuo updated this revision to Diff 478265.
VitaNuo added a comment.
Add another example.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138821/new/
https://reviews.llvm.org/D138821
Files:
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
cla
VitaNuo updated this revision to Diff 478267.
VitaNuo added a comment.
Edit commit message, add "[include-cleaner]".
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138821/new/
https://reviews.llvm.org/D138821
Files:
clang-tools-extra/include-clea
VitaNuo updated this revision to Diff 478483.
VitaNuo added a comment.
Fix formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138797/new/
https://reviews.llvm.org/D138797
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
clang-too
VitaNuo updated this revision to Diff 478545.
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/D138797/new/
https://reviews.llvm.org/D138797
Files:
clang-too
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/unittests/RecordTest.cpp:312
+
+ size_t offsetToLineNum(llvm::Annotations MainFile, size_t Offset) {
+int Count = MainFile.code().substr(0, Offset).count('\n');
hokein wrote:
> this
VitaNuo updated this revision to Diff 478556.
VitaNuo added a comment.
Address review comments: turn all references into explicit, remove the
"isHeader" field.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138821/new/
https://reviews.llvm.org/D138
VitaNuo marked an inline comment as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/lib/WalkAST.cpp:87
- // headers might still be used by the dependents of the header.
- if (!IsUsed && !IsHeader)
-continue;
ho
VitaNuo updated this revision to Diff 478561.
VitaNuo added a comment.
Remove excessive method.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138797/new/
https://reviews.llvm.org/D138797
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
VitaNuo marked an inline comment as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/unittests/RecordTest.cpp:312
+
+ size_t offsetToLineNum(llvm::Annotations MainFile, size_t Offset) {
+int Count = MainFile.code().substr(0, Offset).count('\
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
VitaNuo marked an inline comment as done.
Closed by commit rG7452e053e592: [include-cleaner] Implement IWYU
begin_keep/end_keep pragma support. (authored by VitaNuo).
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/D139087
Fi
VitaNuo updated this revision to Diff 479213.
VitaNuo added a comment.
Fix formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139087/new/
https://reviews.llvm.org/D139087
Files:
clang-tools-extra/include-cleaner/lib/WalkAST.cpp
clang-to
VitaNuo marked 4 inline comments as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/lib/WalkAST.cpp:86
report(UD->getLocation(), TD,
IsUsed ? RefType::Explicit : RefType::Ambiguous);
}
kadircet wrote:
>
VitaNuo updated this revision to Diff 479216.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Address review comments, remove excessive tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138821/new/
https://reviews.llvm.org/D13
VitaNuo updated this revision to Diff 479319.
VitaNuo added a comment.
Handle pointer and reference types.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139087/new/
https://reviews.llvm.org/D139087
Files:
clang-tools-extra/include-cleaner/lib/Wa
VitaNuo updated this revision to Diff 479339.
VitaNuo added a comment.
Refactor QualType to RecordDecl logic into a separate function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139087/new/
https://reviews.llvm.org/D139087
Files:
clang-tools-
VitaNuo updated this revision to Diff 479556.
VitaNuo added a comment.
Add more comments. Add unimplemented VisitCXXDependentScopeMemberExpr method
with a FIXME comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139087/new/
https://reviews.llv
VitaNuo marked an inline comment as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/lib/WalkAST.cpp:65
+Expr *BE = E->getBase()->IgnoreImpCasts();
+RecordDecl *RD = BE->getType()->getAsRecordDecl();
+report(E->getMemberLoc(), RD);
--
VitaNuo updated this revision to Diff 505147.
VitaNuo added a comment.
Herald added a subscriber: ChuanqiXu.
Re-work the patch to use include_cleaner::headersForSymbol.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144976/new/
https://reviews.llvm.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/Hover.cpp:1099
+ trace::Span Tracer("Hover::maybeAddSymbolProviders");
+ include_cleaner::walkUsed(
+ AST.getLocalTopLevelDecls(), MacroRefere
VitaNuo updated this revision to Diff 505460.
VitaNuo marked 4 inline comments as done.
VitaNuo added a comment.
Address the review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144976/new/
https://reviews.llvm.org/D144976
Files:
clang
VitaNuo added a comment.
thanks for the review!
Comment at: clang-tools-extra/clangd/Hover.cpp:1094
+void maybeAddSymbolProviders(ParsedAST &AST, HoverInfo &HI,
+ std::optional UsedDecl,
hokein wrote:
> we can simplify the signatur
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 506132.
VitaNuo marked 15 inline comments as done.
VitaNuo added a comment.
Address review comments, simplify test.
Take care of main file as provider handling:
- provider list [main-file,foo.h] and foo.h \#include'd - not show any
providers on hover.
- pro
VitaNuo added a comment.
Thanks for the comments and the discussions!
Comment at: clang-tools-extra/clangd/Hover.cpp:1118
+
+ for (const auto &H : Headers) {
+if (H.kind() == include_cleaner::Header::Physical &&
hokein wrote:
> now the for-range loop doesn
VitaNuo updated this revision to Diff 506141.
VitaNuo added a comment.
Finish the test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146244/new/
https://reviews.llvm.org/D146244
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clan
VitaNuo updated this revision to Diff 507034.
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/D144976/new/
https://reviews.llvm.org/D144976
Files:
clang-to
VitaNuo added a comment.
Thanks for the review!
Comment at: clang-tools-extra/clangd/Hover.cpp:1099
+ const SourceManager &SM = AST.getSourceManager();
+ llvm::SmallVector Headers =
+ include_cleaner::headersForSymbol(Sym, SM, AST.getPragmaIncludes());
h
VitaNuo updated this revision to Diff 507326.
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/D146244/new/
https://reviews.llvm.org/D146244
Files:
clang-to
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/Hover.cpp:1158
+ const SourceManager &SM = AST.getSourceManager();
+ std::set UsedSymbolNames;
+ include_cleaner::walkUsed(
hokein wrote:
> just want to check the intentio
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 507748.
VitaNuo added a comment.
Remove unrelated diff.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146727/new/
https://reviews.llvm.org/D146727
Files:
clang-tools-extra/clangd/IncludeCleaner.cpp
clang-t
This revision was automatically updated to reflect the committed changes.
VitaNuo marked 3 inline comments as done.
Closed by commit rG2bececb8bed1: [clangd] Add provider info on symbol hover.
(authored by VitaNuo).
Changed prior to commit:
https://reviews.llvm.org/D144976?vs=507034&id=507764#t
VitaNuo updated this revision to Diff 507793.
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/D146244/new/
https://reviews.llvm.org/D146244
Files:
clang-too
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/Hover.cpp:1172
+include_cleaner::Includes ConvertedIncludes =
+convertIncludes(SM, llvm::ArrayRef{Inc});
+for (const incl
VitaNuo updated this revision to Diff 508586.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Address review comments. Use spelling locations for macro arguments, and
expansion locations for everything else.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
h
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:382
-auto &Tokens = AST.getTokens();
-auto SpelledForExpanded =
-Tokens.spelledForExpanded(Tokens.ex
VitaNuo marked an inline comment as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:380
+auto Loc = SM.getFileLoc(Ref.RefLocation);
+auto Range = Lexer::makeFileCharRange(
+CharSourceRange{SourceRange{Loc},
VitaNuo updated this revision to Diff 508645.
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/D146727/new/
https://reviews.llvm.org/D146727
Files:
clang-too
VitaNuo updated this revision to Diff 508648.
VitaNuo added a comment.
Format.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146727/new/
https://reviews.llvm.org/D146727
Files:
clang-tools-extra/clangd/IncludeCleaner.cpp
clang-tools-extra/clan
VitaNuo added a comment.
thanks for the comments!
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:380
+auto Loc = SM.getFileLoc(Ref.RefLocation);
+auto Range = Lexer::makeFileCharRange(
+CharSourceRange{SourceRange{Loc}, true}, SM, AST.getLan
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG481f88853685: [clangd] Use expansion location for missing
include diagnostics. (authored by VitaNuo).
Changed prior to commit:
https://reviews.llv
VitaNuo updated this revision to Diff 508661.
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/D146244/new/
https://reviews.llvm.org/D146244
Files:
clang-to
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/Hover.cpp:1175
+
+for (const include_cleaner::Header &H : Providers) {
+ if (!ConvertedIncludes.match(H).empty()) {
kadircet wrote:
> note that this will att
VitaNuo updated this revision to Diff 508675.
VitaNuo added a comment.
Add a couple more macro test cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146244/new/
https://reviews.llvm.org/D146244
Files:
clang-tools-extra/clangd/Hover.cpp
cla
VitaNuo updated this revision to Diff 508708.
VitaNuo added a comment.
Remove extra check (already done in walkUsed).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146244/new/
https://reviews.llvm.org/D146244
Files:
clang-tools-extra/clangd/Hove
VitaNuo updated this revision to Diff 508948.
VitaNuo marked 3 inline comments as done.
VitaNuo added a comment.
Herald added a subscriber: mgrang.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146244/new/
https://reviews.l
VitaNuo added a comment.
Thanks for the comments, see the updated version.
Comment at: clang-tools-extra/clangd/Hover.cpp:1173
+if (Ref.RT != include_cleaner::RefType::Explicit ||
+UsedSymbolNames.find(getRefName(Ref)) != UsedSymbolNames.end())
+ re
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 508975.
VitaNuo added a comment.
Smaller improvements.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra
VitaNuo updated this revision to Diff 508986.
VitaNuo added a comment.
Formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/un
VitaNuo updated this revision to Diff 508994.
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/D146244/new/
https://reviews.llvm.org/D146244
Files:
clang-too
VitaNuo added inline comments.
Comment at: clang-tools-extra/clangd/Hover.cpp:1175
+
+for (const include_cleaner::Header &H : Providers) {
+ if (!ConvertedIncludes.match(H).empty()) {
hokein wrote:
> VitaNuo wrote:
> > kadircet wrote:
> > > note
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG655baae2af0b: [clangd] Show used symbols on #include line
hover. (authored by VitaNuo).
Changed prior to commit:
https://reviews.llvm.org/D146244?
VitaNuo updated this revision to Diff 509010.
VitaNuo added a comment.
Use vscode command.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144862/new/
https://reviews.llvm.org/D144862
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-too
VitaNuo updated this revision to Diff 509015.
VitaNuo added a comment.
Remove redundant code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extr
VitaNuo updated this revision to Diff 509017.
VitaNuo added a comment.
Formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/un
VitaNuo updated this revision to Diff 509019.
VitaNuo added a comment.
Remove unrelated code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144862/new/
https://reviews.llvm.org/D144862
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-
VitaNuo updated this revision to Diff 509028.
VitaNuo added a comment.
Remove unneeded code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144862/new/
https://reviews.llvm.org/D144862
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-t
VitaNuo updated this revision to Diff 509041.
VitaNuo added a comment.
Replace the used symbol computation impl.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144862/new/
https://reviews.llvm.org/D144862
Files:
clang-tools-extra/clangd/ClangdLSP
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
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/D1
VitaNuo created this revision.
VitaNuo added a reviewer: hokein.
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.
Repositor
VitaNuo updated this revision to Diff 501162.
VitaNuo added a comment.
Replace start with arrow for optional access.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144976/new/
https://reviews.llvm.org/D144976
Files:
clang-tools-extra/clangd/Hover
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 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 502084.
VitaNuo marked 23 inline comments as done.
VitaNuo added a comment.
Improve test coverage.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-tool
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Thank you for all the thoughtful comments!
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:414
+
+std::string findResolvedPath(const include_cleaner::Header &SymProvider) {
+ std::string ResolvedPath;
-
VitaNuo updated this revision to Diff 503012.
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/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-to
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:712
+ for (auto *Inc : ConvertedIncludes.match(H)) {
+if (Pragmas == nullptr ||
Pragmas->getPublic(Inc->Resolved).empty())
+ Satisfie
VitaNuo updated this revision to Diff 503033.
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/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-too
VitaNuo added a comment.
Thanks for the comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D143496
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https:
VitaNuo updated this revision to Diff 503043.
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/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-too
VitaNuo updated this revision to Diff 503045.
VitaNuo added a comment.
Rebase to main.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-tools-extra/clangd/Config.h
clang-tools-extra/clangd
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG38b9fb5a129d: [clangd] Add support for missing includes
analysis. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST A
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.
This reverts commit 2eb5ac99a76dbbf8ac68c53
VitaNuo updated this revision to Diff 503315.
VitaNuo added a comment.
Try to fix windows build.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-tools-extra/clangd/unittests/IncludeCleanerT
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG46447e0ba2e3: Revert "Revert "Re-land [clangd] Add
support for missing includes analysis."" (authored by VitaNuo).
Changed prior to commit:
https:
VitaNuo created this revision.
Herald added subscribers: ChuanqiXu, 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.
This reverts commit fd8c9ef20a95
VitaNuo updated this revision to Diff 503322.
VitaNuo added a comment.
Try another approach.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-tools-extra/clangd/Config.h
clang-tools-extra/
VitaNuo updated this revision to Diff 503335.
VitaNuo added a comment.
Fix formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D143496
Files:
clang-tools-extra/clangd/Config.h
clang-tools-extra/clangd
VitaNuo updated this revision to Diff 504717.
VitaNuo marked 14 inline comments as done.
VitaNuo added a comment.
Implement the most recent version from the design document: always show a
single provider, whether directly included or not (as long as there is a
provider). Address review comments.
VitaNuo added a comment.
Thank you for the comments! I've implemented the new version as per the design
doc, as well as did my best to address the review comments.
Comment at: clang-tools-extra/clangd/Hover.cpp:1093
+std::vector
+collectMacroReferences(ParsedAST &AST) {
+ con
VitaNuo updated this revision to Diff 504720.
VitaNuo added a comment.
Rebase to main.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144976/new/
https://reviews.llvm.org/D144976
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clang
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 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 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 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 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 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 updated this revision to Diff 509633.
VitaNuo added a comment.
Use custom command.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144862/new/
https://reviews.llvm.org/D144862
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-too
VitaNuo updated this revision to Diff 509636.
VitaNuo added a comment.
Improve argument handling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144862/new/
https://reviews.llvm.org/D144862
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
cl
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
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/D1
VitaNuo updated this revision to Diff 510027.
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/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-to
VitaNuo abandoned this revision.
VitaNuo added a comment.
Erroneously created patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147325/new/
https://reviews.llvm.org/D147325
___
cfe-commits mailing lis
VitaNuo updated this revision to Diff 510032.
VitaNuo added a comment.
Simplify.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Incl
VitaNuo updated this revision to Diff 510036.
VitaNuo added a comment.
Remove extra formatting changes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/Hover.cpp
clang-
VitaNuo updated this revision to Diff 510039.
VitaNuo added a comment.
Rename function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clan
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/XRefs.cpp:1348
+ auto Loc = SM.getFileLoc(Ref.RefLocation);
+ for (const auto &H : Providers) {
+auto MatchingIncludes = ConvertedMainFileIncludes.match(H);
VitaNuo updated this revision to Diff 510042.
VitaNuo added a comment.
Simplify.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Incl
VitaNuo updated this revision to Diff 510484.
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/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-too
201 - 300 of 442 matches
Mail list logo