[PATCH] D40072: [libclang] Support querying whether a declaration is invalid

2017-11-21 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik added a comment. Ping https://reviews.llvm.org/D40072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r318818 - Add some tests for operations on const associative containers. Part of LWG#2542

2017-11-21 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Nov 21 22:02:27 2017 New Revision: 318818 URL: http://llvm.org/viewvc/llvm-project?rev=318818&view=rev Log: Add some tests for operations on const associative containers. Part of LWG#2542 Modified: libcxx/trunk/test/std/containers/associative/map/map.cons/compare.pa

[PATCH] D40224: [X86] Control-Flow Enforcement Technology - Shadow Stack and Indirect Branch Tracking support (Clang side)

2017-11-21 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: include/clang/Basic/BuiltinsX86_64.def:63 TARGET_BUILTIN(__builtin_ia32_xsaves64, "vv*ULLi", "", "xsaves") +TARGET_BUILTIN(__builtin_ia32_incsspq, "vULLi","u","shstk") +TARGET_BUILTIN(__builtin_ia32_rdsspq, "ULLiULLi","Un","shstk")

[PATCH] D35470: [libcxx] Implement std::to_address for C++20

2017-11-21 Thread Glen Fernandes via Phabricator via cfe-commits
glenjofe added a comment. Thanks Eric. Can you commit on my behalf? https://reviews.llvm.org/D35470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40144: Implement `std::launder`

2017-11-21 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists updated this revision to Diff 123877. mclow.lists added a comment. `_VSTD::` qualify the call to `__launder`. De-dup error messages in test. https://reviews.llvm.org/D40144 Files: include/__config include/new test/std/language.support/support.dynamic/ptr.launder/launder.nodis

[PATCH] D40144: Implement `std::launder`

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: test/std/language.support/support.dynamic/ptr.launder/launder.nodiscard.fail.cpp:16 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7, clang-3.8 +

[PATCH] D40144: Implement `std::launder`

2017-11-21 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added inline comments. Comment at: test/std/language.support/support.dynamic/ptr.launder/launder.nodiscard.fail.cpp:16 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7, clang-3.8 +

[PATCH] D40329: [CMake][Fuchsia] Disable terminfo database in Fuchsia toolchain

2017-11-21 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Herald added a subscriber: mgorny. It's used to determine whether terminal supports colors, but within LLVM it's only used in handful of places and in Clang it's only used in AST dumper, otherwise Clang relies on the -fcolor-diagnostics flag which we pass explicitly f

[PATCH] D40144: Implement `std::launder`

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: include/new:274 +{ +return __launder(__p); +} The call should probably be qualified to `_VSTD::__launder`. Comment at: test/std/language.support/support.dynamic/ptr.launder/launder.nodiscard.fail.c

Re: [PATCH] D40073: [Analyzer] Non-determinism: don't sort indirect goto LabelDecl's by addresses

2017-11-21 Thread Grang, Mandeep Singh via cfe-commits
We have a buildbot setup to uncover such cases of non-determinism: http://lab.llvm.org:8011/builders/reverse-iteration The idea is to iterate unordered containers in reverse to weed out pointer ordering issues. Another instance of non-determinism is relative ordering of elements with the sam

[PATCH] D40073: [Analyzer] Non-determinism: don't sort indirect goto LabelDecl's by addresses

2017-11-21 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. For clang itself I think we also use a stage-2 clang to build the same version of clang and make sure that it matches the stage-2 clang. This doesn't help for the analyzer though. Repository: rL LLVM https://reviews.llvm.org/D40073 _

[PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318816: [Driver] Make the use of relax relocations a per target option (authored by phosek). Changed prior to commit: https://reviews.llvm.org/D39831?vs=123838&id=123870#toc Repository: rL LLVM http

r318816 - [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Nov 21 17:38:31 2017 New Revision: 318816 URL: http://llvm.org/viewvc/llvm-project?rev=318816&view=rev Log: [Driver] Make the use of relax relocations a per target option The support for relax relocations is dependent on the linker and different toolchains within the same

[PATCH] D40324: [libcxx] [test] Resolve C1XX warning in new vector::size tests caused by assert(true)

2017-11-21 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. D'Oh - that was a paste that went wrong. You are correct that `assert(c.size() == 3)` is correct. However, what I was *trying* to fix were the lines before. Pushing a `3` into a `vector` is not the best idea L#34 and L#53 should both read `c.push_back(true);` https

r318815 - [X86] Update CPUSupports code to reuse LLVM .def file [NFC]

2017-11-21 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Tue Nov 21 16:54:01 2017 New Revision: 318815 URL: http://llvm.org/viewvc/llvm-project?rev=318815&view=rev Log: [X86] Update CPUSupports code to reuse LLVM .def file [NFC] Modified: cfe/trunk/lib/Basic/Targets/X86.cpp cfe/trunk/lib/CodeGen/CGBuiltin.cpp Modified:

[PATCH] D40228: [Target] Make a copy of TargetOptions feature list before sorting during CodeGen

2017-11-21 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 123862. craig.topper retitled this revision from "[Target] Keep the TargetOptions feature list sorted instead of sorting during CodeGen" to "[Target] Make a copy of TargetOptions feature list before sorting during CodeGen". craig.topper edited the summar

Re: [PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Rafael Avila de Espindola via cfe-commits
Petr Hosek writes: > That's the Fuchsia CMake cache file which is used to build Fuchsia > toolchain, it's not needed there anymore because Fuchsia Clang driver now > handles this. I haven't touched Clang's CMakeLists.txt which defines > the ENABLE_X86_RELAX_RELOCATIONS option. Oops, I guess I sh

Re: r318692 - [OpenMP] Initial implementation of code generation for pragma 'teams distribute parallel for' on host

2017-11-21 Thread Carlo Bertolli via cfe-commits
Hi Douglas   Thanks for letting me know - I was not notified by bbot about this. Thanks to Jonas too. I will keep looking at the bbot to see if this resurfaces.   Thanks!   -- Carlo   - Original message -From: Jonas Hahnfeld To: "Yung, Douglas" Cc: Carlo Bertolli , cfe-commits Subject: Re:

Re: [PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Petr Hosek via cfe-commits
That's the Fuchsia CMake cache file which is used to build Fuchsia toolchain, it's not needed there anymore because Fuchsia Clang driver now handles this. I haven't touched Clang's CMakeLists.txt which defines the ENABLE_X86_RELAX_RELOCATIONS option. On Tue, Nov 21, 2017 at 3:14 PM Rafael Avila de

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

2017-11-21 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Tue Nov 21 15:26:08 2017 New Revision: 318813 URL: http://llvm.org/viewvc/llvm-project?rev=318813&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/DeclarationName.h

[PATCH] D40325: add new check to find OSSpinlock usage

2017-11-21 Thread Yan Zhang via Phabricator via cfe-commits
Wizard updated this revision to Diff 123860. Wizard added a comment. add doc to header file https://reviews.llvm.org/D40325 Files: clang-tidy/objc/AvoidSpinlockCheck.cpp clang-tidy/objc/AvoidSpinlockCheck.h clang-tidy/objc/CMakeLists.txt clang-tidy/objc/ObjCTidyModule.cpp docs/Release

Re: [PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Rafael Avila de Espindola via cfe-commits
I am probably missing something, but the patch has -# This is a "Does your linker support it?" option that only applies -# to x86-64 ELF targets. All Fuchsia target linkers do support it. -# For x86-64 Linux, it's supported by LLD and by GNU linkers since -# binutils 2.27, so one can hope that al

Re: r318692 - [OpenMP] Initial implementation of code generation for pragma 'teams distribute parallel for' on host

2017-11-21 Thread Jonas Hahnfeld via cfe-commits
Hi, these failures were probably introduced by r318789, Richard Trieu should have fixed them in r318811. http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/20991 is already green ;-) Jonas Am 2017-11-21 17:37, schrieb Yung, Douglas via cfe-commits: Hi Carlo,

[PATCH] D40108: [clang-tidy] Adding Fuchsia checkers to clang-tidy

2017-11-21 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett updated this revision to Diff 123857. juliehockett marked 6 inline comments as done. juliehockett added a comment. Disabled the fix-it for `getDefaultArgRange()` that returns an empty range and for default args that come from a macro. https://reviews.llvm.org/D40108 Files: clang

[PATCH] D40324: [libcxx] [test] Resolve C1XX warning in new vector::size tests caused by assert(true)

2017-11-21 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal closed this revision. BillyONeal added a comment. Committed r318812 https://reviews.llvm.org/D40324 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40108: [clang-tidy] Adding Fuchsia checkers to clang-tidy

2017-11-21 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. We're going to go with fuchsia-* for the module name, since the style applies to the broader project. Also, there may be zircon-specific checks at some point, so we want to leave the door open for that. Comment at: clang-tidy/fuchsia/DefaultArgum

[libcxx] r318812 - Replace assert(true) in tests with actual asserts. Reviewed as https://reviews.llvm.org/D40324

2017-11-21 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Tue Nov 21 15:03:02 2017 New Revision: 318812 URL: http://llvm.org/viewvc/llvm-project?rev=318812&view=rev Log: Replace assert(true) in tests with actual asserts. Reviewed as https://reviews.llvm.org/D40324 In a17cd7c641c34b6c4bd4845a4d4fb590cb6c238c Marshall added assert(true

r318811 - [OpenMP] Fix tests after r318789

2017-11-21 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Tue Nov 21 14:53:19 2017 New Revision: 318811 URL: http://llvm.org/viewvc/llvm-project?rev=318811&view=rev Log: [OpenMP] Fix tests after r318789 Update use of __tgt_target that had some 32bit types updated to 64bit. Modified: cfe/trunk/test/OpenMP/teams_distribute_parall

[PATCH] D40324: [libcxx] [test] Resolve C1XX warning in new vector::size tests caused by assert(true)

2017-11-21 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal created this revision. In a17cd7c641c34b6c4bd4845a4d4fb590cb6c238c Marshall added assert(true) to the vector::size tests, which break on C1XX: D:\Contest\gl0qojfu.5pe\src\qa\vc\libs\libcxx\upstream\test\std\containers\sequences\vector.bool\size.pass.cpp(62): error C2220: warning treat

[PATCH] D40323: [libcxx] Remove a broken win32 locale function redirection

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318810: Remove a broken win32 locale function redirection (authored by mstorsjo). Changed prior to commit: https://reviews.llvm.org/D40323?vs=123851&id=123852#toc Repository: rL LLVM https://reviews

[libcxx] r318810 - Remove a broken win32 locale function redirection

2017-11-21 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Nov 21 14:41:15 2017 New Revision: 318810 URL: http://llvm.org/viewvc/llvm-project?rev=318810&view=rev Log: Remove a broken win32 locale function redirection One can't replace vsscanf(_l) with a sscanf(_l) that doesn't take a va_list. This has been untouched since it w

[clang-tools-extra] r318809 - Silence some MSVC warnings about not all control paths returning a value; NFC.

2017-11-21 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Nov 21 14:24:13 2017 New Revision: 318809 URL: http://llvm.org/viewvc/llvm-project?rev=318809&view=rev Log: Silence some MSVC warnings about not all control paths returning a value; NFC. Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp clang-tools-extra

[PATCH] D40323: [libcxx] Remove a broken win32 locale function redirection

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo created this revision. One can't replace vsscanf(_l) with a sscanf(_l) that doesn't take a va_list. This has been untouched since it was added in SVN r140728, so apparently it hasn't been used since. One reason for this mistake originally might have been that there was no _vsscanf_l un

[PATCH] D29951: Load lazily the template specialization in multi-module setups.

2017-11-21 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. For the record: relanded in r306903. https://reviews.llvm.org/D29951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r318808 - Add missing test_macros.h inclusion.

2017-11-21 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Tue Nov 21 14:16:57 2017 New Revision: 318808 URL: http://llvm.org/viewvc/llvm-project?rev=318808&view=rev Log: Add missing test_macros.h inclusion. Modified: libcxx/trunk/test/std/re/re.grammar/excessive_brace_count.pass.cpp Modified: libcxx/trunk/test/std/re/re.grammar/e

Re: [PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Petr Hosek via cfe-commits
I kept the CMake option, so by default the driver will use the value set through CMake as before but individual targets can now set their platform default. On Tue, Nov 21, 2017 at 1:30 PM Rafael Avila de Espindola < rafael.espind...@gmail.com> wrote: > Petr Hosek via Phabricator writes: > > > >

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

2017-11-21 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 123848. Nebiroth added a comment. Removed some commented lines and temporary code Streamlined and removed some code that overlaps/conflicts with code hover patch so it's easier to merge (patch https://reviews.llvm.org/D35894) https://reviews.llvm.org/D3842

[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh

2017-11-21 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Yep, looks good Repository: rL LLVM https://reviews.llvm.org/D39673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. No objection from me about committing this now, although I have some minor comments (that possibly can be taken care of without reposting and re-reviewing). Still ok with @rnk? Comment at: lib/Frontend/InitPreprocessor.cpp:686 + else if ((TI.getTrip

[PATCH] D40065: [libcxx] [test] Change (void)s to TEST_IGNORE_NODISCARD as requested by Eric.

2017-11-21 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal closed this revision. BillyONeal added a comment. Committed r318804 https://reviews.llvm.org/D40065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r318804 - Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065

2017-11-21 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Tue Nov 21 13:37:26 2017 New Revision: 318804 URL: http://llvm.org/viewvc/llvm-project?rev=318804&view=rev Log: Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065 Modified: libcxx/trunk/test/std/algorithms/alg.n

[PATCH] D40319: [libcxx] Support getentropy as a source of randomness for std::random_device

2017-11-21 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr accepted this revision. mcgrathr added a comment. This revision is now accepted and ready to land. LGTM Repository: rL LLVM https://reviews.llvm.org/D40319 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

Re: [PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Rafael Avila de Espindola via cfe-commits
Petr Hosek via Phabricator writes: > -# This is a "Does your linker support it?" option that only applies > -# to x86-64 ELF targets. All Fuchsia target linkers do support it. > -# For x86-64 Linux, it's supported by LLD and by GNU linkers since > -# binutils 2.27, so one can hope that all Linu

[PATCH] D40319: [libcxx] Support getentropy as a source of randomness for std::random_device

2017-11-21 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Use this source use on Fuchsia where this is the officially way to obtain randomness. This could be also used on other platforms that already support getentropy such as *BSD or Linux. Repository: rL LLVM https://reviews.llvm.org/D40319 Files: include/__config

[PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr accepted this revision. mcgrathr added a comment. This revision is now accepted and ready to land. LGTM Repository: rL LLVM https://reviews.llvm.org/D39831 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

[PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 123838. phosek added a comment. Added a test case. Repository: rL LLVM https://reviews.llvm.org/D39831 Files: cmake/caches/Fuchsia-stage2.cmake include/clang/Driver/ToolChain.h lib/Driver/ToolChain.cpp lib/Driver/ToolChains/Clang.cpp lib/Driver/

Re: [PATCH] D36836: [clang-tidy] Implement sonarsource-function-cognitive-complexity check

2017-11-21 Thread Daniel Berlin via cfe-commits
Yes, unfortnuately, i just have no time these days with my new role. Sorry. I'm trying to keep up with reviews where i can, but i'm prioritizing those that are absolutely blocked on me (and trying to hand those off). On Tue, Nov 21, 2017 at 11:11 AM, Roman Lebedev via Phabricator < revi...@revie

[PATCH] D40224: [X86] Control-Flow Enforcement Technology - Shadow Stack and Indirect Branch Tracking support (Clang side)

2017-11-21 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon updated this revision to Diff 123835. oren_ben_simhon marked an inline comment as done. oren_ben_simhon added a comment. Implemented comments posted until 11/20 (Thanks Craig and Erich). Repository: rL LLVM https://reviews.llvm.org/D40224 Files: include/clang/Basic/Builtins

[PATCH] D24998: Add a new optimization option -Og

2017-11-21 Thread Tor Arne Vestbø via Phabricator via cfe-commits
torarnv added a comment. This seems to have hit a recent Xcode toolchain (Xcode 9.1 ?). Xcode now complains that "[app name] was compiled with optimization - stepping may behave oddly; variables may not be available.", when launching a debug session, which seems to be the case, debugging is all

[PATCH] D40224: [X86] Control-Flow Enforcement Technology - Shadow Stack and Indirect Branch Tracking support (Clang side)

2017-11-21 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon marked 8 inline comments as done. oren_ben_simhon added inline comments. Comment at: include/clang/Driver/Options.td:1801 def mno_stackrealign : Flag<["-"], "mno-stackrealign">, Group; +def mno_cet : Flag<["-"], "mno-cet">, Group; +def mno_shstk : Flag<["-"], "mn

[PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-21 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr added a comment. test case? Repository: rL LLVM https://reviews.llvm.org/D39831 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40242: Do not perform the analysis based warning if all warnings are ignored

2017-11-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D40242 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D39886: [ASTImporter] Fix wrong conflict detections for unnamed structures

2017-11-21 Thread Takafumi Kubota via Phabricator via cfe-commits
tk1012 added a comment. Hello Aleksei, Unfortunately, I find the related problem with the unnamed structs/unions, even if I apply https://reviews.llvm.org/D39886. For example, in PostgreSQL, there is a part of code like below. typedef struct { int a; } b; struct { const char *x; } y;

[PATCH] D39722: [ASTImporter] Support TypeTraitExpr Importing

2017-11-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/AST/ASTImporter.cpp:5622 + SmallVector ToArgVec; + for (auto FromArg : E->getArgs()) { +TypeSourceInfo *ToTI = Importer.Import(FromArg); `const auto *`? Comment at: lib/AST/ASTImporter.

RE: [clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Yung, Douglas via cfe-commits
Hi Sam, Thanks for the quick fixes! Fingers crossed that it all works now! Douglas Yung From: Sam McCall [mailto:sam.mcc...@gmail.com] Sent: Tuesday, November 21, 2017 11:39 To: Yung, Douglas Cc: cfe-commits Subject: Re: [clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to

Re: [clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via cfe-commits
Hi Douglas, The unicode issue is fixed in r318793 and the div0 in r318798. Sorry about that! On Tue, Nov 21, 2017 at 8:20 PM, Yung, Douglas wrote: > Hi Sam, > > > > Thanks for looking into this. Just to clarify, the real issue is the > divide by zero errors. The encoding related messages are onl

[clang-tools-extra] r318798 - [clangd] avoid divide by literal zero to satisfy msvc

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 11:37:35 2017 New Revision: 318798 URL: http://llvm.org/viewvc/llvm-project?rev=318798&view=rev Log: [clangd] avoid divide by literal zero to satisfy msvc Modified: clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp Modified: clang-tools-extra/trunk

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra updated this revision to Diff 123831. tra added a comment. Updated CUDA tests https://reviews.llvm.org/D40275 Files: clang/lib/Sema/SemaType.cpp clang/test/SemaCUDA/call-stack-for-deferred-err.cu clang/test/SemaCUDA/no-call-stack-for-immediate-errs.cu clang/test/SemaCUDA/vla.cu In

LLVM buildmaster will be updated and restarted tonight

2017-11-21 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 7 PM Pacific time. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r318797 - Avoid unecessary opsize byte in segment move to memory

2017-11-21 Thread Nirav Dave via cfe-commits
Author: niravd Date: Tue Nov 21 11:28:13 2017 New Revision: 318797 URL: http://llvm.org/viewvc/llvm-project?rev=318797&view=rev Log: Avoid unecessary opsize byte in segment move to memory Segment moves to memory are always 16-bit. Remove invalid 32 and 64 bit variants. Recommiting with missing c

[PATCH] D40267: WG14 DR496

2017-11-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Commit in r318796. https://reviews.llvm.org/D40267 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r318796 - The offsetof macro is intended to work with subobjects rather than simple identifiers designating a member, making the -Wextended-offsetof diagnostic obsolete as this construct is not an ext

2017-11-21 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Nov 21 11:25:38 2017 New Revision: 318796 URL: http://llvm.org/viewvc/llvm-project?rev=318796&view=rev Log: The offsetof macro is intended to work with subobjects rather than simple identifiers designating a member, making the -Wextended-offsetof diagnostic obsolet

[PATCH] D40261: Add default argument AST matcher

2017-11-21 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. I've commit in r318794, thank you! https://reviews.llvm.org/D40261 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r318794 - Add an AST matcher for hasDefaultArgument() to match on parameter declarations that have a default value.

2017-11-21 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Nov 21 11:22:34 2017 New Revision: 318794 URL: http://llvm.org/viewvc/llvm-project?rev=318794&view=rev Log: Add an AST matcher for hasDefaultArgument() to match on parameter declarations that have a default value. Patch by Julie Hockett. Modified: cfe/trunk/do

RE: [clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Yung, Douglas via cfe-commits
Hi Sam, Thanks for looking into this. Just to clarify, the real issue is the divide by zero errors. The encoding related messages are only warnings. JSONExprTests.cpp(134): error C2124: divide or mod by zero Douglas Yung From: Sam McCall [mailto:sam.mcc...@gmail.com] Sent: Tuesday, November 21

[PATCH] D36836: [clang-tidy] Implement sonarsource-function-cognitive-complexity check

2017-11-21 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 123827. lebedev.ri marked an inline comment as done. lebedev.ri retitled this revision from "[clang-tidy] Implement readability-function-cognitive-complexity check" to "[clang-tidy] Implement sonarsource-function-cognitive-complexity check". lebedev.ri add

[clang-tools-extra] r318793 - [clangd] use u8 strings in tests to avoid problems on windows

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 11:10:22 2017 New Revision: 318793 URL: http://llvm.org/viewvc/llvm-project?rev=318793&view=rev Log: [clangd] use u8 strings in tests to avoid problems on windows Modified: clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp Modified: clang-tools-ext

Re: [clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via cfe-commits
Hi Douglas, Sorry about that! It's an encoding problem, I forgot there were encodings other than UTF-8 :-) I'll fix it. Thanks for the heads up. On Tue, Nov 21, 2017 at 7:56 PM, Yung, Douglas wrote: > Hi Sam, > > Your change is causing the PS4 Windows bot to fail because your test > includes a

RE: [clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Yung, Douglas via cfe-commits
Hi Sam, Your change is causing the PS4 Windows bot to fail because your test includes a divide by zero exception that the compiler is issuing an error for: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/13639/ FAILED: tools/clang/tools/extra/unittests

[clang-tools-extra] r318791 - [clangd] Add JSON tests with invalid unicode

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 10:40:43 2017 New Revision: 318791 URL: http://llvm.org/viewvc/llvm-project?rev=318791&view=rev Log: [clangd] Add JSON tests with invalid unicode Modified: clang-tools-extra/trunk/unittests/clangd/JSONExprTests.cpp Modified: clang-tools-extra/trunk/unittest

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. In https://reviews.llvm.org/D40275#931947, @hfinkel wrote: > > When Sema sees this code during compilation, it can not tell whether there > > is an error. Calling foo from the host code is perfectly valid. Calling it > > from device code is not. CUDADiagIfDeviceCode creates

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: clang/lib/Sema/SemaType.cpp:2188 + !Context.getTargetInfo().isVLASupported() && + shouldDiagnoseTargetSupportFromOpenMP()) { + // Some targets don't support VLAs. tra wrote: > rjmccall wrote:

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra updated this revision to Diff 123823. tra added a comment. Updated to partially address rjmccall@ comments. https://reviews.llvm.org/D40275 Files: clang/lib/Sema/SemaType.cpp clang/test/SemaCUDA/vla.cu Index: clang/test/SemaCUDA/vla.cu =

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. > When Sema sees this code during compilation, it can not tell whether there is > an error. Calling foo from the host code is perfectly valid. Calling it from > device code is not. CUDADiagIfDeviceCode creates 'postponed' diagnostics > which only gets emitted if we ever

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: clang/lib/Sema/SemaType.cpp:2188 + !Context.getTargetInfo().isVLASupported() && + shouldDiagnoseTargetSupportFromOpenMP()) { + // Some targets don't support VLAs. rjmccall wrote: > Please wri

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Hans Wennborg via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318785: Add -finstrument-function-entry-bare flag (authored by hans). Changed prior to commit: https://reviews.llvm.org/D40276?vs=123691&id=123821#toc Repository: rL LLVM https://reviews.llvm.org/D4

r318785 - Add -finstrument-function-entry-bare flag

2017-11-21 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Nov 21 09:30:34 2017 New Revision: 318785 URL: http://llvm.org/viewvc/llvm-project?rev=318785&view=rev Log: Add -finstrument-function-entry-bare flag This is an instrumentation flag that's similar to -finstrument-functions, but it only inserts calls on function entry, the c

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall requested review of this revision. sammccall added a comment. PTAL - this is now optional. The results will be hidden by default, but can be turned on with a flag. https://reviews.llvm.org/D39836 ___ cfe-commits mailing list cfe-commits@l

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 123819. sammccall added a comment. (trying to resync the diff to head) https://reviews.llvm.org/D39836 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServer.cpp clangd/ClangdServer.h clangd/ClangdUnit.cpp clangd/Clangd

[clang-tools-extra] r318782 - [clangd] Include the right header for std::isxdigit

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 09:18:30 2017 New Revision: 318782 URL: http://llvm.org/viewvc/llvm-project?rev=318782&view=rev Log: [clangd] Include the right header for std::isxdigit Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp Modified: clang-tools-extra/trunk/clangd/JSONExpr.

[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh

2017-11-21 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D39673#931487, @martell wrote: > Just as a note there is still a lot to be desired here. I do not particularly > like the `UseSEHExceptions` function default and the actual macro definition > guards should be based on the current `ExceptionModel`

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 123817. sammccall added a comment. This revision is now accepted and ready to land. Add an option to allow impossible completions. While here, remove 'helpful' constructors that take some subset of the params. https://reviews.llvm.org/D39836 Files: clan

r318781 - [OPENMP] Initial support for asynchronous data update, NFC.

2017-11-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Nov 21 09:08:48 2017 New Revision: 318781 URL: http://llvm.org/viewvc/llvm-project?rev=318781&view=rev Log: [OPENMP] Initial support for asynchronous data update, NFC. OpenMP 5.0 introduces asynchronous data update/dependecies clauses on target data directives. Patch add

[clang-tools-extra] r318780 - [clangd] Satisfy GCC: 'changes meaning of Error'

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 09:02:24 2017 New Revision: 318780 URL: http://llvm.org/viewvc/llvm-project?rev=318780&view=rev Log: [clangd] Satisfy GCC: 'changes meaning of Error' Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp

[PATCH] D40259: [libcxx] LWG2993: reference_wrapper

2017-11-21 Thread Agustín Bergé via Phabricator via cfe-commits
K-ballo updated this revision to Diff 123813. K-ballo added a comment. Full context diff. https://reviews.llvm.org/D40259 Files: include/__functional_base include/functional test/std/utilities/function.objects/refwrap/refwrap.assign/copy_assign.pass.cpp test/std/utilities/function.obj

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. Yep, looks good. :) https://reviews.llvm.org/D40276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Reid, are you happy with this too? In https://reviews.llvm.org/D40276#931502, @pasko wrote: > Instrumenting the function entry post-inlining, without function exit, and > with no parameters is exactly what we need. The > `__cyg_profile_func_enter_bare` sounds good to me a

r318779 - Fix test/OpenMP/nvptx_data_sharing.cpp

2017-11-21 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Tue Nov 21 08:49:11 2017 New Revision: 318779 URL: http://llvm.org/viewvc/llvm-project?rev=318779&view=rev Log: Fix test/OpenMP/nvptx_data_sharing.cpp This was an oversight that stayed in the test from development. Modified: cfe/trunk/test/OpenMP/nvptx_data_sharing.cpp

[clang-tools-extra] r318778 - [clangd] Fix dumb && || bug from r318774

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 08:44:16 2017 New Revision: 318778 URL: http://llvm.org/viewvc/llvm-project?rev=318778&view=rev Log: [clangd] Fix dumb && || bug from r318774 Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp URL: h

[PATCH] D40065: [libcxx] [test] Change (void)s to TEST_IGNORE_NODISCARD as requested by Eric.

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D40065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[PATCH] D32751: [ASTImporter] Support new kinds of declarations (mostly Using*)

2017-11-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin closed this revision. a.sidorin added a comment. Closed with https://reviews.llvm.org/rL318776 (forgot Differential Revision, sorry). https://reviews.llvm.org/D32751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

r318776 - [ASTImporter] Support new AST nodes:

2017-11-21 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Tue Nov 21 08:08:41 2017 New Revision: 318776 URL: http://llvm.org/viewvc/llvm-project?rev=318776&view=rev Log: [ASTImporter] Support new AST nodes: * UnresolvedUsingType * EmptyDecl * NamespaceAliasDecl * UsingDecl * UsingShadowDecl * UsingDirectiveDecl * Unresolve

[PATCH] D33589: clang-format: consider not splitting tokens in optimization

2017-11-21 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. Btw, another issue I am having is that reflowing does not respect the alignment. For exemple: enum { Foo,///< This is a very long comment Bar,///< This is shorter BarBar, ///< This is shorter } Stuff; will be reflown to : enum { Foo, //

[PATCH] D40310: Restructure how we break tokens.

2017-11-21 Thread Manuel Klimek via Phabricator via cfe-commits
klimek created this revision. This fixes some bugs in the reflowing logic and splits out the concerns of reflowing from BreakableToken. Things to do after this patch: - Refactor the breakProtrudingToken function possibly into a class, so we can split it up into methods that operate on the commo

[PATCH] D40182: [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318774: [clangd] Add parsing and value inspection to JSONExpr. (authored by sammccall). Repository: rL LLVM https://reviews.llvm.org/D40182 Files: clang-tools-extra/trunk/clangd/JSONExpr.cpp clang

[clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 08:00:53 2017 New Revision: 318774 URL: http://llvm.org/viewvc/llvm-project?rev=318774&view=rev Log: [clangd] Add parsing and value inspection to JSONExpr. Summary: This will replace the places where we're using YAMLParser to parse JSON now: - the new marshall

[PATCH] D40279: [libcxxabi][demangler] Add demangling for __attribute__((abi_tag))

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. Thanks. https://reviews.llvm.org/D40279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D33589: clang-format: consider not splitting tokens in optimization

2017-11-21 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. In https://reviews.llvm.org/D33589#925903, @klimek wrote: > I think this patch doesn't handle a couple of cases that I'd like to see > handled. A counter-proposal with different trade-offs is in > https://reviews.llvm.org/D40068. It may be simpler (though not to my eyes,

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

2017-11-21 Thread Sanjay Patel via Phabricator via cfe-commits
spatel added a comment. Ping. https://reviews.llvm.org/D40044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33589: clang-format: consider not splitting tokens in optimization

2017-11-21 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. In https://reviews.llvm.org/D33589#924716, @klimek wrote: > One interesting trade-off I'm running into: > My gut feeling is that we really want to make local decisions about whether > we want to break/reflow - this makes the code significantly simpler (IMO), > and handles

  1   2   >