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 rG1f7c7d4bdd7b: [clangd] Update symbol collector to use
include-cleaner. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE L
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 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 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
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 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
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 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 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 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 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 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 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 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 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
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.
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 rG8a5c0ccee293: [clangd][clang-tidy][std_symbol_map] Add
missing symbol. (authored by VitaNuo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE L
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
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 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 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 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 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 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/
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 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 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 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
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 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 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 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 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 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 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 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 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
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 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
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 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.
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 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 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 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
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 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 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 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 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 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 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
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
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
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
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/
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 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:
>
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 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 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 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 created this revision.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Records macro references in #ifdef clauses as ambiguous.
Repository:
rG LLVM Github Monorepo
https://review
VitaNuo created this revision.
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/D138564
Files:
clang-tools-extra/include-clea
VitaNuo updated this revision to Diff 477461.
VitaNuo added a comment.
Update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
clang-tools-extra/
VitaNuo updated this revision to Diff 477549.
VitaNuo added a comment.
Update.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
clang-tools-extra
VitaNuo updated this revision to Diff 477551.
VitaNuo added a comment.
Remove the extra test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
cl
VitaNuo updated this revision to Diff 477554.
VitaNuo added a comment.
Make explicit RefType default.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/include-cleaner/lib/Record.
VitaNuo updated this revision to Diff 477707.
VitaNuo added a comment.
Add support for #if defined(X), #elifdef, #elifndef
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/includ
VitaNuo updated this revision to Diff 477711.
VitaNuo added a comment.
Address review comments. Format and simplify code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/include
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/lib/Record.cpp:95
private:
- void recordMacroRef(const Token &Tok, const MacroInfo &MI) {
+ void recordMacroRef(const Token &Tok, const MacroInfo &MI, RefType RT) {
if (MI.isBuiltinMacro())
-
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/unittests/RecordTest.cpp:248
+ SourceManager &SM = AST.sourceManager();
+ ASSERT_THAT(Recorded.MacroReferences, Not(IsEmpty()));
+
hokein wrote:
> nit: this can be removed, as the EXPE
VitaNuo updated this revision to Diff 477716.
VitaNuo added a comment.
Formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
clang-tools-e
VitaNuo updated this revision to Diff 477721.
VitaNuo added a comment.
Add -std=c++2b argument to avoid compiler warnings.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/includ
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/unittests/RecordTest.cpp:249
+
+ Inputs.Code = MainFile.code();
+ auto AST = build();
hokein wrote:
> The `elifndef` and `elifdef` is a C++2b extension feature, so
> `Inputs.ExtraArgs
VitaNuo updated this revision to Diff 477722.
VitaNuo added a comment.
Simplify test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138559/new/
https://reviews.llvm.org/D138559
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
clang-tool
VitaNuo created this revision.
Herald added a project: All.
VitaNuo requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Save file IDs of IWYU private headers and report them as private.
Repository:
rG LLVM Github Monorepo
https
VitaNuo updated this revision to Diff 477874.
VitaNuo added a comment.
Herald added a subscriber: kadircet.
Improve the comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/
VitaNuo updated this revision to Diff 477876.
VitaNuo added a comment.
Fix formatting.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/include-cleaner/include/clang-include-clea
VitaNuo updated this revision to Diff 477940.
VitaNuo added a comment.
Address review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/include-cleaner/include/clang-inc
VitaNuo marked 4 inline comments as done.
VitaNuo added a comment.
The formatting has introduced a bit of unrelated diff. It's not much, so I hope
that's fine.
Comment at:
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Record.h:95
+ /// Contains all files ma
VitaNuo updated this revision to Diff 477944.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Fix build.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/inclu
VitaNuo updated this revision to Diff 477946.
VitaNuo added a comment.
Fix comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/include-cleaner/include/clang-include-cleaner
VitaNuo updated this revision to Diff 477954.
VitaNuo added a comment.
Small refactoring.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/include-cleaner/include/clang-include-c
VitaNuo marked an inline comment as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/lib/Record.cpp:237
+ auto *FE = SM.getFileEntryForID(SM.getFileID(Range.getBegin()));
+ if (!FE) {
+return false;
kadircet wro
VitaNuo updated this revision to Diff 477956.
VitaNuo marked 2 inline comments as done.
VitaNuo added a comment.
Fix build.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/inclu
VitaNuo updated this revision to Diff 477958.
VitaNuo added a comment.
Fix history.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/include-cleaner/include/clang-include-cleaner
VitaNuo updated this revision to Diff 477960.
VitaNuo added a comment.
Apply the local changes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/include-cleaner/include/clang-inc
VitaNuo updated this revision to Diff 478145.
VitaNuo marked an inline comment as done.
VitaNuo added a comment.
Address the remaining comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
cl
VitaNuo updated this revision to Diff 478148.
VitaNuo added a comment.
Rebase.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138678/new/
https://reviews.llvm.org/D138678
Files:
clang-tools-extra/include-cleaner/include/clang-include-cleaner/Reco
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.
Keep the includes contained between IWYU begin_keep and end_keep pragmas.
VitaNuo updated this revision to Diff 478166.
VitaNuo added a comment.
Remove unnecessary code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138782/new/
https://reviews.llvm.org/D138782
Files:
clang-tools-extra/include-cleaner/lib/Record.cpp
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/lib/Record.cpp:299
+ } else if (Pragma->starts_with("end_keep")) {
+InsidePragmaKeepBlock = false;
+ }
hokein wrote:
> using a simple variable is not enough to handle t
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.
Implement support for begin_keep/end_keep pragmas.
Repository:
rG LLVM
VitaNuo updated this revision to Diff 478203.
VitaNuo added a comment.
Add a comment.
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-tool
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.
Removes filtering from the VisitUsingDecl method for implementation files.
VitaNuo updated this revision to Diff 478256.
VitaNuo added a comment.
Address review comments. Use annotation points instead of line numbers.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138797/new/
https://reviews.llvm.org/D138797
Files:
clan
VitaNuo marked an inline comment as done.
VitaNuo added inline comments.
Comment at: clang-tools-extra/include-cleaner/unittests/RecordTest.cpp:349
EXPECT_TRUE(PI.shouldKeep(3));
+ EXPECT_FALSE(PI.shouldKeep(13));
+ EXPECT_TRUE(PI.shouldKeep(14));
hokein wro
101 - 200 of 442 matches
Mail list logo