[libcxx] r339987 - Merging r339675:

2018-08-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 17 00:19:32 2018 New Revision: 339987 URL: http://llvm.org/viewvc/llvm-project?rev=339987&view=rev Log: Merging r339675: r339675 | ldionne | 2018-08-14 15:29:17 +0200 (Tue, 14 Aug 2018) | 15 lines

[libcxx] r339988 - Merging r339702:

2018-08-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 17 00:20:04 2018 New Revision: 339988 URL: http://llvm.org/viewvc/llvm-project?rev=339988&view=rev Log: Merging r339702: r339702 | ldionne | 2018-08-14 20:16:56 +0200 (Tue, 14 Aug 2018) | 11 lines

[libcxx] r339989 - Merging r339741:

2018-08-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 17 00:20:30 2018 New Revision: 339989 URL: http://llvm.org/viewvc/llvm-project?rev=339989&view=rev Log: Merging r339741: r339741 | ldionne | 2018-08-15 02:16:41 +0200 (Wed, 15 Aug 2018) | 12 lines

[libcxx] r339990 - Merging r339742:

2018-08-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 17 00:20:52 2018 New Revision: 339990 URL: http://llvm.org/viewvc/llvm-project?rev=339990&view=rev Log: Merging r339742: r339742 | ldionne | 2018-08-15 02:18:01 +0200 (Wed, 15 Aug 2018) | 11 lines

[libcxx] r339991 - Merging r339804:

2018-08-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 17 00:21:26 2018 New Revision: 339991 URL: http://llvm.org/viewvc/llvm-project?rev=339991&view=rev Log: Merging r339804: r339804 | marshall | 2018-08-15 21:27:53 +0200 (Wed, 15 Aug 2018) | 1 line M

[libcxx] r339992 - Merging r339816:

2018-08-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 17 00:22:08 2018 New Revision: 339992 URL: http://llvm.org/viewvc/llvm-project?rev=339992&view=rev Log: Merging r339816: r339816 | marshall | 2018-08-15 23:19:08 +0200 (Wed, 15 Aug 2018) | 1 line S

[PATCH] D50852: [clang-tidy] abseil-auto-make-unique

2018-08-17 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: test/clang-tidy/abseil-auto-make-unique.cpp:73 + // Different type. No change. + std::unique_ptr z = make_unique(); + std::unique_ptr z2(make_unique()); JonasToth wrote: > lets consider a 3 level class hierarchy. >

[PATCH] D49851: [clang-tidy] run-clang-tidy add synchronisation to the output

2018-08-17 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. In https://reviews.llvm.org/D49851#1202764, @Abpostelnicu wrote: > Strangely I haven't had those kind of issues but since you propose those > modifications I would do one more modification, let's output everything to > stdout and not stderr by doing: > > if err: >

r339995 - [NFC] Some small test updates for Implicit Conversion sanitizer.

2018-08-17 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Aug 17 00:33:25 2018 New Revision: 339995 URL: http://llvm.org/viewvc/llvm-project?rev=339995&view=rev Log: [NFC] Some small test updates for Implicit Conversion sanitizer. Split off from D50250. Added: cfe/trunk/test/CodeGen/catch-implicit-integer-conversions-bas

[PATCH] D50542: [clang-tidy] Add abseil-no-internal-deps check

