Re: [clang-tools-extra] r319557 - [clangd] Fuzzy match scorer

2017-12-01 Thread Galina Kistanova via cfe-commits
Hello Sam, This commit broke one of our bots: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/18908 . . . FAILED: tools/clang/tools/extra/clangd/CMakeFiles/clangDaemon.dir/FuzzyMatch.cpp.o /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__S

[PATCH] D40673: Add _Float128 as alias to __float128 to enable compilations on Fedora27/glibc2-26

2017-12-01 Thread Melanie Blower via Phabricator via cfe-commits
mibintc updated this revision to Diff 125211. mibintc added a comment. I changed the patch to enable _Float128 only as keyword in mode "nocxx" - this is the same mode being used by _Bool. I changed the test from .cpp to .c; I run check-all and saw only the usual suspects fail. What do you think

r319584 - [c++17] When deducing the type of a non-type template parameter from the type

2017-12-01 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 1 13:24:36 2017 New Revision: 319584 URL: http://llvm.org/viewvc/llvm-project?rev=319584&view=rev Log: [c++17] When deducing the type of a non-type template parameter from the type of its argument, perform function-to-pointer and array-to-pointer decay on the paramete

[PATCH] D35894: [clangd] Code hover for Clangd

2017-12-01 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added inline comments. Comment at: clangd/Protocol.h:26 #include "llvm/ADT/Optional.h" -#include +#include "llvm/Support/YAMLParser.h" #include Nebiroth wrote: > malaperle wrote: > > revert this change? > #include is not needed. I meant removing YA

[PATCH] D40682: [driver] Set the 'simulator' environment for Darwin when -msimulator-version-min is used

2017-12-01 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 125214. arphaman marked an inline comment as done. arphaman added a comment. Add "-simulator" environment even when `-m*simulator-version-min` isn't used using the arch/OS heuristic. Repository: rC Clang https://reviews.llvm.org/D40682 Files: include

r319585 - [OPENMP] Emit `__tgt_target_teams` for all teams directives.

2017-12-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Dec 1 13:31:08 2017 New Revision: 319585 URL: http://llvm.org/viewvc/llvm-project?rev=319585&view=rev Log: [OPENMP] Emit `__tgt_target_teams` for all teams directives. Previously we emitted `__tgt_target_teams` only for standalone teams directives. This patch allows emi

[PATCH] D36892: [clang-tidy] check_clang_tidy.py: support CHECK-NOTES prefix

2017-12-01 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. @alexfh any thoughts on this one? Repository: rL LLVM https://reviews.llvm.org/D36892 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40580: [clang-tidy] Adding Fuchsia checker for multiple inheritance

2017-12-01 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett updated this revision to Diff 125215. juliehockett marked 7 inline comments as done. juliehockett added a comment. Updating tests https://reviews.llvm.org/D40580 Files: clang-tidy/fuchsia/CMakeLists.txt clang-tidy/fuchsia/FuchsiaTidyModule.cpp clang-tidy/fuchsia/MultipleInher

[PATCH] D40580: [clang-tidy] Adding Fuchsia checker for multiple inheritance

2017-12-01 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added inline comments. Comment at: clang-tidy/fuchsia/MultipleInheritanceCheck.cpp:60 + // To be an interface, all base classes must be interfaces as well. + for (const auto &I : Node->bases()) { +const auto *Ty = I.getType()->getAs(); aaron.ba

[PATCH] D40671: [clang-tidy] Support specific checks for NOLINT directive

2017-12-01 Thread Anton via Phabricator via cfe-commits
xgsa updated this revision to Diff 125216. xgsa added a comment. Minor change: update default value of SmallVector of check names. https://reviews.llvm.org/D40671 Files: clang-tidy/ClangTidyDiagnosticConsumer.cpp docs/ReleaseNotes.rst docs/clang-tidy/index.rst test/clang-tidy/nolint.cpp

LLVM buildmaster will be OFF today at 3 PM Pacific for maintenance

