| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[clangd] Use StringRef::{starts,ends}_with (NFC) This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. I'm planning to deprecate and eventually remove StringRef::{starts,ends}with. | 2 年前 | |
[Support] Move raw_ostream::tie to raw_fd_ostream (#97396) Originally, tie was introduced by D81156 to flush stdout before writing to stderr. 030897523 reverted this due to race conditions. Nonetheless, it does cost performance, causing an extra check in the "cold" path, which is actually the hot path for raw_svector_ostream. Given that this feature is only used for errs(), move it to raw_fd_ostream so that it no longer affects performance of other stream classes. | 2 年前 | |
[clang][clangd] Ensure the stack bottom before building AST clang::runWithSufficientStackSpace requires the address of the initial stack bottom to prevent potential stack overflows. In addition, add a fallback to ASTFrontendAction in case any client forgets to call it when not through CompilerInstance::ExecuteAction, which is rare. Fixes https://github.com/clangd/clangd/issues/1745. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D158967 | 2 年前 | |
[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to clean up the "using" declarations, #include "llvm/ADT/Optional.h", etc. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 | 3 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] Use SmallString::operator std::string (NFC) | 2 年前 | |
[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to clean up the "using" declarations, #include "llvm/ADT/Optional.h", etc. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 | 3 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clang][modules] stdarg.h and stddef.h shouldn't directly declare anything (#90676) stdarg.h and especially stddef.h are textual and so everything they declare gets precompiled into all of their clients' pcm files. They shouldn't directly declare anything though, their purpose is to select what submodules get imported, and not to add duplicate declarations to all of their clients. Make it so that they always ignore their header guards, even without modules, and declare them in separate header files so that they only go into the stdarg/stddef pcms. Still declare them in case clients rely on them. | 2 年前 | |
[clangd] Update symbol collector to use include-cleaner. Differential Revision: https://reviews.llvm.org/D152900 | 2 年前 | |
[clangd] Track IWYU pragmas for non-preamble includes (#75612) This makes PragmaIncldues copyable, and copies it from preamble when building a new AST. Fixes https://github.com/clangd/clangd/issues/1843 Fixes https://github.com/clangd/clangd/issues/1571 | 2 年前 | |
[clangd] Update symbol collector to use include-cleaner. Differential Revision: https://reviews.llvm.org/D152900 | 2 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) This patch removes the unused "using" declaration and removes #include "llvm/ADT/Optional.h". This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 | 3 年前 | |
[clang][lex] Always pass suggested module to InclusionDirective() callback (#81061) This patch provides more information to the PPCallbacks::InclusionDirective() hook. We now always pass the suggested module, regardless of whether it was actually imported or not. The extra bool ModuleImported parameter then denotes whether the header #include will be automatically translated into import the the module. The main change is in clang/lib/Lex/PPDirectives.cpp, where we take care to not modify SuggestedModule after it's been populated by LookupHeaderIncludeOrImport(). We now exclusively use the SM (ModuleToImport) variable instead, which has been equivalent to SuggestedModule until now. This allows us to use the original non-modified SuggestedModule for the callback itself. (This patch turns out to be necessary for https://github.com/apple/llvm-project/pull/8011). | 2 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clang-tools-extra] Use value_or instead of getValueOr (NFC) | 4 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] Use StringRef::{starts,ends}_with (NFC) This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. I'm planning to deprecate and eventually remove StringRef::{starts,ends}with. | 2 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] cleanup of header guard names Renaming header guards to match the LLVM convention. This patch was created by automatically applying the fixes from clang-tidy. I've removed the [NFC] tag from the title, as we're adding header guards in some files and thus might trigger behavior changes. Differential Revision: https://reviews.llvm.org/D113896 | 4 年前 | |
[clangd] Avoid wasteful data structures in RefSlab::Builder Summary: This is worth another 10% or so on InedxBenchmark.DexBuild. Reviewers: kbobyrev Subscribers: ilya-biryukov, MaskRay, jkorous, mgrang, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79950 | 6 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] Add OverridenBy Relation to index. This was previously explored in reviews.llvm.org/D69094. Differential Revision: https://reviews.llvm.org/D91610 | 5 年前 | |
[clangd] Clean up unused includes. NFCI Add includes where needed to fix build. Haven't systematically added used headers, so there is still accidental dependency on transitive includes. | 4 年前 | |
[clangd] Use StringRef::{starts,ends}_with (NFC) This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. I'm planning to deprecate and eventually remove StringRef::{starts,ends}with. | 2 年前 | |
[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to clean up the "using" declarations, #include "llvm/ADT/Optional.h", etc. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 | 3 年前 | |
[clangd] Use StringRef::{starts,ends}_with (NFC) This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. I'm planning to deprecate and eventually remove StringRef::{starts,ends}with. | 2 年前 | |
[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to clean up the "using" declarations, #include "llvm/ADT/Optional.h", etc. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 | 3 年前 | |
[clangd] Don't clone SymbolSlab::Builder arenas when finalizing. SymbolSlab::Builder has an arena to store strings of owned symbols, and deduplicates them. build() copies all the strings and deduplicates them again! This is potentially useful: we may have overwritten a symbol and rendered some strings unreachable. However in practice this is not the case. When testing on a variety of files in LLVM (e.g. SemaExpr.cpp), the strings for the full preamble index are 3MB and shrink by 0.4% (12KB). For comparison the serializde preamble is >50MB. There are also hundreds of smaller slabs (file sharding) that do not shrink at all. CPU time spent on this is significant (something like 3-5% of buildPreamble). We're better off not bothering. Differential Revision: https://reviews.llvm.org/D135231 | 3 年前 | |
[clangd] Add new IncludeDirective to IncludeHeaderWithReferences The IncludeDirective contains both Include (the current behavior) and Import, which we can use in the future to provide #import suggestions for Objective-C files/symbols. Differential Revision: https://reviews.llvm.org/D128457 | 3 年前 | |
[clangd] Don't ignore external HFI in SymbolCollector (#88446) The FileEntry corresponds to a FileID containing the SourceLocation of a NamedDecl which (I think) might've been deserialized from a PCM file. Considering external HeaderFileInfo here is most likely the right thing to do here in order to get the correct spelling in case the current compiler instance has not register this file as a header yet. | 2 年前 | |
[clangd] Perform self-containedness check at EOF (#75965) Header gurads are not detected until we hit EOF. Make sure we postpone any such detection until then. | 2 年前 | |
[llvm] Add missing StringExtras.h includes In preparation for removing the #include "llvm/ADT/StringExtras.h" from the header to source file of llvm/Support/Error.h, first add in all the missing includes that were previously included transitively through this header. | 3 年前 | |
[clangd] Avoid lexicographic compare when sorting SymbolIDs. NFC These are 8 bytes and we don't care about the actual ordering, so use integer compare. The array generated code has some extra byte swaps (clang), calls memcmp (gcc) or inlines a big chain of comparisons (MSVC): https://godbolt.org/z/e79r6jM6K | 3 年前 | |
[clangd] Avoid wasteful data structures in RefSlab::Builder Summary: This is worth another 10% or so on InedxBenchmark.DexBuild. Reviewers: kbobyrev Subscribers: ilya-biryukov, MaskRay, jkorous, mgrang, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79950 | 6 年前 | |
[clangd] Modernize SymbolLocation::Position (NFC) | 2 年前 | |
Reland(3) "[clangd] Indexing of standard library" Tracked down the crash, which was argument-evaluation-order UB in the wrapping indexStandardLibrary(). Sorry for the churn! This reverts commit 77533ea443aca6e9978d7c8a6822420f8345f6af. | 4 年前 | |
Reland(3) "[clangd] Indexing of standard library" Tracked down the crash, which was argument-evaluation-order UB in the wrapping indexStandardLibrary(). Sorry for the churn! This reverts commit 77533ea443aca6e9978d7c8a6822420f8345f6af. | 4 年前 | |
[clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) This patch removes the unused "using" declaration and removes #include "llvm/ADT/Optional.h". This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 | 3 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 5 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 3 年前 |