VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/IncludeCleaner.h:87
+std::optional
+firstMatchedProvider(const include_cleaner::Includes &Includes,
+ llvm::ArrayRef Providers);
kadircet wrote:
> can you
VitaNuo created this revision.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151073
Files:
clang/lib/Serialization/ASTReaderStmt.cpp
VitaNuo updated this revision to Diff 524211.
VitaNuo added a comment.
Remove template param.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151073/new/
https://reviews.llvm.org/D151073
Files:
clang/lib/Serialization/ASTReaderStmt.cpp
clang/lib
VitaNuo updated this revision to Diff 524336.
VitaNuo marked 19 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-to
VitaNuo updated this revision to Diff 524342.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Update test case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151073/new/
https://reviews.llvm.org/D151073
Files:
clang/lib/Serial
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6b50e87f21e1: [clang] Fix label (de-)serialization in ASM
statements. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LA
VitaNuo created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
VitaNuo updated this revision to Diff 525477.
VitaNuo added a comment.
VitaNuo updated this revision to Diff 525560.
VitaNuo updated this revision to Diff 525566.
VitaNuo updated this revision
VitaNuo updated this revision to Diff 525581.
VitaNuo added a comment.
Move the speller out of the loop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang
VitaNuo updated this revision to Diff 526064.
VitaNuo marked 13 inline comments as done.
VitaNuo added a comment.
Rework according to the review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
F
VitaNuo marked 8 inline comments as done.
VitaNuo added a comment.
Thanks for the comments! I'll re-assign the review to Haojian for now, so that
we can hopefully make more progress this week.
Comment at: clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp:48
+void Inclu
VitaNuo updated this revision to Diff 526558.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
VitaNuo updated this revision to Diff 526610.
VitaNuo marked 8 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
VitaNuo added a comment.
Thanks for the comments!
Comment at:
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Analysis.h:104
+ ApplyFirstIncludeSpeller() {
+for (const auto &Strategy :
+ include_cleaner::IncludeSpellingStrategy::entries()) {
--
VitaNuo updated this revision to Diff 526615.
VitaNuo added a comment.
Remove extra braces.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/
VitaNuo updated this revision to Diff 527001.
VitaNuo marked 25 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-to
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp:86
+ llvm::SmallVector MainFileDecls;
+ for (auto *D : Result.Nodes.getNodeAs("top")->decls()) {
+SourceLocation Loc = D->getLocation();
---
VitaNuo updated this revision to Diff 527314.
VitaNuo marked 5 inline comments as done.
VitaNuo added a comment.
Herald added a subscriber: ormris.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.l
VitaNuo updated this revision to Diff 527317.
VitaNuo added a comment.
Update release notes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
cla
VitaNuo added inline comments.
Comment at:
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Analysis.h:88
+class IncludeSpeller {
+public:
hokein wrote:
> hokein wrote:
> > I think this is an important API (we will create a subclass for our
> >
VitaNuo updated this revision to Diff 527329.
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/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-too
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp:88
+SourceLocation Loc = D->getLocation();
+if (!SM->isWrittenInMainFile(SM->getSpellingLoc(Loc)))
+ continue;
hokein wrote:
> V
VitaNuo updated this revision to Diff 527330.
VitaNuo added a comment.
Update test name.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/cla
VitaNuo updated this revision to Diff 527359.
VitaNuo added a comment.
Try to fix windows test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
VitaNuo updated this revision to Diff 527369.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Remove system-independent handling to see behavior on Windows.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://review
VitaNuo updated this revision to Diff 527376.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Remove the regular expression.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
cla
VitaNuo updated this revision to Diff 527384.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Remove regex and path handling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
cl
VitaNuo updated this revision to Diff 527385.
VitaNuo added a comment.
Remove regex and path handling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists
VitaNuo updated this revision to Diff 527392.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Add debug statements for windows debugging.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
VitaNuo updated this revision to Diff 527402.
VitaNuo added a comment.
Remove debug statements.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
VitaNuo updated this revision to Diff 527412.
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-tools-extra/clangd/Hover.cpp
clang-tools-ex
VitaNuo marked 4 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/D150185/new/
https://reviews.llvm.org/D150185
___
cfe-commits mail
VitaNuo updated this revision to Diff 527420.
VitaNuo added a comment.
Remove extra path handling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools
VitaNuo updated this revision to Diff 527435.
VitaNuo added a comment.
Update.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Includ
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 527438.
VitaNuo added a comment.
Update.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Includ
VitaNuo abandoned this revision.
VitaNuo added a comment.
Herald added a subscriber: ormris.
Created by mistake.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151895/new/
https://reviews.llvm.org/D151895
___
VitaNuo updated this revision to Diff 527446.
VitaNuo added a comment.
Fix windows build.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/cl
VitaNuo updated this revision to Diff 527447.
VitaNuo added a comment.
Add newline at file end.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-ex
VitaNuo updated this revision to Diff 527448.
VitaNuo added a comment.
Add newline at file end.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-ex
VitaNuo updated this revision to Diff 527451.
VitaNuo added a comment.
Remove extra include.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra
VitaNuo updated this revision to Diff 527452.
VitaNuo added a comment.
Remove newline at file end.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools
VitaNuo updated this revision to Diff 527457.
VitaNuo added a comment.
Re-introduce special path handling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeL
VitaNuo updated this revision to Diff 527466.
VitaNuo added a comment.
Fix windows test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150185/new/
https://reviews.llvm.org/D150185
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/cla
VitaNuo updated this revision to Diff 527473.
VitaNuo added a comment.
Try to fix windows build.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
VitaNuo updated this revision to Diff 527509.
VitaNuo added a comment.
Try ignoring verbatim spelling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists
VitaNuo updated this revision to Diff 527543.
VitaNuo added a comment.
Fix last test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tool
VitaNuo updated this revision to Diff 527545.
VitaNuo added a comment.
Undo.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/c
VitaNuo updated this revision to Diff 527554.
VitaNuo added a comment.
Experiment with paths.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
cl
VitaNuo updated this revision to Diff 527583.
VitaNuo added a comment.
Undo.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/c
VitaNuo updated this revision to Diff 527812.
VitaNuo added a comment.
Escape the slashes in regex.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.tx
VitaNuo updated this revision to Diff 527822.
VitaNuo added a comment.
Remove path handling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
cla
VitaNuo updated this revision to Diff 527839.
VitaNuo added a comment.
Re-introduce path handling.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
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
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:
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 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 495516.
VitaNuo added a comment.
Undo turning spellHeader method public.
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
VitaNuo updated this revision to Diff 495517.
VitaNuo added a comment.
Remove extra line.
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/cla
VitaNuo updated this revision to Diff 495545.
VitaNuo added a comment.
Add header spelling to fix suggestion. Fix range to only underline the symbol.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D143496
Files:
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.
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 496460.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143509/new/
https://reviews.llvm.org/D143509
Files:
clang-tools-extra/clangd/Headers.cpp
clang-tools-
VitaNuo updated this revision to Diff 496463.
VitaNuo added a comment.
Expose API for lookup instead of retrieving the whole map.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143509/new/
https://reviews.llvm.org/D143509
Files:
clang-tools-extra
VitaNuo added a comment.
Thanks for review!
Comment at: clang-tools-extra/clangd/Headers.h:164
+ llvm::StringMap>
+ buildMainFileIncludesBySpelling() const {
+llvm::StringMap> BySpelling;
kadircet wrote:
> instead of building this on-demand, what about bu
VitaNuo updated this revision to Diff 497349.
VitaNuo marked 9 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.
Thank you for the comments! I've addressed (almost) all of them. In some
places, I'm not so happy about how the code has become very nested, but I don't
have ideas on how to make it better atm.
Comment at: clang-tools-extra/clangd/Config.h:91
+ enu
VitaNuo updated this revision to Diff 497602.
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/D143509/new/
https://reviews.llvm.org/D143509
Files:
clang-too
VitaNuo added a comment.
Thanks for the review!
Comment at: clang-tools-extra/clangd/Headers.cpp:76
+Out->MainFileIncludesBySpelling.try_emplace(Inc.Written)
+.first->second.push_back(static_cast(*Inc.HeaderID));
}
kadircet wrote:
> r
VitaNuo updated this revision to Diff 498401.
VitaNuo marked 14 inline comments as done.
VitaNuo added a comment.
Herald added a subscriber: ChuanqiXu.
Address review comments. Make diagnostics symref-centered and attach them to
each reference.
Repository:
rG LLVM Github Monorepo
CHANGES SIN
VitaNuo added a comment.
Thanks for the extensive explanations! See the updated version, it should also
take the discussions on the document into account.
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:512
+include_cleaner::Includes
+convertIncludes(const SourceManage
VitaNuo updated this revision to Diff 498419.
VitaNuo added a comment.
Address comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143509/new/
https://reviews.llvm.org/D143509
Files:
clang-tools-extra/clangd/Headers.cpp
clang-tools-extra/cl
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Thanks for the comments!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143509/new/
https://reviews.llvm.org/D143509
___
cfe-commits mail
VitaNuo updated this revision to Diff 498428.
VitaNuo added a comment.
Move to source file.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143509/new/
https://reviews.llvm.org/D143509
Files:
clang-tools-extra/clangd/Headers.cpp
clang-tools-extr
VitaNuo updated this revision to Diff 499436.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143509/new/
https://reviews.llvm.org/D143509
Files:
clang-too
VitaNuo added a comment.
Thanks for the comments!
Comment at: clang-tools-extra/clangd/Headers.cpp:303
+ llvm::SmallVector Includes;
+ auto It = MainFileIncludesBySpelling.find(Spelling);
+ if (It == MainFileIncludesBySpelling.end())
kadircet wrote:
> nit:
>
VitaNuo updated this revision to Diff 499456.
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/D143509/new/
https://reviews.llvm.org/D143509
Files:
clang-too
VitaNuo marked 2 inline comments as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/clangd/Headers.cpp:303
+ llvm::SmallVector Includes;
+ auto It = MainFileIncludesBySpelling.find(Spelling);
+ if (It == MainFileIncludesBySpelling.end())
kad
VitaNuo updated this revision to Diff 499553.
VitaNuo marked 24 inline comments as done.
VitaNuo added a comment.
Address review comments (apart from testing).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143496/new/
https://reviews.llvm.org/D1434
VitaNuo added a comment.
Thanks for the comments! I should have addressed everything apart from testing.
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:523
+TransformedInc.Angled = WrittenRef.starts_with("<");
+if (auto FE = SM.getFileManager().getFile(Inc.Reso
VitaNuo updated this revision to Diff 499879.
VitaNuo marked 18 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:408
+
+bool isFilteredByConfig(const Config &Cfg, llvm::StringRef HeaderSpelling) {
+ for (auto &Filter : Cfg.Diagnostics.Includes.IgnoreHeader) {
kadirce
VitaNuo updated this revision to Diff 499886.
VitaNuo added a comment.
Upload once again.
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/cla
This revision was automatically updated to reflect the committed changes.
VitaNuo marked an inline comment as done.
Closed by commit rGe028c9742897: Move the BySpelling map to IncludeStructure.
(authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://revie
VitaNuo updated this revision to Diff 499896.
VitaNuo added a comment.
Merge upstream changes.
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-extr
VitaNuo updated this revision to Diff 520307.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Herald added a subscriber: arphaman.
Move the check from "google" to "misc".
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
VitaNuo added inline comments.
Comment at: clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp:457
+ // Don't keep track for non-identifier names.
+ if (auto *II = Decl->getIdentifier()) {
+return addUsage(RenamerClangTidyCheck::NamingCheckId(Decl->getLocation(),
-
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 added inline comments.
Comment at: clang-tools-extra/clangd/Hover.cpp:1539
+Front, [&](llvm::StringRef Sym) { P.appendCode(Sym); },
+[&] { P.appendText(", "); });
if (UsedSymbolNames.size() > Front.size()) {
What will this do if `Fron
VitaNuo accepted this revision.
VitaNuo added a comment.
This revision is now accepted and ready to land.
Thank you!
Comment at: clang-tools-extra/clangd/Hover.cpp:1539
+Front, [&](llvm::StringRef Sym) { P.appendCode(Sym); },
+[&] { P.appendText(", "); });
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5cb2770bd714: Add doc link to missing include diagnostics.
(authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
VitaNuo updated this revision to Diff 514901.
VitaNuo added a comment.
Extract a test for th firstMatchedProvider method.
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/
VitaNuo marked an inline comment as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/clangd/IncludeCleaner.h:87
+std::optional
+firstMatchedProvider(const include_cleaner::Includes &Includes,
+ llvm::ArrayRef Providers);
kadi
VitaNuo updated this revision to Diff 515227.
VitaNuo marked 3 inline comments as done.
VitaNuo added a comment.
Add a test case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147044/new/
https://reviews.llvm.org/D147044
Files:
clang-tools-extra
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9e9b1effac34: [clangd] Implement cross reference request for
#include lines. (authored by VitaNuo).
Changed prior to commit:
https://reviews.llvm.
VitaNuo created this revision.
Herald added subscribers: PiotrZSL, ChuanqiXu, kadircet, carlosgalvezp,
xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-com
VitaNuo updated this revision to Diff 515322.
VitaNuo added a comment.
Add a pragma example.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/CMakeLists.txt
clang-to
VitaNuo updated this revision to Diff 515323.
VitaNuo added a comment.
Remove comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148793/new/
https://reviews.llvm.org/D148793
Files:
clang-tools-extra/clang-tidy/CMakeLists.txt
clang-tools-e
VitaNuo added a comment.
Thank you!
Comment at: clang-tools-extra/clangd/IncludeCleaner.cpp:419
});
+ // Put possibly equal diagnostics together for deduplication.
+ // The duplicates might be from macro arguments that get expanded multiple
Could you m
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
301 - 400 of 442 matches
Mail list logo