2017-12-01 Thread Galina Kistanova via cfe-commits
Galina Hello everyone, LLVM buildmaster will be OFF today at 3 PM Pacific for maintenance for about half an hour. Thank you for for understanding. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

[PATCH] D35894: [clangd] Code hover for Clangd

2017-12-01 Thread William Enright via Phabricator via cfe-commits
Nebiroth added inline comments. Comment at: clangd/Protocol.h:26 #include "llvm/ADT/Optional.h" -#include +#include "llvm/Support/YAMLParser.h" #include malaperle wrote: > Nebiroth wrote: > > malaperle wrote: > > > revert this change? > > #include is not nee

[PATCH] D40700: [ubsan] Diagnose noreturn functions which return (compiler-rt)

2017-12-01 Thread Vedant Kumar via Phabricator via cfe-commits
vsk updated this revision to Diff 125220. vsk added a comment. - Update to test diagnostics seen after a call to the noreturn function. https://reviews.llvm.org/D40700 Files: lib/ubsan/ubsan_handlers.cc test/ubsan/TestCases/Misc/Inputs/returns-unexpectedly.c test/ubsan/TestCases/Misc/unre

[PATCH] D40698: [ubsan] Diagnose noreturn functions which return

2017-12-01 Thread Vedant Kumar via Phabricator via cfe-commits
vsk updated this revision to Diff 125221. vsk edited the summary of this revision. vsk added a comment. - Diagnose in the scenario Eli pointed out, by stripping the 'noreturn' attribute and emitting a check after the call. - Test updates. https://reviews.llvm.org/D40698 Files: docs/Undefined

r319589 - [AST] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).

2017-12-01 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Fri Dec 1 14:04:49 2017 New Revision: 319589 URL: http://llvm.org/viewvc/llvm-project?rev=319589&view=rev Log: [AST] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). Modified: cfe/trunk/include/clang/AST/DeclContextInterna

[PATCH] D39694: [VerifyDiagnosticConsumer] support -verify=

2017-12-01 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny updated this revision to Diff 125223. jdenny added a comment. Rebased on master/trunk fetched today. https://reviews.llvm.org/D39694 Files: include/clang/Basic/DiagnosticDriverKinds.td include/clang/Basic/DiagnosticOptions.h include/clang/Driver/CC1Options.td lib/Frontend/Compile

[PATCH] D40746: Correctly handle line directives without filenames that come first in the file

2017-12-01 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. The intent is to use a `FilenameID` of -1 to represent this situation; see the documentation of the `LineEntry::FilenameID` member. Users of that field are expected to deal with that value (see the handling of that case in `SourceManager::getPresumedLoc` for example). I

[PATCH] D35894: [clangd] Code hover for Clangd

2017-12-01 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 125224. Nebiroth added a comment. Minor code cleanup Merge with master Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D35894 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServer.cpp clangd/ClangdServer.h

[PATCH] D39455: [CodeGen] Add initial support for union members in TBAA

2017-12-01 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin added a comment. After this patch, a couple of gcc torture tests started to fail. Could you possibly look at this? https://bugs.llvm.org/show_bug.cgi?id=35503 Repository: rL LLVM https://reviews.llvm.org/D39455 ___ cfe-commits mailing li

[PATCH] D40673: Add _Float128 as alias to __float128 to enable compilations on Fedora27/glibc2-26

2017-12-01 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: lib/Frontend/InitPreprocessor.cpp:817 DefineFloatMacros(Builder, "LDBL", &TI.getLongDoubleFormat(), "L"); + DefineFloatMacros(Builder, "FLT128", &TI.getFloat128Format(), "Q"); + GCC //does// define the

[PATCH] D40746: Correctly handle line directives without filenames that come first in the file

2017-12-01 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In https://reviews.llvm.org/D40746#942824, @rsmith wrote: > The intent is to use a `FilenameID` of -1 to represent this situation; see > the documentation of the `LineEntry::FilenameID` member. Users of that field > are expected to deal with that value (see the handling of

