[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-09-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. Thanks! LGTM with a last drop of NITs. Do you already have commit access or do you want me to submit this change for you? Comment at: include/clang/Basic/Virtu

[PATCH] D51391: [clang-cl,PCH] Add support for #pragma hdrstop

2018-09-04 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Very cool! I only have some minor comments. Oh, and when it lands, you should probably add an update to docs/ReleaseNotes.rst about it too. Comment at: include/clang/Driver/CC1Options.td:613 + HelpText<"Stop PCH generation after #pragma hdrstop. When u

[PATCH] D50229: +fp16fml feature for ARM and AArch64

2018-09-04 Thread Bernard Ogden via Phabricator via cfe-commits
bogden added a reviewer: efriedma. bogden added a comment. Hello Eli -- Sjoerd pointed out that you had concerns about this sort of command-line manipulation in his patch https://reviews.llvm.org/D50179. I'm having to do something similar here to deal with +fp16fml being implied by +fp16 from v

r341350 - Disable the GNUstep v2 ABI on Windows.

2018-09-04 Thread David Chisnall via cfe-commits
Author: theraven Date: Tue Sep 4 02:23:18 2018 New Revision: 341350 URL: http://llvm.org/viewvc/llvm-project?rev=341350&view=rev Log: Disable the GNUstep v2 ABI on Windows. The code remains so that we can potentially reenable it in a point release, but the driver will reject it. Several issues

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. Thanks for cleaning it up! I admit that `SymbolOccurrences` is a loong name. A few nits. Comment at: clangd/index/FileIndex.cpp:120 + auto &SymRefs = Sym.second; + std::sort(SymRefs.begin(), SymRefs.end()); + std::copy(SymRefs.begin(), Sy

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. nice! Comment at: clangd/index/Index.cpp:153 + // We can reuse the arena, as it only has unique strings and we need them all. + // Reallocate the ref lists on the arena to

[PATCH] D51544: [OpenCL] Split opencl-c.h header

2018-09-04 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh added inline comments. Comment at: lib/Headers/opencl-c-common.h:9 +//===--===// + +#ifndef __OPENCL_C_COMMON_H__ Would it be worth having a brief explanation here about what is supposed t

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163773. kbobyrev marked 12 inline comments as done. kbobyrev added a comment. - Rebase on top of the parent patch - Apply many refactorings where appropriate - Write more comments and documentation - Abstract pieces of code which are shared by multiple pieces

r341352 - Revert "Disable the GNUstep v2 ABI on Windows."

2018-09-04 Thread David Chisnall via cfe-commits
Author: theraven Date: Tue Sep 4 03:07:27 2018 New Revision: 341352 URL: http://llvm.org/viewvc/llvm-project?rev=341352&view=rev Log: Revert "Disable the GNUstep v2 ABI on Windows." This reverts commit b4547c9cadd2f8adfe3f3182e4c56e466c5256cb. Apparently git llvm push from the monorepo does not

[PATCH] D51567: CMake: Consolidate gtest detection code

2018-09-04 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc accepted this revision. chandlerc added a comment. This revision is now accepted and ready to land. I mean, sure. I really don't know that supporting this ever expanding diversity of build strategies is worth its cost, but I don't see a specific reason to not take this patch Rep

[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen(), size() or equal length

2018-09-04 Thread Whisperity via Phabricator via cfe-commits
whisperity added a comment. Whew, this is a big one. Generally looks good, although I would separate implementation detail functions a bit better, with perhaps more comments to move them apart a bit, it is really harsh to scroll through. Could you please re-run the findings on the projects? The

[PATCH] D51221: [clangd] Some nitpicking around the new split (preamble/main) dynamic index

2018-09-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdServer.cpp:152 WorkScheduler(Opts.AsyncThreadsCount, Opts.StorePreamblesInMemory, -DynamicIdx ? *DynamicIdx : noopParsingCallbacks(), +DynamicIdx ? DynamicIdx->makeUpdateC

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 7 inline comments as done. sammccall added a comment. In https://reviews.llvm.org/D51605#1222636, @hokein wrote: > Thanks for cleaning it up! I admit that `SymbolOccurrences` is a loong name. > A few nits. Yeah, I hope you don't mind! The references stuff is awesome, I'm hopin

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 163784. sammccall marked 4 inline comments as done. sammccall added a comment. Address comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51605 Files: clangd/ClangdServer.cpp clangd/index/FileIndex.cpp clangd/index/FileIndex.h

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: clangd/index/Index.cpp:158 +auto &SymRefs = Sym.second; +std::sort(SymRefs.begin(), SymRefs.end()); +// TODO: do we really need to dedup? I noticed this by accident, but i'm pretty sure `std::sort()` shoul

[PATCH] D43871: [modules] No longer include stdlib.h from mm_malloc.h.

2018-09-04 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. Please check the history of the file for some of the problems with the redefinition. I'm quite against this change. https://reviews.llvm.org/D43871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen(), size() or equal length

2018-09-04 Thread Whisperity via Phabricator via cfe-commits
whisperity added a comment. Generally grammar / phrasing things that have caught my eye. The rest of the code looks okay, bar my previous comment about better commenting / separating chunks of helper functions. Comment at: clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp:

[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-09-04 Thread UTKARSH SAXENA via Phabricator via cfe-commits
usaxena95 updated this revision to Diff 163785. usaxena95 marked 9 inline comments as done. usaxena95 added a comment. - fixed the style issues Repository: rC Clang https://reviews.llvm.org/D51359 Files: include/clang/Basic/VirtualFileSystem.h lib/Basic/VirtualFileSystem.cpp unittests/

[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-09-04 Thread UTKARSH SAXENA via Phabricator via cfe-commits
usaxena95 added a comment. I don't have commit access. Can you please submit this ? Repository: rC Clang https://reviews.llvm.org/D51359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked an inline comment as done. sammccall added inline comments. Comment at: clangd/index/Index.cpp:158 +auto &SymRefs = Sym.second; +std::sort(SymRefs.begin(), SymRefs.end()); +// TODO: do we really need to dedup? lebedev.ri wrote: > I no

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163786. kbobyrev marked 3 inline comments as done. kbobyrev added a comment. Rebase on top of recent revisions. https://reviews.llvm.org/D51539 Files: clang-tools-extra/clangd/index/FileIndex.cpp clang-tools-extra/clangd/index/FileIndex.h clang-tools

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. LGTM, thanks! Comment at: clangd/index/FileIndex.cpp:120 + auto &SymRefs = Sym.second; + std::sort(SymRefs.begin(), SymRefs.end()); + std::copy(SymRefs.begin(), SymRefs.end(), back_inserter(RefsStorage)); ---

[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-09-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. In https://reviews.llvm.org/D51359#1222823, @usaxena95 wrote: > I don't have commit access. Can you please submit this ? Will do. Repository: rC Clang https://reviews.llvm.org/D51359 ___ cfe-commits mailing list

[PATCH] D50488: [Analyzer] Checker for non-determinism caused by sorting of pointer-like keys

2018-09-04 Thread Whisperity via Phabricator via cfe-commits
whisperity added a comment. Minor comments in-line, looking good on first glance. I'm not sure if we discussed, has this checker been tried on some in-the-wild examples? To see if there are some real findings or crashes? There is a good selection of projects here in this tool: https://github.co

[PATCH] D50488: [Analyzer] Checker for non-determinism caused by sorting of pointer-like keys

2018-09-04 Thread Whisperity via Phabricator via cfe-commits
whisperity added a project: clang. whisperity added a comment. @Szelethus `clang-query` seems to sometimes not include matcher functions that are perfectly available in the code... I recently had some issue with using `isUserDefined()`, it was available in my code, but `clang-query` always reje

[PATCH] D46081: [analyzer] Expand conversion check to check more expressions for overflow and underflow

2018-09-04 Thread Whisperity via Phabricator via cfe-commits
whisperity added a comment. Ping. Shouldn't let this thing go to waste. https://reviews.llvm.org/D46081 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r341362 - Remove lambda default parameter to silence -Wpedantic warning. NFCI.

2018-09-04 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue Sep 4 05:17:10 2018 New Revision: 341362 URL: http://llvm.org/viewvc/llvm-project?rev=341362&view=rev Log: Remove lambda default parameter to silence -Wpedantic warning. NFCI. Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp Modified: clang-tools-extra/tru

[PATCH] D51157: [x86/SLH] Add a real Clang flag and LLVM IR attribute for Speculative Load Hardening.

2018-09-04 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc marked 5 inline comments as done. chandlerc added a comment. All outstanding comments addressed, and landing this. Thanks all for the reviews and let me know if I missed anything. Comment at: llvm/include/llvm/IR/Attributes.td:181-185 +/// Note that this uses the def

[PATCH] D50958: [clangd] Implement findReferences function

2018-09-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. In https://reviews.llvm.org/D50958#149, @sammccall wrote: > Looking forward to using this! > > Unless you object, I'd like to address the remaining comments (and get a > review), so you can make the most of your leave! Thanks, feel free to pick it up. The comments m

r341363 - [x86/SLH] Add a real Clang flag and LLVM IR attribute for Speculative

2018-09-04 Thread Chandler Carruth via cfe-commits
Author: chandlerc Date: Tue Sep 4 05:38:00 2018 New Revision: 341363 URL: http://llvm.org/viewvc/llvm-project?rev=341363&view=rev Log: [x86/SLH] Add a real Clang flag and LLVM IR attribute for Speculative Load Hardening. Wires up the existing pass to work with a proper IR attribute rather than j

[PATCH] D51157: [x86/SLH] Add a real Clang flag and LLVM IR attribute for Speculative Load Hardening.

2018-09-04 Thread Chandler Carruth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. chandlerc marked an inline comment as done. Closed by commit rL341363: [x86/SLH] Add a real Clang flag and LLVM IR attribute for Speculative (authored by chandlerc, committed by ). Changed prior to commit: https://reviews

[PATCH] D51446: [OpenMP][bugfix] Add missing macros for Power

2018-09-04 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. Not needed anymore after the reverts in https://reviews.llvm.org/rC341115 and https://reviews.llvm.org/rC341118, right? Maybe we should revive the test to make sure we don't break this in the future? Repository: rC Clang https://reviews.llvm.org/D51446 _

[PATCH] D50783: [CodeGen] Merge identical block descriptor global variables

2018-09-04 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. In https://reviews.llvm.org/D50783#1221147, @ahatanak wrote: > The GNUstep documentation I found replaces '@' with '\1'. Would that fix the > problem? > > https://github.com/gnustep/libobjc2/blob/master/ABIDoc/abi.tex Yup. If this mangling is needed outside of CGObjC

[PATCH] D51501: [CUDA] Fix CUDA compilation broken by D50845

2018-09-04 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. Not needed anymore after the reverts in https://reviews.llvm.org/rC341115 and https://reviews.llvm.org/rC341118, right? https://reviews.llvm.org/D51501 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D50462: Try building complete AST after a fatal error was emitted if further diagnostics are expected

2018-09-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. In https://reviews.llvm.org/D50462#1214120, @Dmitry.Kozhevnikov wrote: > When lookin through the list of the fatal errors, I think there are different > categories: > > 1. "Scary" ones - "module was relocated", "invalid vfs overlay file", we > probably shouldn't t

[PATCH] D51626: [clangd] Move buildStaticIndex() to SymbolYAML

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added reviewers: ioeric, ilya-biryukov, sammccall. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay. `buildStaticIndex()` is used by two other tools that I'm building, now it's useful outside of `tool/ClangdMain.cpp`. https://reviews.llvm.o

[PATCH] D51626: [clangd] Move buildStaticIndex() to SymbolYAML

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163797. kbobyrev added a comment. Move function documentation to the header file. https://reviews.llvm.org/D51626 Files: clang-tools-extra/clangd/index/SymbolYAML.cpp clang-tools-extra/clangd/index/SymbolYAML.h clang-tools-extra/clangd/tool/ClangdMai

[PATCH] D51628: [clangd] Implement a Proof-of-Concept tool for symbol index exploration

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added reviewers: ioeric, sammccall, ilya-biryukov. kbobyrev added a project: clang-tools-extra. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, mgorny. https://reviews.llvm.org/D51628 Files: clang-tools-extra/clangd/CMakeLists.txt clang

[PATCH] D51628: [clangd] Implement a Proof-of-Concept tool for symbol index exploration

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163800. kbobyrev added a comment. Cleaned up few minor issues. https://reviews.llvm.org/D51628 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/dexplorer/CMakeLists.txt clang-tools-extra/clangd/dexplorer/Dexplorer.cpp Index: c

[PATCH] D51545: Enable -Wtautological-unsigned-zero-compare under -Wextra

2018-09-04 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews added a comment. Alright. Thanks for the review. I will abandon this patch https://reviews.llvm.org/D51545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D50942: SemaExceptionSpec: ensure old/new specs are both parsed and evaluated when comparing

2018-09-04 Thread Steve O'Brien via Phabricator via cfe-commits
elsteveogrande abandoned this revision. elsteveogrande added a comment. Abandoning in favor of https://reviews.llvm.org/D51608 which works better. Repository: rC Clang https://reviews.llvm.org/D50942 ___ cfe-commits mailing list cfe-commits@lists

r341366 - Adding HardLink Support to VirtualFileSystem.

2018-09-04 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Sep 4 07:15:53 2018 New Revision: 341366 URL: http://llvm.org/viewvc/llvm-project?rev=341366&view=rev Log: Adding HardLink Support to VirtualFileSystem. Summary: Added support of creating a hardlink from one file to another file. After a hardlink is added between two

[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-09-04 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341366: Adding HardLink Support to VirtualFileSystem. (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51359?vs=163785&

[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-09-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Submitted. Thanks for the change! Repository: rL LLVM https://reviews.llvm.org/D51359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51300: [analyzer][UninitializedObjectChecker] No longer using nonloc::LazyCompoundVal

2018-09-04 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 163813. Szelethus added a comment. Fixed a crash where the returned region's type wasn't `CXXRecordDecl`. I'm not even sure how this is possible -- and unfortunately I've been unable to create a minimal (not) working example for this, and I wasn't even abl

[clang-tools-extra] r341368 - [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Sep 4 07:39:56 2018 New Revision: 341368 URL: http://llvm.org/viewvc/llvm-project?rev=341368&view=rev Log: [clangd] SymbolOccurrences -> Refs and cleanup Summary: A few things that I noticed while merging the SwapIndex patch: - SymbolOccurrences and particularly Symb

[PATCH] D51605: [clangd] SymbolOccurrences -> Refs and cleanup

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. sammccall marked an inline comment as done. Closed by commit rCTE341368: [clangd] SymbolOccurrences -> Refs and cleanup (authored by sammccall, committed by ). Changed prior to commit: https://reviews.llvm.org/D51605?vs=1

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric requested changes to this revision. ioeric added a comment. This revision now requires changes to proceed. (and forgot to request changes ;) https://reviews.llvm.org/D51481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. There are a few changes/refactorings which I would suggest splitting from this patch, as they would require more thoughts and seem unrelated in this patch. Please see the inline comments :) Comment at: clang-tools-extra/clangd/Quality.h:130 +/// direct

[PATCH] D51626: [clangd] Move buildStaticIndex() to SymbolYAML

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/index/SymbolYAML.cpp:193 + auto Slab = symbolsFromYAML(Buffer.get()->getBuffer()); + SymbolSlab::Builder SymsBuilder; + for

[PATCH] D51090: [clangd] Add index benchmarks

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163821. kbobyrev edited the summary of this revision. kbobyrev added a comment. - Rebase on top of new code - Simplify code structure and get rid of global state (except for two filenames coming from `main()`) The only problem now is that the generated outp

[PATCH] D50958: [clangd] Implement findReferences function

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. OK thanks, I'll steal this one. Comment at: clangd/XRefs.cpp:724 + // traversing the AST, and we don't want to make unnecessary queries to the + // index. Howerver, we don't have a reliable way to distinguish file-local + // symbols. We conservativ

[PATCH] D51626: [clangd] Move buildStaticIndex() to SymbolYAML

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163823. kbobyrev marked 3 inline comments as done. kbobyrev added a comment. Rebase and resolve comments https://reviews.llvm.org/D51626 Files: clang-tools-extra/clangd/index/SymbolYAML.cpp clang-tools-extra/clangd/index/SymbolYAML.h clang-tools-extr

[clang-tools-extra] r341369 - [clangd] Move buildStaticIndex() to SymbolYAML

2018-09-04 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Sep 4 08:10:40 2018 New Revision: 341369 URL: http://llvm.org/viewvc/llvm-project?rev=341369&view=rev Log: [clangd] Move buildStaticIndex() to SymbolYAML `buildStaticIndex()` is used by two other tools that I'm building, now it's useful outside of `tool/ClangdMain.cpp`.

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-09-04 Thread Paul Robinson via Phabricator via cfe-commits
probinson added subscribers: cfe-commits, probinson. probinson added a comment. +cfe-commits https://reviews.llvm.org/D51340 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51626: [clangd] Move buildStaticIndex() to SymbolYAML

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341369: [clangd] Move buildStaticIndex() to SymbolYAML (authored by omtcyfz, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51626?vs=163823&i

[PATCH] D51635: clang-cl: Pass /Brepro to linker if it was passed to the compiler

2018-09-04 Thread Nico Weber via Phabricator via cfe-commits
thakis created this revision. thakis added a reviewer: hans. /Brepro currently is just an alias for -mno-incremental-linker-compatible and before this patch only controlled if we write a timestamp into the output obj file. But cl.exe also passes it on to link.exe (where it controls whether the

[PATCH] D51636: [clangd] NFC: Change quality type to float

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added reviewers: ioeric, ilya-biryukov, sammccall. kbobyrev added a project: clang-tools-extra. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay. For the sake of consistency, `quality()` should return `float` instead of `double` since all of

[PATCH] D51636: [clangd] NFC: Change quality type to float

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. If it's not too expensive, we can use the symbol quality metrics (from Quality.h) to do a more accurate prescore. Worth a benchmark :-) https://reviews.llvm.org/D51636 __

[PATCH] D50958: [clangd] Implement findReferences function

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 163834. sammccall added a comment. Address comments and tighten up highlights/refs reuse in XRefs.cpp a bit. Still to do: - test interaction with index, including actual data - maybe add the ClangdServer/LSP binding and lit test, if it's just boilerplate

[PATCH] D51354: Fix the -print-multi-directory flag to print the selected multilib.

2018-09-04 Thread Christian Bruel via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC341373: Fix the -print-multi-directory flag to print the selected multilib. (authored by chrib, committed by ). Changed prior to commit: https://reviews.llvm.org/D51354?vs=162846&id=163835#toc Reposito

[PATCH] D51585: [clangd] Define a compact binary serialization fomat for symbol slab/index.

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Super cool! Just a few nits. Comment at: clangd/RIFF.cpp:58 + if (RIFF->ID != fourCC("RIFF")) +return makeError("Extra content after RIFF chunk"); + if (RIFF->Data.size() < 4) The error message seems wrong? Comme

[PATCH] D50958: [clangd] Implement findReferences function

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Oops, and I rebased on head (Occurrences -> Refs) of course. @ilya-biryukov @ioeric, any interest in taking over review here? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50958 ___ cfe-commits mailing l

[PATCH] D51036: clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier

2018-09-04 Thread Marco Elver via Phabricator via cfe-commits
melver added a comment. Awaiting remaining reviewer acceptance. FYI: I do not have commit commit access -- what is the procedure to commit once diff is accepted? Many thanks! Repository: rC Clang https://reviews.llvm.org/D51036 ___ cfe-commits

[PATCH] D51576: Enable DWARF accelerator tables by default when tuning for lldb (-glldb => -gpubnames)

2018-09-04 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. This is DWARF5+ only, right? (We shouldn't change the preference of Apple accelerator tables for DWARF 4 and earlier). Repository: rC Clang https://reviews.llvm.org/D51576 ___ cfe-commits mailing list cfe-commits@lists.l

r341373 - Fix the -print-multi-directory flag to print the selected multilib.

2018-09-04 Thread Christian Bruel via cfe-commits
Author: chrib Date: Tue Sep 4 08:22:13 2018 New Revision: 341373 URL: http://llvm.org/viewvc/llvm-project?rev=341373&view=rev Log: Fix the -print-multi-directory flag to print the selected multilib. Summary: Fix -print-multi-directory to print the selected multilib Reviewers: jroelofs Reviewed

[PATCH] D51635: clang-cl: Pass /Brepro to linker if it was passed to the compiler

2018-09-04 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. I suppose the alternative would be to make /Brepro a non-alias flag, expand it to -mno-incremental-linker-compatible for the cc1 invocation and look for it for the linker invocation. But this is

[PATCH] D51585: [clangd] Define a compact binary serialization fomat for symbol slab/index.

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 163836. sammccall marked an inline comment as done. sammccall added a comment. address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51585 Files: clangd/CMakeLists.txt clangd/RIFF.cpp clangd/RIFF.h clangd/global-s

[PATCH] D51585: [clangd] Define a compact binary serialization fomat for symbol slab/index.

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 2 inline comments as done. sammccall added inline comments. Comment at: clangd/index/Serialization.cpp:50 + +void writeVar(uint32_t I, raw_ostream &OS) { + constexpr static uint8_t More = 1 << 7; ioeric wrote: > This function could use a comment

[PATCH] D51036: clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D51036#1223230, @melver wrote: > Awaiting remaining reviewer acceptance. > > FYI: I do not have commit commit access -- what is the procedure to commit > once diff is accepted? > > Many thanks! Anyone with commit access can land it for you

[PATCH] D51636: [clangd] NFC: Change quality type to float

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added a comment. In https://reviews.llvm.org/D51636#1223204, @sammccall wrote: > If it's not too expensive, we can use the symbol quality metrics (from > Quality.h) to do a more accurate prescore. Worth a benchmark :-) Yes, I agree. We can investigate that quality/performance trade-of

[PATCH] D51585: [clangd] Define a compact binary serialization fomat for symbol slab/index.

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lgtm! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D51636: [clangd] NFC: Change quality type to float

2018-09-04 Thread Kirill Bobyrev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE341374: [clangd] NFC: Change quality type to float (authored by omtcyfz, committed by ). Changed prior to commit: https://reviews.llvm.org/D51636?vs=163833&id=163837#toc Repository: rCTE Clang Tool

[clang-tools-extra] r341374 - [clangd] NFC: Change quality type to float

2018-09-04 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Sep 4 08:45:56 2018 New Revision: 341374 URL: http://llvm.org/viewvc/llvm-project?rev=341374&view=rev Log: [clangd] NFC: Change quality type to float Reviewed by: sammccall Differential Revision: https://reviews.llvm.org/D51636 Modified: clang-tools-extra/trunk/cl

[PATCH] D50147: clang-format: support external styles

2018-09-04 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. clang-format does indeed support .clang-format, which is great for *isolated* projects, and which is not affected by this patch. This patch addresses the issue of *centralizing* the definition of styles, e.g. allowing individual projects to reference externally defined sty

[PATCH] D51638: [clangd] Load static index asynchronously, add tracing.

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ioeric. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov. Like https://reviews.llvm.org/D51475 but simplified based on recent patches. While here, clarify that loadIndex() takes a filename, not

[PATCH] D51638: [clangd] Load static index asynchronously, add tracing.

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg. Thanks! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

[PATCH] D51475: [clangd] Load YAML static index asynchronously.

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric abandoned this revision. ioeric added a comment. Dropping this in favor of https://reviews.llvm.org/D51638 Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51475 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[PATCH] D50672: [ASTImporter] Change the return result of Decl import to Optional

2018-09-04 Thread Gabor Marton via Phabricator via cfe-commits
martong added a comment. Here is the `Expected` based patch: https://reviews.llvm.org/D51633 Repository: rC Clang https://reviews.llvm.org/D50672 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[clang-tools-extra] r341375 - [clangd] Define a compact binary serialization fomat for symbol slab/index.

2018-09-04 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Sep 4 09:16:50 2018 New Revision: 341375 URL: http://llvm.org/viewvc/llvm-project?rev=341375&view=rev Log: [clangd] Define a compact binary serialization fomat for symbol slab/index. Summary: This is intended to replace the current YAML format for general use. It's ~1

[PATCH] D51585: [clangd] Define a compact binary serialization fomat for symbol slab/index.

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341375: [clangd] Define a compact binary serialization fomat for symbol slab/index. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://revi

[clang-tools-extra] r341376 - [clangd] Load static index asynchronously, add tracing.

2018-09-04 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Sep 4 09:19:40 2018 New Revision: 341376 URL: http://llvm.org/viewvc/llvm-project?rev=341376&view=rev Log: [clangd] Load static index asynchronously, add tracing. Summary: Like D51475 but simplified based on recent patches. While here, clarify that loadIndex() takes a

[PATCH] D51641: [VFS] Cache the current working directory for the real FS.

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: sammccall. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D51641 Files: lib/Basic/VirtualFileSystem.cpp Index: lib/Basic/VirtualFileSystem.cpp =

[PATCH] D51638: [clangd] Load static index asynchronously, add tracing.

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341376: [clangd] Load static index asynchronously, add tracing. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51638?

[PATCH] D51633: [ASTImporter] Added error handling for AST import.

2018-09-04 Thread Gabor Marton via Phabricator via cfe-commits
martong added a comment. This patch is huge, but we change here almost all implementation functions of `ASTNodeImporter` to return with either `Error` or with `Expected`. We could not really come up with a cohesive but smaller patch because of the recursive nature of the importer. (We are open t

[PATCH] D51641: [VFS] Cache the current working directory for the real FS.

2018-09-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: lib/Basic/VirtualFileSystem.cpp:275 return EC; - return Dir.str().str(); + CWDCache = Dir.str(); + return CWDCache; Doesn't this need to be guarded by a lock? I know the current version is thread-hostile in pr

[PATCH] D51501: [CUDA] Fix CUDA compilation broken by D50845

2018-09-04 Thread Artem Belevich via Phabricator via cfe-commits
tra abandoned this revision. tra added a comment. > Not needed anymore after the reverts in https://reviews.llvm.org/rC341115 and > https://reviews.llvm.org/rC341118, right? Correct. https://reviews.llvm.org/D51501 ___ cfe-commits mailing list cfe

[PATCH] D51644: [CMake] Remove variable reference that isn't used.

2018-09-04 Thread Charles Davis via Phabricator via cfe-commits
cdavis5x created this revision. cdavis5x added reviewers: mstorsjo, rnk. Herald added subscribers: cfe-commits, christof, mgorny. This variable is never defined, so its value is always empty. Since `libunwind` is needed to build the C++ ABI library in the first place, it should never be linked to

[PATCH] D51644: [CMake] Remove variable reference that isn't used.

2018-09-04 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added inline comments. Comment at: src/CMakeLists.txt:54 # Generate library list. -set(libraries ${LIBUNWINDCXX_ABI_LIBRARIES}) +set(libraries) append_if(libraries LIBUNWIND_HAS_C_LIB c) Is there any point in this line at all now, or can it be removed

[PATCH] D51644: [CMake] Remove variable reference that isn't used.

2018-09-04 Thread Charles Davis via Phabricator via cfe-commits
cdavis5x added inline comments. Comment at: src/CMakeLists.txt:54 # Generate library list. -set(libraries ${LIBUNWINDCXX_ABI_LIBRARIES}) +set(libraries) append_if(libraries LIBUNWIND_HAS_C_LIB c) mstorsjo wrote: > Is there any point in this line at all now, or

[PATCH] D51641: [VFS] Cache the current working directory for the real FS.

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 163858. ioeric marked an inline comment as done. ioeric added a comment. - Guard CWDCache with mutex. Repository: rC Clang https://reviews.llvm.org/D51641 Files: lib/Basic/VirtualFileSystem.cpp Index: lib/Basic/VirtualFileSystem.cpp ==

[PATCH] D51641: [VFS] Cache the current working directory for the real FS.

2018-09-04 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: lib/Basic/VirtualFileSystem.cpp:275 return EC; - return Dir.str().str(); + CWDCache = Dir.str(); + return CWDCache; sammccall wrote: > Doesn't this need to be guarded by a lock? I know the current version is > th

[PATCH] D51644: [CMake] Remove variable reference that isn't used.

2018-09-04 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo accepted this revision. mstorsjo added inline comments. This revision is now accepted and ready to land. Comment at: src/CMakeLists.txt:54 # Generate library list. -set(libraries ${LIBUNWINDCXX_ABI_LIBRARIES}) +set(libraries) append_if(libraries LIBUNWIND_HAS_C_LIB c)

[PATCH] D51300: [analyzer][UninitializedObjectChecker] No longer using nonloc::LazyCompoundVal

2018-09-04 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D51300#1220537, @Szelethus wrote: > Would you be comfortable me commiting this without that assert Yup sure. In https://reviews.llvm.org/D51300#1223042, @Szelethus wrote: > I'm not even sure how this is possible -- and unfortunately I've been u

[libunwind] r341388 - [CMake] Remove variable reference that isn't used.

2018-09-04 Thread Charles Davis via cfe-commits
Author: cdavis Date: Tue Sep 4 10:40:26 2018 New Revision: 341388 URL: http://llvm.org/viewvc/llvm-project?rev=341388&view=rev Log: [CMake] Remove variable reference that isn't used. Summary: This variable is never defined, so its value is always empty. Since `libunwind` is needed to build the C

[PATCH] D51644: [CMake] Remove variable reference that isn't used.

2018-09-04 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341388: [CMake] Remove variable reference that isn't used. (authored by cdavis, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D51644 Files: li

[PATCH] D51645: [CMake] Don't use -rtlib=compiler-rt with -nodefaultlibs.

2018-09-04 Thread Charles Davis via Phabricator via cfe-commits
cdavis5x created this revision. cdavis5x added reviewers: mstorsjo, rnk. Herald added subscribers: cfe-commits, christof, mgorny, dberris. This switch only has an effect at link time. It changes the default compiler support library to `compiler-rt`. With `-nodefaultlibs`, this library won't get li

[PATCH] D50229: +fp16fml feature for ARM and AArch64

2018-09-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Do you expect that the regression tests will be affected by the TargetParser fixes? If not, I guess this is okay... but please add clear comments explaining which bits of code you expect to go away after the TargetParser rewrite. Repository: rC Clang https://revi

r341390 - clang-cl: Pass /Brepro to linker if it was passed to the compiler

2018-09-04 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Sep 4 11:00:14 2018 New Revision: 341390 URL: http://llvm.org/viewvc/llvm-project?rev=341390&view=rev Log: clang-cl: Pass /Brepro to linker if it was passed to the compiler Differential Revision: https://reviews.llvm.org/D51635 Modified: cfe/trunk/lib/Driver/ToolChain

[PATCH] D51635: clang-cl: Pass /Brepro to linker if it was passed to the compiler

2018-09-04 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC341390: clang-cl: Pass /Brepro to linker if it was passed to the compiler (authored by nico, committed by ). Changed prior to commit: https://reviews.llvm.org/D51635?vs=163829&id=163870#toc Repository:

  1   2   >