Author: sammccall
Date: Wed Oct 17 00:32:05 2018
New Revision: 344672
URL: http://llvm.org/viewvc/llvm-project?rev=344672&view=rev
Log:
[clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction.
(re-land r344620)
Summary:
This paves the way for alternative transports (mac XPC, may
Author: sammccall
Date: Wed Oct 17 00:33:42 2018
New Revision: 344673
URL: http://llvm.org/viewvc/llvm-project?rev=344673&view=rev
Log:
[clangd] Simplify client capabilities parsing.
Summary:
Instead of parsing into structs that mirror LSP, simply parse into a flat struct
that contains the info w
This revision was automatically updated to reflect the committed changes.
Closed by commit rL344673: [clangd] Simplify client capabilities parsing.
(authored by sammccall, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D53266
Files:
cla
Author: sammccall
Date: Wed Oct 17 00:39:32 2018
New Revision: 344675
URL: http://llvm.org/viewvc/llvm-project?rev=344675&view=rev
Log:
[clangd] Rename and move trivial logger to Logger.cpp. NFC
Modified:
clang-tools-extra/trunk/clangd/ClangdLSPServer.h
clang-tools-extra/trunk/clangd/JSON
Author: sammccall
Date: Wed Oct 17 00:41:53 2018
New Revision: 344676
URL: http://llvm.org/viewvc/llvm-project?rev=344676&view=rev
Log:
[clangd] Hide unused function. NFC
Modified:
clang-tools-extra/trunk/clangd/JSONRPCDispatcher.cpp
clang-tools-extra/trunk/clangd/JSONRPCDispatcher.h
Mod
ioeric added a comment.
Thanks for the suggestions! After taking a closer look at boosting factors for
other signals, I think I was being too conservative about boosting preferred
scopes and penalizing non-preferred ones. I have tuned the parameters to make
these more aggressive now according t
ioeric updated this revision to Diff 169962.
ioeric marked 18 inline comments as done.
ioeric added a comment.
- Addressed review comments.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53131
Files:
clangd/AST.cpp
clangd/AST.h
clangd/CodeComplete.cpp
clangd/FileDistanc
hokein updated this revision to Diff 169963.
hokein marked 5 inline comments as done.
hokein added a comment.
Address review comments.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53322
Files:
clangd/index/IndexAction.cpp
clangd/index/IndexAction.h
clangd/index/SymbolCo
hokein added a comment.
In https://reviews.llvm.org/D53322#1266536, @sammccall wrote:
> (please do check there are no duplicates in the output)
We do deduplication when building the RefSlab. And double-checked with the
output, no duplications there.
Repository:
rCTE Clang Tools Extra
http
hokein updated this revision to Diff 169967.
hokein added a comment.
minor cleanup.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53322
Files:
clangd/index/IndexAction.cpp
clangd/index/IndexAction.h
clangd/index/SymbolCollector.cpp
clangd/index/SymbolCollector.h
unit
Author: hokein
Date: Wed Oct 17 01:38:36 2018
New Revision: 344678
URL: http://llvm.org/viewvc/llvm-project?rev=344678&view=rev
Log:
[clangd] Collect refs from headers.
Summary:
Add a flag to SymbolCollector to collect refs fdrom headers.
Note that we collect refs from headers in static index, a
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE344678: [clangd] Collect refs from headers. (authored by
hokein, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D53322?vs=169967&id=169968#toc
Repository:
rCTE Clang Tools Extra
Author: hokein
Date: Wed Oct 17 01:48:04 2018
New Revision: 344679
URL: http://llvm.org/viewvc/llvm-project?rev=344679&view=rev
Log:
[clangd] Print numbers of symbols and refs as well when loading the
index.
Modified:
clang-tools-extra/trunk/clangd/index/Serialization.cpp
Modified: clang-too
Author: hokein
Date: Wed Oct 17 01:54:48 2018
New Revision: 344680
URL: http://llvm.org/viewvc/llvm-project?rev=344680&view=rev
Log:
[clangd] Fix buildbot failure.
Modified:
clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp
Modified: clang-tools-extra/trunk/clangd/index/SymbolCollecto
Hi Julie,
clang 3.6.0 complains on this commit:
/usr/bin/clang++ -march=corei7 -DGTEST_HAS_RTTI=0
-DGTEST_HAS_TR1_TUPLE=0 -DGTEST_LANG_CXX11=1 -D_DEBUG -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Itools/clang/tools/extra/unittests/clang-doc
-I../tool
dkrupp added inline comments.
Comment at: www/analyzer/open_projects.html:198
+ or using a dataflow framework.
+ (Difficulty: Hard)
+
Probably it is worth mentioning here, that there is a macro language already
for describing summaries of standard
sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.
Awesome! Just nits.
Comment at: clangd/CodeComplete.cpp:1224
std::vector QueryScopes; // Initialized once Sema runs.
+ // Initialized once QueryScopes is initialize
sberg added a comment.
In https://reviews.llvm.org/D52400#1266341, @aaron.ballman wrote:
> In https://reviews.llvm.org/D52400#1266307, @sberg wrote:
>
> >
>
[...]
> Then again, this is a case where you don't get any error but you do get a
> silent behavioral ambiguity without the current enum
AlexeySachkov updated this revision to Diff 169978.
AlexeySachkov added a comment.
Removed unnecessary empty line from test
https://reviews.llvm.org/D53200
Files:
lib/Serialization/ASTWriter.cpp
test/Headers/opencl-pragma-extension-begin.cl
test/Headers/opencl-pragma-extension-begin.h
I
balazske added a comment.
In the current version all clang tests do pass and most of the LLDB tests. Some
LLDB tests do not work on my machine, the problems exist on master too.
This code is still a temporary version (possible to commit now or wait until
every change is made?). Later the `Import
AlexeySachkov added a comment.
@yaxunl could you please review this patch?
It fixes a bug in a feature implemented by you in:
commit c6fb598a301143e9d21156a012cc6ef669ff0188
Author: Yaxun Liu
hokein created this revision.
hokein added a reviewer: sammccall.
Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ioeric,
ilya-biryukov.
This would buy us more memory. Using a 32-bits integer is enough for
most human-readable source code (up to 4M lines and 4K columns).
Previsoul
ioeric updated this revision to Diff 169982.
ioeric marked an inline comment as done.
ioeric added a comment.
- address comments
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53131
Files:
clangd/AST.cpp
clangd/AST.h
clangd/CodeComplete.cpp
clangd/FileDistance.cpp
cla
ioeric updated this revision to Diff 169983.
ioeric added a comment.
- rebase
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53131
Files:
clangd/AST.cpp
clangd/AST.h
clangd/CodeComplete.cpp
clangd/FileDistance.cpp
clangd/FileDistance.h
clangd/Quality.cpp
clangd/Qu
Author: ioeric
Date: Wed Oct 17 04:19:02 2018
New Revision: 344688
URL: http://llvm.org/viewvc/llvm-project?rev=344688&view=rev
Log:
[clangd] Support scope proximity in code completion.
Summary:
This should make all-scope completion more usable. Scope proximity for
indexes will be added in follow
This revision was automatically updated to reflect the committed changes.
Closed by commit rL344688: [clangd] Support scope proximity in code completion.
(authored by ioeric, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D53131
Files:
philip.pfaffe accepted this revision.
philip.pfaffe added a comment.
This revision is now accepted and ready to land.
LGTM, thank you!
Repository:
rC Clang
https://reviews.llvm.org/D52814
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
ht
sammccall added a comment.
(I think your math is off in the description: 20 bits should be 1M lines, not
4M)
I think this is a win, as I think truncation will be rare and not terrible. We
should document the intentions around truncation though.
Incidentally, this means replacing just the String
fedor.sergeev accepted this revision.
fedor.sergeev added a comment.
LGTM.
Repository:
rC Clang
https://reviews.llvm.org/D52814
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ioeric created this revision.
ioeric added a reviewer: ilya-biryukov.
Herald added subscribers: cfe-commits, arphaman.
Repository:
rC Clang
https://reviews.llvm.org/D53369
Files:
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-access-checks.cpp
Index: test/Index/complete-access-checks.
JonasToth added inline comments.
Comment at: clang-tidy/abseil/DurationFactoryFloatCheck.cpp:34
+llvm::APSInt ApInt(/*BitWidth=*/64, /*isUnsigned=*/false);
+ApInt = static_cast(value);
+if (is_negative)
Wouldn't it make more sense to use `std::uint64_
The symlink is correct, the linker's name is just `wasm-ld`. It is
also the default so you should be able to just drop the -fuse-ld
argument to make your command line work. I looks like the real fix is
to update the handling of -fuse-ld.
On Tue, Oct 16, 2018 at 9:26 AM Nico Weber wrote:
>
> $ b
JonasToth added a comment.
Thank you for the restructurings, i think the code is now way clearer and the
check close to being done (at least from my side :)).
Could you please mark all notes you consider done as done? Right now i am a bit
lost on what to track on, as the locations of the notes a
Szelethus added a comment.
I verified this project on tmux, which uses the preprocessor very heavily. It
works perfectly, and doesn't crash anywhere despite the **very** liberal use of
asserts.
In https://reviews.llvm.org/D52988#1267382, @whisperity wrote:
> Looks good.
>
> What happens if the
Szelethus added a comment.
Herald added subscribers: dkrupp, donat.nagy.
Ping
https://reviews.llvm.org/D51866
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
curdeius created this revision.
curdeius added reviewers: alexfh, aaron.ballman.
Herald added subscribers: cfe-commits, xazax.hun.
It fixes the false positive when using constexpr if and where else cannot be
removed:
Example:
if constexpr (sizeof(int) > 4)
// ...
return /* ... */;
e
hokein updated this revision to Diff 170001.
hokein marked 3 inline comments as done.
hokein added a comment.
Address review comments:
- handle overflowed cases, and added tests
- add getter/setters for line/column and clear all call sides
Repository:
rCTE Clang Tools Extra
https://reviews.l
hokein added a comment.
In https://reviews.llvm.org/D53363#1267628, @sammccall wrote:
> (I think your math is off in the description: 20 bits should be 1M lines, not
> 4M)
Oops...Update the desccription.
> I think this is a win, as I think truncation will be rare and not terrible.
> We shoul
lebedev.ri added a comment.
I think it would be good to add some more explanation as to *why* that `else`
has to be kept.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53372
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
aaron.ballman added a comment.
In https://reviews.llvm.org/D52400#1267499, @sberg wrote:
> In https://reviews.llvm.org/D52400#1266341, @aaron.ballman wrote:
>
> > In https://reviews.llvm.org/D52400#1266307, @sberg wrote:
> >
> > >
> >
>
>
> [...]
>
> > Then again, this is a case where you don't g
ioeric created this revision.
ioeric added a reviewer: sammccall.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay,
ilya-biryukov.
These are often not expected to be used directly e.g.
TEST_F(Fixture, X) {
^ // "Fixture_X_Test" expanded in the macro should be do
hokein created this revision.
hokein added a reviewer: alexfh.
Herald added a subscriber: xazax.hun.
Previously, ptr.reset(new char[5]) will be replaced with `p =
make_unique(5)`, the fix has side effect -- doing
default initialization, it may cause performace regression (we are
bitten by this rec
shahms added a comment.
It's worth noting that `RecursiveASTVisitor` appears to think they are at least
somewhat equivalent in that it will only visit one or the other and prefers
`TypeSourceInfo`, if present, via `VisitTypeLoc`. The fact that the TSI lacks
this information makes it pretty awk
This revision was automatically updated to reflect the committed changes.
Closed by commit rL344699: [PassManager/Sanitizer] Enable usage of ported
AddressSanitizer passes with… (authored by leonardchan, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://r
Author: leonardchan
Date: Wed Oct 17 08:38:22 2018
New Revision: 344699
URL: http://llvm.org/viewvc/llvm-project?rev=344699&view=rev
Log:
[PassManager/Sanitizer] Enable usage of ported AddressSanitizer passes with
-fsanitize=address
Enable usage of `AddressSanitizer` and `AddressModuleSanitizer`
stefson added a comment.
hey there, I've run into problems with stripping static-libs on arm when using
llvm/clang-7. Could you imagine this patch being at fault?
strip: armv7a-unknown-linux-gnueabihf-strip --strip-unneeded -R .comment -R
.GCC.command.line -R .note.gnu.gold-version
lib/l
stefson added a comment.
Herald added a reviewer: javed.absar.
Herald added subscribers: dexonsmith, chrib.
hey there, I've run into problems with stripping static-libs on arm when using
llvm/clang-7. Could you imagine this patch being at fault?
strip: armv7a-unknown-linux-gnueabihf-strip --st
peter.smith added a comment.
In https://reviews.llvm.org/D45240#1267846, @stefson wrote:
> hey there, I've run into problems with stripping static-libs on arm when
> using llvm/clang-7. Could you imagine this patch being at fault?
>
> strip: armv7a-unknown-linux-gnueabihf-strip --strip-unneede
Author: leonardchan
Date: Wed Oct 17 09:21:19 2018
New Revision: 344701
URL: http://llvm.org/viewvc/llvm-project?rev=344701&view=rev
Log:
Fix for failing unit tests on some bots after r344696.
Modified:
cfe/trunk/test/CodeGen/asan-new-pm.ll
Modified: cfe/trunk/test/CodeGen/asan-new-pm.ll
URL
zturner added inline comments.
Comment at: clang-tidy/abseil/DurationFactoryFloatCheck.cpp:24
+truncateIfIntegral(const FloatingLiteral &FloatLiteral) {
+ double value = FloatLiteral.getValueAsApproximateDouble();
+ if (std::fmod(value, 1) == 0) {
All variables
Author: leonardchan
Date: Wed Oct 17 11:12:18 2018
New Revision: 344702
URL: http://llvm.org/viewvc/llvm-project?rev=344702&view=rev
Log:
Fix for arm bots afternew PM pass port. Prevent cross compiling on arm.
Modified:
cfe/trunk/test/CodeGen/asan-new-pm.ll
Modified: cfe/trunk/test/CodeGen/a
efriedma added a comment.
Starting multiple threads on the LLVM mailing lists with the same message is
spam. Please don't do that.
If you think you've run into a bug, file a bug report at bugs.llvm.org. For
general questions, send an email to llvm-dev.
Repository:
rC Clang
https://review
malcolm.parsons accepted this revision.
malcolm.parsons added a comment.
This revision is now accepted and ready to land.
LGTM.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53377
___
cfe-commits mailing list
cfe-commits@lists.llvm
juliehockett created this revision.
juliehockett added reviewers: leonardchan, jakehehrlich, lebedev.ri.
juliehockett added a project: clang-tools-extra.
Herald added subscribers: kadircet, arphaman.
Makes bitcode tests line up with what's actually called in the tool. Should fix
the failing bot.
https://reviews.llvm.org/D53381 should fix this -- thanks for the note!
Julie
On Wed, Oct 17, 2018 at 1:58 AM Mikael Holmén
wrote:
> Hi Julie,
>
> clang 3.6.0 complains on this commit:
>
> /usr/bin/clang++ -march=corei7 -DGTEST_HAS_RTTI=0
> -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_LANG_CXX11=1 -D_DEBU
juliehockett created this revision.
juliehockett added reviewers: leonardchan, jakehehrlich, lebedev.ri.
juliehockett added a project: clang-tools-extra.
https://reviews.llvm.org/D53382
Files:
clang-tools-extra/docs/clang-doc.rst
Index: clang-tools-extra/docs/clang-doc.rst
===
leonardchan accepted this revision.
leonardchan added inline comments.
This revision is now accepted and ready to land.
Comment at: clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp:39-40
+return writeInfo(*static_cast(I));
+ default:
+return "";
+ }
---
Author: juliehockett
Date: Wed Oct 17 13:16:05 2018
New Revision: 344707
URL: http://llvm.org/viewvc/llvm-project?rev=344707&view=rev
Log:
[clang-doc] Bringing bitcode tests in line
Makes bitcode tests line up with what's actually called in the tool.
Should fix the failing bot.
Also fixes a warn
This revision was automatically updated to reflect the committed changes.
juliehockett marked an inline comment as done.
Closed by commit rL344707: [clang-doc] Bringing bitcode tests in line (authored
by juliehockett, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commi
olista01 added inline comments.
Comment at: lib/CodeGen/CGDeclCXX.cpp:364
if (RASignKind != CodeGenOptions::SignReturnAddressScope::None)
+ {
Fn->addFnAttr("sign-return-address",
LLVM style has the opening brace on the same line as the if. There's a
git
Author: efriedma
Date: Wed Oct 17 14:07:11 2018
New Revision: 344710
URL: http://llvm.org/viewvc/llvm-project?rev=344710&view=rev
Log:
[AArch64] Define __ELF__ for aarch64-none-elf and other similar triples.
"aarch64-none-elf" is commonly used for AArch64 baremetal toolchains.
Differential Revis
This revision was automatically updated to reflect the committed changes.
Closed by commit rC344710: [AArch64] Define __ELF__ for aarch64-none-elf and
other similar triples. (authored by efriedma, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D53348
Files:
lib/Basic/Targets/
Author: kzhuravl
Date: Wed Oct 17 14:39:12 2018
New Revision: 344711
URL: http://llvm.org/viewvc/llvm-project?rev=344711&view=rev
Log:
AMDGPU: Add options to enable/disable code object v3
Differential Revision: https://reviews.llvm.org/D53386
Modified:
cfe/trunk/include/clang/Driver/Options.
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM aside from some minor nits.
Comment at: clang-tidy/cppcoreguidelines/MacroUsageCheck.cpp:71
+void MacroUsageCheck::warnMacro(const MacroDirective *MD) {
+
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM aside from minor wording nits.
Comment at: clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp:31-32
+ static constexpr llvm::StringLiteral SkipFirst =
sammccall created this revision.
sammccall added a reviewer: ioeric.
Herald added subscribers: cfe-commits, kadircet, jfb, arphaman, jkorous,
MaskRay, javed.absar, ilya-biryukov, mgorny.
Most of its functionality is moved into ClangdLSPServer.
The decoupling between JSONRPCDispatcher, ProtocolCal
aaron.ballman added a comment.
In https://reviews.llvm.org/D52771#1263404, @lebedev.ri wrote:
> FIXME: `IgnoreClassesWithAllMemberVariablesBeingPublic` needs to be somehow
> enabled for cppcoreguidelines check.
> I don't know if it is possible, and how.
IIRC, the idea is to override `getModul
aaron.ballman added a comment.
Thank you for the context and explanation! I don't feel like I have enough
familiarity with this machinery to be an effective reviewer for signing off on
anything. I've commented with some nits, but @rsmith should give the sign-off
on this one.
Eugene.Zelenko added a comment.
Will be good idea to mention improvements in Release Notes.
Comment at: clang-tools-extra/docs/clang-doc.rst:20
Use
-=
+
Isn't it should be same length as heading? Same in other places.
https://reviews.llvm.org/D5338
aaron.ballman added inline comments.
Comment at: test/clang-tidy/readability-const-value-return.cpp:174
+int **const * n_multiple_ptr();
+int *const & n_pointer_ref();
I'd like to see some more complex examples, like:
```
int const foo();
int const * const foo();
krasimir added inline comments.
Comment at: include/clang/Format/Format.h:85
+ /// matching assignment operators. This includes consecutive |=, +=
+ /// -=, /=, *=. This will result in formattings like
/// \code
Please add tests for these. Also it's not clea
kristina added a comment.
@nruslan This patchset is still pending review so be patient, I landed
https://reviews.llvm.org/D53103 as it was reviewed and accepted by the code
owner, on which this patch depends on. That said it LGTM, it's simple enough as
it just forwards the argument to the backe
craig.topper accepted this revision.
craig.topper added a comment.
This revision is now accepted and ready to land.
LGTM with that one style comment fixed.
Comment at: lib/Driver/ToolChains/Clang.cpp:1743
+ if (!Args.hasFlag(options::OPT_mtls_direct_seg_refs,
+ options::O
On 10/17/2018 08:30 PM, Julie Hockett wrote:
> https://reviews.llvm.org/D53381 should fix this -- thanks for the note!
Yep, thanks!
/Mikael
>
> Julie
>
> On Wed, Oct 17, 2018 at 1:58 AM Mikael Holmén
> mailto:mikael.hol...@ericsson.com>> wrote:
>
> Hi Julie,
>
> clang 3.6.0 compla
Author: uabelho
Date: Wed Oct 17 23:00:39 2018
New Revision: 344724
URL: http://llvm.org/viewvc/llvm-project?rev=344724&view=rev
Log:
Fix warning about unused variable [NFC]
Modified:
clang-tools-extra/trunk/clangd/CodeComplete.cpp
Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp
UR
lebedev.ri added a comment.
Ping.
Repository:
rC Clang
https://reviews.llvm.org/D52695
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
sammccall added a comment.
Idea looks good, I think it needs some renames and index support.
Comment at: clangd/AST.h:33
+// `-DName=foo`, the spelling location will be "".
+bool SpelledInSourceCode(const Decl *D);
+
nit: should start with lowercase: `isSpe
sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.
Nice, just nits!
In https://reviews.llvm.org/D53363#1267721, @hokein wrote:
> Yeah, I have a rough patch for it, using char* will save us ~50MB memory,
> which will lead to ~300 MB memo
78 matches
Mail list logo