[PATCH] D38425: [clangd] Document highlights for clangd

2017-12-01 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 125228. Nebiroth added a comment. Minor code cleanup unparse and parse methods for JSON are updated Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D38425 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServer.c

[PATCH] D40746: Correctly handle line table entries without filenames during AST serialization

2017-12-01 Thread Hans Wennborg via Phabricator via cfe-commits
hans updated this revision to Diff 125227. hans retitled this revision from "Correctly handle line directives without filenames that come first in the file" to "Correctly handle line table entries without filenames during AST serialization". hans edited the summary of this revision. https://revi

r319593 - [CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics

2017-12-01 Thread Sanjay Patel via cfe-commits
Author: spatel Date: Fri Dec 1 15:15:52 2017 New Revision: 319593 URL: http://llvm.org/viewvc/llvm-project?rev=319593&view=rev Log: [CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics There are 20 LLVM math intrinsics that correspond to mathlib calls according to the LangRef:

[PATCH] D40044: [CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics

2017-12-01 Thread Sanjay Patel via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL319593: [CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics (authored by spatel). Changed prior to commit: https://reviews.llvm.org/D40044?vs=122881&id=125230#toc Repository: rL LL

[PATCH] D40044: [CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics

2017-12-01 Thread Sanjay Patel via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC319593: [CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics (authored by spatel). Repository: rC Clang https://reviews.llvm.org/D40044 Files: lib/CodeGen/CGBuiltin.cpp test/Code

r319594 - [AST] Try to fix build bot with modules broken r319589. However real fix may belong to other place.

2017-12-01 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Fri Dec 1 15:23:28 2017 New Revision: 319594 URL: http://llvm.org/viewvc/llvm-project?rev=319594&view=rev Log: [AST] Try to fix build bot with modules broken r319589. However real fix may belong to other place. Modified: cfe/trunk/include/clang/AST/DeclContextInt

[PATCH] D40568: design document for a hardware-assisted memory safety (HWAMS) tool, similar to AddressSanitizer

2017-12-01 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis accepted this revision. eugenis added a comment. This revision is now accepted and ready to land. Looks great! Repository: rC Clang https://reviews.llvm.org/D40568 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D40625: Harmonizing attribute GNU/C++ spellings

2017-12-01 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added inline comments. Comment at: include/clang/Basic/Attr.td:602 def AnalyzerNoReturn : InheritableAttr { - let Spellings = [GNU<"analyzer_noreturn">]; + let Spellings = [Clang<"analyzer_noreturn">]; let Documentation = [Undocumented]; aaron.bal

[PATCH] D20124: [PCH] Serialize skipped preprocessor ranges

2017-12-01 Thread Cameron via Phabricator via cfe-commits
cameron314 added a comment. Brilliant, didn't know `isInPreambleFileID` existed. All my tests pass for me now with that change, thanks :-) I'll update the patch on Monday. https://reviews.llvm.org/D20124 ___ cfe-commits mailing list cfe-commits@lis

r319601 - Move comment back to being next to the code it's a comment for.

2017-12-01 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 1 16:55:48 2017 New Revision: 319601 URL: http://llvm.org/viewvc/llvm-project?rev=319601&view=rev Log: Move comment back to being next to the code it's a comment for. Modified: cfe/trunk/lib/AST/Decl.cpp Modified: cfe/trunk/lib/AST/Decl.cpp URL: http://llvm.org

[PATCH] D40762: [CMake] Don't use comma as an alternate separator

2017-12-01 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Herald added a subscriber: mgorny. Using comma can break in cases when we're passing flags that already use comma as a separator. Fixes PR35504. Repository: rC Clang https://reviews.llvm.org/D40762 Files: CMakeLists.txt Index: CMakeLists.txt ===

[clang-tools-extra] r319604 - [clangd] Try to appease gcc constexpr bug (58541)

2017-12-01 Thread Sam McCall via cfe-commits
Author: sammccall Date: Fri Dec 1 18:28:29 2017 New Revision: 319604 URL: http://llvm.org/viewvc/llvm-project?rev=319604&view=rev Log: [clangd] Try to appease gcc constexpr bug (58541) Modified: clang-tools-extra/trunk/clangd/FuzzyMatch.cpp Modified: clang-tools-extra/trunk/clangd/FuzzyMatc

Re: [clang-tools-extra] r319557 - [clangd] Fuzzy match scorer

2017-12-01 Thread Sam McCall via cfe-commits
Apologies. This is a GCC bug I wasn't familiar with, and my first guess at a fix was wrong. (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58541) r319604 should fix this. On Fri, Dec 1, 2017 at 10:20 PM, Galina Kistanova wrote: > Hello Sam, > > This commit broke one of our bots: > http://lab.llvm

r319605 - PR35456: Track definedness of variable template specializations separately from

2017-12-01 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Dec 1 18:48:42 2017 New Revision: 319605 URL: http://llvm.org/viewvc/llvm-project?rev=319605&view=rev Log: PR35456: Track definedness of variable template specializations separately from whether they have an initializer. We cannot distinguish between a declaration of a v

RE: [clang-tools-extra] r319557 - [clangd] Fuzzy match scorer

2017-12-01 Thread Yung, Douglas via cfe-commits
Hi Sam, the FuzzyMatch tests you added in this commit seem to be failing on the Windows bot: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/13869 Can you take a look? Douglas Yung > -Original Message- > From: cfe-commits [mailto:cfe-commits-bo

[clang-tools-extra] r319606 - [clangd] Fix FuzzyMatch tests on windows, NFC

2017-12-01 Thread Sam McCall via cfe-commits
Author: sammccall Date: Fri Dec 1 19:35:19 2017 New Revision: 319606 URL: http://llvm.org/viewvc/llvm-project?rev=319606&view=rev Log: [clangd] Fix FuzzyMatch tests on windows, NFC Without specifying the signedness of the underlying type for Action, packing it in a 1-bit field may restrict its r

Re: [clang-tools-extra] r319557 - [clangd] Fuzzy match scorer

2017-12-01 Thread Sam McCall via cfe-commits
r319606 should fix that one, if I've understood the problem right. On Sat, Dec 2, 2017 at 3:50 AM, Yung, Douglas wrote: > Hi Sam, the FuzzyMatch tests you added in this commit seem to be failing > on the Windows bot: > > http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_ > 64-scei-ps4-windows

[clang-tools-extra] r319608 - [clangd] Avoid enum in bitfields, can't satisfy old GCC and new MSVC

2017-12-01 Thread Sam McCall via cfe-commits
Author: sammccall Date: Fri Dec 1 20:15:55 2017 New Revision: 319608 URL: http://llvm.org/viewvc/llvm-project?rev=319608&view=rev Log: [clangd] Avoid enum in bitfields, can't satisfy old GCC and new MSVC Modified: clang-tools-extra/trunk/clangd/FuzzyMatch.h Modified: clang-tools-extra/trunk

Re: [clang-tools-extra] r319557 - [clangd] Fuzzy match scorer

2017-12-01 Thread Sam McCall via cfe-commits
Great! Unfortunately it broke old GCC, and it doesn't seem possible to satisfy both. So r319608 removes the enum altogether. On Sat, Dec 2, 2017 at 4:54 AM, Yung, Douglas wrote: > That fixed it, thanks! > > > > Douglas Yung > > > > *From:* Sam McCall [mailto:sam.mcc...@gmail.com] > *Sent:* Frida

Re: r319297 - Toolchain: Normalize dwarf, sjlj and seh eh

2017-12-01 Thread Martell Malone via cfe-commits
Just catching up on this now. r319363 looks good to me, It makes little sense to use GNU SEH in that case. My remaining concern is mostly about why we still need the workaround for > x86 in the function getting the default (returning None instead of WinEH > for that case). But as long as this work

<    1   2