2018-08-17 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/abseil/NoInternalDepsCheck.cpp:21 +bool IsInAbseilFile(const SourceManager& manager, SourceLocation loc){ + if (loc.isInvalid()) { +return false; You can elide the braces for single stmt ifs =

[PATCH] D50883: [clang-tidy] Handle unique owning smart pointers in ExprMutationAnalyzer

2018-08-17 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. I am suprised that this does not automatically follow from the general rules. At the end, smartpointers cant do anything else then 'normal' classes. The `operator+/->` were not handled before? The mutation of `SmartPtr x; x->mf();` should already be catched, not? Re

[PATCH] D50616: [Fixed Point Arithmetic] FixedPointCast

2018-08-17 Thread Bevin Hansson via Phabricator via cfe-commits
ebevhan added a comment. In https://reviews.llvm.org/D50616#1203446, @leonardchan wrote: > Sorry I forgot to address this also. Just to make sure I understand this > correctly since I haven't used these before: target hooks are essentially for > emitting target specific code for some operations

[PATCH] D50627: [clangd] Add a testcase for empty preamble.

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 161176. hokein marked an inline comment as done. hokein added a comment. Remove ASSERT_TRUE(bool(Preamble)). Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50627 Files: unittests/clangd/TUSchedulerTests.cpp Index: unittests/clangd/TUSche

[clang-tools-extra] r340001 - [clangd] Always use the latest preamble

2018-08-17 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 17 01:15:22 2018 New Revision: 340001 URL: http://llvm.org/viewvc/llvm-project?rev=340001&view=rev Log: [clangd] Always use the latest preamble Summary: Fix an inconsistent behavior of using `LastBuiltPreamble`/`NewPreamble` in TUScheduler (see the test for details),

[PATCH] D50695: [clangd] Always use the latest preamble

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE340001: [clangd] Always use the latest preamble (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D50695?vs=160983&id=161177#toc Repository: rCTE Clang Tools Ex

[PATCH] D50726: [clangd] Show function documentation in sigHelp

2018-08-17 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 Comment at: clangd/CodeCompletionStrings.cpp:52 // get this declaration, so we don't show documentation in that case. if (Result.Kind != CodeCompletionResult::RK_D

[PATCH] D50616: [Fixed Point Arithmetic] FixedPointCast

2018-08-17 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D50616#1203692, @ebevhan wrote: > In https://reviews.llvm.org/D50616#1203446, @leonardchan wrote: > > > Sorry I forgot to address this also. Just to make sure I understand this > > correctly since I haven't used these before: target hooks are

[PATCH] D50726: [clangd] Show function documentation in sigHelp

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 161187. ilya-biryukov marked 2 inline comments as done. ilya-biryukov added a comment. - Turn ifs to ternary ops Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50726 Files: clangd/CodeComplete.cpp clangd/CodeCompletionStrings.cpp

[PATCH] D50726: [clangd] Show function documentation in sigHelp

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/CodeCompletionStrings.cpp:52 // get this declaration, so we don't show documentation in that case. if (Result.Kind != CodeCompletionResult::RK_Declaration) return ""; ioeric wrote: > `RK_Pattern`

[PATCH] D50726: [clangd] Show function documentation in sigHelp

2018-08-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/CodeCompletionStrings.cpp:52 // get this declaration, so we don't show documentation in that case. if (Result.Kind != CodeCompletionResult::RK_Declaration) return ""; ilya-biryukov wrote: > ioeric wrote:

[PATCH] D50726: [clangd] Show function documentation in sigHelp

2018-08-17 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340004: [clangd] Show function documentation in signature help (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D50726 File

[clang-tools-extra] r340004 - [clangd] Show function documentation in signature help

2018-08-17 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Aug 17 02:29:38 2018 New Revision: 340004 URL: http://llvm.org/viewvc/llvm-project?rev=340004&view=rev Log: [clangd] Show function documentation in signature help Summary: Previously, clangd was trying to show documentation for the active parameter instead, which is wr

[clang-tools-extra] r340005 - [clangd] Fetch documentation from the Index during signature help

2018-08-17 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Aug 17 02:32:30 2018 New Revision: 340005 URL: http://llvm.org/viewvc/llvm-project?rev=340005&view=rev Log: [clangd] Fetch documentation from the Index during signature help Summary: Sema can only be used for documentation in the current file, other doc comments should

[PATCH] D50616: [Fixed Point Arithmetic] FixedPointCast

2018-08-17 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D50616#1203751, @rjmccall wrote: > In https://reviews.llvm.org/D50616#1203692, @ebevhan wrote: > > > > > > Has anyone actually asked LLVM whether they would accept fixed-point types > into IR? I'm just a frontend guy, but it seems to me th

[PATCH] D50727: [clangd] Fetch documentation from the Index during signature help

2018-08-17 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340005: [clangd] Fetch documentation from the Index during signature help (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.o

[PATCH] D50847: [clangd] Add callbacks on parsed AST in addition to parsed preambles

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. In https://reviews.llvm.org/D50847#1202658, @ioeric wrote: > > Dynamic index misses important information from the body of the file, e.g. > > locations of definitions > > XRefs cannot be collected at all, since we can only obtain full > > information for the curr

[PATCH] D50119: Compiler support for P1144R0 "__is_trivially_relocatable(T)"

2018-08-17 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone updated this revision to Diff 161190. Quuxplusone added a comment. A type with no move-constructor, and some non-defaulted copy-constructors (even if it *also* has some defaulted copy-constructors) should not be considered naturally trivially relocatable. The paper already said this,

[PATCH] D50839: [llvm] Optimize YAML::isNumeric

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 161191. kbobyrev marked 4 inline comments as done. kbobyrev added a comment. Upload version which is IMO readable. https://reviews.llvm.org/D50839 Files: llvm/include/llvm/Support/YAMLTraits.h llvm/tools/llvm-yaml-numeric-parser-fuzzer/CMakeLists.txt

[PATCH] D50839: [llvm] Optimize YAML::isNumeric

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: llvm/include/llvm/Support/YAMLTraits.h:454 +inline bool isNumeric(StringRef S) { + if (S.empty()) +return false; zturner wrote: > What would happen if we re-wrote this entire function as: > > ``` > inline bool isN

[PATCH] D50839: [llvm] Optimize YAML::isNumeric

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 161192. kbobyrev added a comment. I tried to rewrite the loop, but IMO it looks even worse now. https://reviews.llvm.org/D50839 Files: llvm/include/llvm/Support/YAMLTraits.h llvm/tools/llvm-yaml-numeric-parser-fuzzer/CMakeLists.txt llvm/tools/llvm-ya

[PATCH] D50703: [clangd] NFC: Mark Workspace Symbol feature complete in the documentation

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340007: [clangd] NFC: Mark Workspace Symbol feature complete in the documentation (authored by omtcyfz, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.

[clang-tools-extra] r340007 - [clangd] NFC: Mark Workspace Symbol feature complete in the documentation

2018-08-17 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Fri Aug 17 03:14:31 2018 New Revision: 340007 URL: http://llvm.org/viewvc/llvm-project?rev=340007&view=rev Log: [clangd] NFC: Mark Workspace Symbol feature complete in the documentation Workspace Symbol implementation was introduced in D44882 and should be complete now. Rev

[PATCH] D50703: [clangd] NFC: Mark Workspace Symbol feature complete in the documentation

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE340007: [clangd] NFC: Mark Workspace Symbol feature complete in the documentation (authored by omtcyfz, committed by ). Changed prior to commit: https://reviews.llvm.org/D50703?vs=160566&id=161196#toc

[PATCH] D50889: [clangd] Make FileIndex aware of the main file

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added reviewers: hokein, ioeric. Herald added subscribers: arphaman, jkorous, MaskRay. It was previously only indexing the preamble decls. The new implementation will index both the preamble and the main AST and report both sets of symbols, prefer

[PATCH] D50847: [clangd] Add callbacks on parsed AST in addition to parsed preambles

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. @ioeric, specifically, see https://reviews.llvm.org/D50889 for an updated FileIndex Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50847 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

[PATCH] D50889: [clangd] Make FileIndex aware of the main file

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. This is still WIP, but wanted to share anyway the progress anyway. Need to fix the FIXMEs currently added to the code and add tests. Comment at: clangd/index/FileIndex.cpp:81 if (!Slab) FileToSlabs.erase(Path); else We

Re: r339807 - Refactor Darwin driver to refer to runtimes by component

2018-08-17 Thread Hans Wennborg via cfe-commits
Just a heads up that this broke the Chromium build on Mac: https://crbug.com/874997 Apparently we have some target that explicitly targets 10.5. I don't know if that's really necessary, but the fact that we ran into this at all suggests others will too, so maybe this change warrants a release note

[clang-tools-extra] r340009 - Fix clangd tests on older compilers

2018-08-17 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Fri Aug 17 03:40:05 2018 New Revision: 340009 URL: http://llvm.org/viewvc/llvm-project?rev=340009&view=rev Log: Fix clangd tests on older compilers Old versions of gcc struggle with raw string literals inside macros. Modified: clang-tools-extra/trunk/unittests/clangd/Co

[PATCH] D50337: [clangd] DexIndex implementation prototype

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 161202. kbobyrev marked 6 inline comments as done. kbobyrev added a comment. Address a round of comments. https://reviews.llvm.org/D50337 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/index/dex/DexIndex.cpp clang-tools-extra

[PATCH] D50839: [llvm] Optimize YAML::isNumeric

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 161204. kbobyrev added a comment. Add couple tests, fix formatting issues, use `__builtin_trap()` instead of `assert` in fuzzer so that it's more transparent. Also, fuzzing this unreadable version for a couple of hours suggests that it is valid. https://

[PATCH] D47196: [Time-report ](2): Recursive timers in Clang

2018-08-17 Thread Andrew V. Tischenko via Phabricator via cfe-commits
avt77 added a comment. In https://reviews.llvm.org/D47196#1202805, @efriedma wrote: > > :start: means the timer was started > > In some cases, the ChildTime is already non-zero at the "start" point; what > does that mean? It means there was recursive call and this child time should be removed

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

2018-08-17 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. I think testcases for non-class iterator objects would be valuable. Comment at: lib/StaticAnalyzer/Checkers/PointerSortingChecker.cpp:72-76 + auto IteratesPointerKeysM = hasType(cxxRecordDecl(has( +fieldDecl(hasType(ha

[PATCH] D50509: [analyzer][UninitializedObjectChecker] Refactoring p6.: Move dereferencing to a function

2018-08-17 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 161209. Szelethus edited the summary of this revision. https://reviews.llvm.org/D50509 Files: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp Index:

Re: r339807 - Refactor Darwin driver to refer to runtimes by component

2018-08-17 Thread Hans Wennborg via cfe-commits
Oh, and maybe the driver should diagnose if -mmacosx-version-min= is set too low? On Fri, Aug 17, 2018 at 12:38 PM, Hans Wennborg wrote: > Just a heads up that this broke the Chromium build on Mac: > https://crbug.com/874997 > > Apparently we have some target that explicitly targets 10.5. I don't

[PATCH] D50889: [clangd] Make FileIndex aware of the main file

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov planned changes to this revision. ilya-biryukov added a comment. As discussed offline, we could instead have a two-layer scheme for dynamic index. A top layer will contain main file symbols, second layer will contain preamble symbols. Repository: rCTE Clang Tools Extra https:/

[PATCH] D50847: [clangd] Add callbacks on parsed AST in addition to parsed preambles

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. Thanks for adding it. Comment at: clangd/TUScheduler.cpp:406 // We only need to build the AST if diagnostics were requested. if (WantDiags == WantDiagnostics::No) return; The AST might not get built if `WantDiags::No`, a

[PATCH] D50892: [analyzer][UninitializedObjectChecker] Correct dynamic type is acquired for record pointees

2018-08-17 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus created this revision. Szelethus added reviewers: george.karpenkov, NoQ, xazax.hun, rnkovacs. Herald added subscribers: cfe-commits, mikhail.ramalho, a.sidorin, szepet, whisperity. Repository: rC Clang https://reviews.llvm.org/D50892 Files: lib/StaticAnalyzer/Checkers/Uninitialize

[PATCH] D50892: [analyzer][UninitializedObjectChecker] Correct dynamic type is acquired for record pointees

2018-08-17 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: test/Analysis/cxx-uninitialized-object-inheritance.cpp:787 // TODO: we'd expect the note: {{uninitialized field 'this->x'}} int x; // no-note }; The checker should be able to catch this one -- for some reason it

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

2018-08-17 Thread Dmitry via Phabricator via cfe-commits
Dmitry.Kozhevnikov added a comment. In https://reviews.llvm.org/D50462#1203038, @vsapsai wrote: > Have you checked that produced AST is of sufficient quality to be used? > Because, for example, for invalid code error recovery tries to keep going but > the end result isn't always good. > In the

[PATCH] D48027: [analyzer] Improve `CallDescription` to handle c++ method.

2018-08-17 Thread Henry Wong via Phabricator via cfe-commits
MTC updated this revision to Diff 161217. MTC added a comment. - rebase - Since we have enhanced the ability of `CallDescription`, remove the helper method `isCalledOnStringObject()`. https://reviews.llvm.org/D48027 Files: include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h lib/Sta

[PATCH] D49793: [AArch64] - return address signing

2018-08-17 Thread Oliver Stannard via Phabricator via cfe-commits
olista01 accepted this revision. olista01 added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D49793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D48027: [analyzer] Improve `CallDescription` to handle c++ method.

2018-08-17 Thread Henry Wong via Phabricator via cfe-commits
MTC added a comment. In https://reviews.llvm.org/D48027#1201248, @xazax.hun wrote: > Generally looks good, I only wonder if this works well with inline > namespaces. Could you test? Probably it will. Thank you for reminding me! Yea, this can handle inline namespaces. However this approach has

[PATCH] D49793: [AArch64] - return address signing

2018-08-17 Thread Luke Cheeseman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340018: [AArch64] - Generate pointer authentication instructions (authored by LukeCheeseman, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D4

[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation

2018-08-17 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. In https://reviews.llvm.org/D50845#1202973, @ABataev wrote: > > So ideally I think Clang should determine which functions are really > > `declare target` (either explicit or implicit) and only run semantical > > analysis on them. If a function is then found to be "brok

r340019 - [AArch64] - return address signing

2018-08-17 Thread Luke Cheeseman via cfe-commits
Author: lukecheeseman Date: Fri Aug 17 05:55:05 2018 New Revision: 340019 URL: http://llvm.org/viewvc/llvm-project?rev=340019&view=rev Log: [AArch64] - return address signing - Add a command line options -msign-return-address to enable return address signing - Armv8.3a added instructions to sig

[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation

2018-08-17 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. In https://reviews.llvm.org/D50845#1203961, @Hahnfeld wrote: > In https://reviews.llvm.org/D50845#1202973, @ABataev wrote: > > > > So ideally I think Clang should determine which functions are really > > > `declare target` (either explicit or implicit) and only run seman

r340021 - [ThinLTO] Correct documentation on default number of threads

2018-08-17 Thread Teresa Johnson via cfe-commits
Author: tejohnson Date: Fri Aug 17 06:19:36 2018 New Revision: 340021 URL: http://llvm.org/viewvc/llvm-project?rev=340021&view=rev Log: [ThinLTO] Correct documentation on default number of threads Summary: The number of threads used for ThinLTO backend parallelism was dropped to the number of cor

[PATCH] D50882: [ThinLTO] Correct documentation on default number of threads

2018-08-17 Thread Teresa Johnson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340021: [ThinLTO] Correct documentation on default number of threads (authored by tejohnson, committed by ). Changed prior to commit: https://reviews.llvm.org/D50882?vs=161161&id=161223#toc Repository:

[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation

2018-08-17 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. In https://reviews.llvm.org/D50845#1203967, @ABataev wrote: > In https://reviews.llvm.org/D50845#1203961, @Hahnfeld wrote: > > > In https://reviews.llvm.org/D50845#1202973, @ABataev wrote: > > > > > > So ideally I think Clang should determine which functions are really

[PATCH] D50337: [clangd] DexIndex implementation prototype

2018-08-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-tools-extra/clangd/index/dex/DexIndex.cpp:86 + const auto TrigramTokens = generateIdentifierTrigrams(Req.Query); + TopLevelChildren.push_back(createAnd(createTrigramIterators(TrigramTokens))); + `createTrigramIter

[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation

2018-08-17 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. In https://reviews.llvm.org/D50845#1203973, @Hahnfeld wrote: > In https://reviews.llvm.org/D50845#1203967, @ABataev wrote: > > > In https://reviews.llvm.org/D50845#1203961, @Hahnfeld wrote: > > > > > In https://reviews.llvm.org/D50845#1202973, @ABataev wrote: > > > > > >

r340023 - clang-cl: Expose -fno-crash-diagnostics (PR38574)

2018-08-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 17 06:37:57 2018 New Revision: 340023 URL: http://llvm.org/viewvc/llvm-project?rev=340023&view=rev Log: clang-cl: Expose -fno-crash-diagnostics (PR38574) Modified: cfe/trunk/include/clang/Driver/Options.td cfe/trunk/test/Driver/cl-options.c Modified: cfe/trunk/

[PATCH] D50640: Fix for bug 38508 - Don't do PCH processing when only generating preprocessor output

2018-08-17 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340025: Fix for bug 38508 - Don't do PCH processing when only generating preprocessor… (authored by erichkeane, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://

r340025 - Fix for bug 38508 - Don't do PCH processing when only generating preprocessor output

2018-08-17 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Fri Aug 17 06:43:39 2018 New Revision: 340025 URL: http://llvm.org/viewvc/llvm-project?rev=340025&view=rev Log: Fix for bug 38508 - Don't do PCH processing when only generating preprocessor output This clang-cl driver change removes the PCH options when we are only gener

[PATCH] D50835: [clangd] Add parantheses while auto-completing functions.

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/CodeComplete.h:85 + + /// Enables cursor to be moved around according to completions needs even when + /// snippets are disabled. For example selecting a function with parameters as kadircet wrote: > ioe

[PATCH] D50876: Clean up newly created header

2018-08-17 Thread Louis Dionne via Phabricator via cfe-commits
ldionne accepted this revision. ldionne added a comment. This revision is now accepted and ready to land. LGTM with the `__clz` you missed. Comment at: include/bit:61 +inline _LIBCPP_INLINE_VISIBILITY +int __popcount(unsigned __x) { return __builtin_popcount (__x); }

[PATCH] D50876: Clean up newly created header

2018-08-17 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: include/bit:117 + unsigned long __where; // Search from LSB to MSB for first set bit. // Returns zero if no set bit is found. Like i commented in the original review, this should probably be ``` // Search from

[PATCH] D50814: [clangd] transfer the fixits with the notes instead of adding them to the main diagnostic if request by the client

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Why do we want an alternative mode for transferring fix-its and notes? Any reason why our current model is bad? One thing that comes to mind is inconsistency between clang and our model, but I wonder where would it affect the user experience in a bad way? Reposit

[PATCH] D50557: [clang][mips] Set __mips_fpr correctly for -mfpxx

2018-08-17 Thread Stefan Maksimovic via Phabricator via cfe-commits
smaksimovic updated this revision to Diff 161233. smaksimovic added a comment. Added test cases. https://reviews.llvm.org/D50557 Files: include/clang/Basic/DiagnosticCommonKinds.td lib/Basic/Targets/Mips.cpp lib/Basic/Targets/Mips.h test/Preprocessor/init.c Index: test/Preprocessor/ini

[PATCH] D50896: [clangd] Add xrefs LSP boilerplate implementation.

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added reviewers: ilya-biryukov, ioeric. Herald added subscribers: arphaman, jkorous, MaskRay. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50896 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServer.cpp clang

[PATCH] D50835: [clangd] Add parantheses while auto-completing functions.

2018-08-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/CodeComplete.cpp:1377 + // Check whether function has any parameters or not. + LSP.textEdit->newText += SnippetSuffix.size() > 2 ? "(${0})" : "()"; +else There seems to be no guarantee on whether the

[PATCH] D50337: [clangd] DexIndex implementation prototype

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 161235. kbobyrev marked 7 inline comments as done. kbobyrev added a comment. Address another round of comments. https://reviews.llvm.org/D50337 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/index/dex/DexIndex.cpp clang-tools

[PATCH] D50557: [clang][mips] Set __mips_fpr correctly for -mfpxx

2018-08-17 Thread Stefan Maksimovic via Phabricator via cfe-commits
smaksimovic added inline comments. Comment at: lib/Basic/Targets/Mips.cpp:62 +unsigned MipsTargetInfo::getISARev(const std::string& CPU) const { + return llvm::StringSwitch(getCPU()) atanasyan wrote: > The CPU argument looks unused. We can either remove it or

[PATCH] D50862: [clang-tidy] Abseil: faster strsplit delimiter check

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a subscriber: sbenza. hokein added a comment. Thanks for porting the check to upstream (context: the check was developed internally, and has been run on our codebase for a while, it is pretty stable). Could you please update the patch message to indicate this is a porting change, a

[PATCH] D50337: [clangd] DexIndex implementation prototype

2018-08-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Almost LG! Just a few more nits. Comment at: clang-tools-extra/clangd/index/dex/DexIndex.cpp:87 + std::vector SymbolDocIDs; + std::priority_queue> Top; + nit: move `SymbolDocIDs` and `Top` closer to where they're used. ==

[PATCH] D50897: [clangd] Allow using experimental Dex index

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added reviewers: ioeric, ilya-biryukov. kbobyrev added a project: clang-tools-extra. Herald added subscribers: arphaman, jkorous, MaskRay. This patch adds hidden Clangd flag which replaces (currently) default `MemIndex` with `DexIndex` for the static index

[PATCH] D50897: [clangd] Allow using experimental Dex index

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 161239. kbobyrev added a comment. Fix anonymous namespace beginning placement in Clangd driver. https://reviews.llvm.org/D50897 Files: clang-tools-extra/clangd/index/Index.h clang-tools-extra/clangd/index/MemIndex.cpp clang-tools-extra/clangd/index/M

[PATCH] D50502: [clangd] Initial cancellation mechanism for LSP requests.

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Mostly NITs, but please take a look at the `CancelParams` handling problem. I believe there might be a potential bug hiding there :-) Comment at: clangd/Cancellation.h:87 +/// Enables async tasks to check for cancellation signal, contains a read

[PATCH] D50898: Suggest code-completions for overriding base class virtual methods.

2018-08-17 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added reviewers: ilya-biryukov, hokein, ioeric. Herald added subscribers: cfe-commits, arphaman, jkorous. Whenever a code-completion is triggered within a class/struct/union looks at base classes and figures out non-overriden virtual functions. Than suggest

r340029 - [Preamble] Empty preamble is not an error.

2018-08-17 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 17 07:25:10 2018 New Revision: 340029 URL: http://llvm.org/viewvc/llvm-project?rev=340029&view=rev Log: [Preamble] Empty preamble is not an error. Summary: Empty preamble is valid for source file which doesn't have any preprocessor and #includes. This patch makes cla

[PATCH] D50628: [Preamble] Empty preamble is not an error.

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340029: [Preamble] Empty preamble is not an error. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D50628?vs=160319&id=161241#toc Repository: rC Clang https://

[PATCH] D50835: [clangd] Add parantheses while auto-completing functions.

2018-08-17 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 161243. kadircet added a comment. - Change option name. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50835 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h unittests/clangd/CodeCompleteTests.cpp Index: unittests/clangd/CodeCo

[PATCH] D50835: [clangd] Add parantheses while auto-completing functions.

2018-08-17 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet marked 3 inline comments as done. kadircet added inline comments. Comment at: clangd/CodeComplete.cpp:1377 + // Check whether function has any parameters or not. + LSP.textEdit->newText += SnippetSuffix.size() > 2 ? "(${0})" : "()"; +else i

[PATCH] D50896: [clangd] Add xrefs LSP boilerplate implementation.

2018-08-17 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/XRefs.cpp:665 +std::vector references(ParsedAST &AST, Position Pos, + bool IncludeDeclaration, + const SymbolIndex *Index) { Are we going to su

[PATCH] D50542: [clang-tidy] Add abseil-no-internal-deps check

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tidy/abseil/NoInternalDepsCheck.cpp:20 + +bool IsInAbseilFile(const SourceManager& manager, SourceLocation loc){ + if (loc.isInvalid()) { I think we can make it as an ASTMatcher instead of a function like: ``` AST

[PATCH] D50876: Clean up newly created header

2018-08-17 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added inline comments. Comment at: include/bit:117 + unsigned long __where; // Search from LSB to MSB for first set bit. // Returns zero if no set bit is found. lebedev.ri wrote: > Like i commented in the original review, this should probably b

[PATCH] D50259: [OpenCL] Disallow negative attribute arguments

2018-08-17 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Repository: rC Clang https://reviews.llvm.org/D50259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D50896: [clangd] Add xrefs LSP boilerplate implementation.

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/XRefs.cpp:665 +std::vector references(ParsedAST &AST, Position Pos, + bool IncludeDeclaration, + const SymbolIndex *Index) { ilya-biryukov wrote: > Ar

[clang-tools-extra] r340035 - [clangd] Add a testcase for empty preamble.

2018-08-17 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 17 07:55:57 2018 New Revision: 340035 URL: http://llvm.org/viewvc/llvm-project?rev=340035&view=rev Log: [clangd] Add a testcase for empty preamble. Summary: This is a patch of add a testcase for https://reviews.llvm.org/D50628. Reviewers: ilya-biryukov Subscribers:

[PATCH] D50627: [clangd] Add a testcase for empty preamble.

2018-08-17 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340035: [clangd] Add a testcase for empty preamble. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D50627 Files: clang-too

[PATCH] D50337: [clangd] DexIndex implementation prototype

2018-08-17 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 161252. kbobyrev marked 9 inline comments as done. kbobyrev added a comment. Address another round of comments. https://reviews.llvm.org/D50337 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/index/dex/DexIndex.cpp clang-tools

[PATCH] D50876: Clean up newly created header

2018-08-17 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added inline comments. Comment at: include/bit:61 +inline _LIBCPP_INLINE_VISIBILITY +int __popcount(unsigned __x) { return __builtin_popcount (__x); } + ldionne wrote: > Funny spacing between `__builtin_popcount` and `(__x)` It's actually t

[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation

2018-08-17 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. In https://reviews.llvm.org/D50845#1203991, @ABataev wrote: > In https://reviews.llvm.org/D50845#1203973, @Hahnfeld wrote: > > > In https://reviews.llvm.org/D50845#1203967, @ABataev wrote: > > > > > I thought about this approach already. But it won't work in general. The

[PATCH] D50901: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks

2018-08-17 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri created this revision. lebedev.ri added reviewers: rsmith, vsk, Sanitizers. lebedev.ri added projects: Sanitizers, clang. As per IRC disscussion, it seems we really want to have more fine-grained `-fsanitize=implicit-integer-truncation`: - A check when both of the types are unsigned.

[PATCH] D50259: [OpenCL] Disallow negative attribute arguments

2018-08-17 Thread Alexey Bader via Phabricator via cfe-commits
bader accepted this revision. bader added a comment. LGTM. Please, remove "Change-Id: I910b5c077f5f29e02a1572d9202f0fdbea5280fd" from the log message - it not relevant to the project. Repository: rC Clang https://reviews.llvm.org/D50259 ___ cfe-

[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation

2018-08-17 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. > Right, warning wasn't a good thought. We really want strict checking and > would have to error out when we find a function that wasn't implicitly > `declare target` on the host. > I meant to ask how common that would be? If that's only some known functions > we could

[PATCH] D50835: [clangd] Add parantheses while auto-completing functions.

2018-08-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/CodeComplete.cpp:1377 + // Check whether function has any parameters or not. + LSP.textEdit->newText += SnippetSuffix.size() > 2 ? "(${0})" : "()"; +else kadircet wrote: > ioeric wrote: > > There seem

[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation

2018-08-17 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. In https://reviews.llvm.org/D50845#1204210, @ABataev wrote: > > Right, warning wasn't a good thought. We really want strict checking and > > would have to error out when we find a function that wasn't implicitly > > `declare target` on the host. > > I meant to ask how

[PATCH] D50835: [clangd] Add parantheses while auto-completing functions.

2018-08-17 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 161256. kadircet added a comment. - Only append to snippets of type function or method. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50835 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h unittests/clangd/CodeCompleteTests.cpp

[PATCH] D50337: [clangd] DexIndex implementation prototype

2018-08-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-tools-extra/clangd/index/dex/DexIndex.cpp:97 +} +// FIXME(kbobyrev): Add True iterator as soon as it's implemented otherwise. +// If TopLevelChildren vector will be empty it will trigger an assertion. A

  1   2   3   >