r343072 - [Frontend] Tidy up -print-decl-contexts conditions

2018-09-25 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Sep 25 23:28:14 2018 New Revision: 343072 URL: http://llvm.org/viewvc/llvm-project?rev=343072&view=rev Log: [Frontend] Tidy up -print-decl-contexts conditions The existing conditions are not consistent. Some have braces and define a temporary Decl while others simply ca

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdUnit.cpp:339 +llvm::ErrorOr status(const Twine &Path) override { + auto I = StatCache.find(Path.str()); + return (I != StatCache.end()) ? I->getValue() : FS->status(Path); ioeric wrote: >

[PATCH] D52420: [clangd] Fix crash if pending computations were active on exit

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343067: [clangd] Fix crash if pending computations were active on exit (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/

[clang-tools-extra] r343067 - [clangd] Fix crash if pending computations were active on exit

2018-09-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Sep 25 22:48:29 2018 New Revision: 343067 URL: http://llvm.org/viewvc/llvm-project?rev=343067&view=rev Log: [clangd] Fix crash if pending computations were active on exit Summary: Make sure JSONRPCDispatcher outlives the worker threads, they access its fields to remove

[clang-tools-extra] r343066 - [clangd] Handle template args for disabled function arg snippets

2018-09-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Sep 25 22:45:31 2018 New Revision: 343066 URL: http://llvm.org/viewvc/llvm-project?rev=343066&view=rev Log: [clangd] Handle template args for disabled function arg snippets Reviewers: kadircet, ioeric, sammccall Reviewed By: kadircet Subscribers: MaskRay, jkorous, ar

[PATCH] D52422: [clangd] Handle template args for disabled function arg snippets

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343066: [clangd] Handle template args for disabled function arg snippets (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.or

[PATCH] D52422: [clangd] Handle template args for disabled function arg snippets

2018-09-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov marked an inline comment as done. ilya-biryukov added inline comments. Comment at: clangd/CodeComplete.cpp:507 + if (Snippet->front() == '<') +return EmptyArgs ? "<$0>()" : "<$1>($0)"; + if (Snippet->front() == '(') kadircet wrote:

[PATCH] D52422: [clangd] Handle template args for disabled function arg snippets

2018-09-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 167044. ilya-biryukov marked an inline comment as done. ilya-biryukov added a comment. - Remove debug formatting - Update snippet for no-arg case with the suggested changes Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52422 Files:

r343064 - P0859R0: List-initialization is potentially-constant-evaluated and

2018-09-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Sep 25 21:36:55 2018 New Revision: 343064 URL: http://llvm.org/viewvc/llvm-project?rev=343064&view=rev Log: P0859R0: List-initialization is potentially-constant-evaluated and triggers instantiation of constexpr functions. We mostly implemented this since Clang 6, but miss

r343063 - [OPENMP] Add support for OMP5 requires directive + unified_address clause

2018-09-25 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Sep 25 21:28:39 2018 New Revision: 343063 URL: http://llvm.org/viewvc/llvm-project?rev=343063&view=rev Log: [OPENMP] Add support for OMP5 requires directive + unified_address clause Add support for OMP5.0 requires directive and unified_address clause. Patches to follow will

[PATCH] D52359: [OPENMP] Add support for OMP5 requires directive + unified_address clause

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343063: [OPENMP] Add support for OMP5 requires directive + unified_address clause (authored by kli, committed by ). Changed prior to commit: https://reviews.llvm.org/D52359?vs=166471&id=167042#toc Repo

[PATCH] D52527: [clang-format] fix Bug 38686: add AfterCaseLabel to BraceWrapping

2018-09-25 Thread Owen Pan via Phabricator via cfe-commits
owenpan created this revision. owenpan added reviewers: sammccall, klimek, djasper, krasimir. Herald added a subscriber: cfe-commits. https://bugs.llvm.org/show_bug.cgi?id=38686 Repository: rC Clang https://reviews.llvm.org/D52527 Files: include/clang/Format/Format.h lib/Format/Format.cp

[PATCH] D52440: Emit lifetime markers for temporary function parameter aggregates

2018-09-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:176 + pushFullExprCleanup(NormalEHLifetimeMarker, + Slot.getAddress(), Size); +} This is problematic because we're not necessarily in a scope tha

Re: r342827 - Fix modules build with shared library.

2018-09-25 Thread Shuai Wang via cfe-commits
I'd like to understand this better as well, in particular what would be a proper fix? On Tue, Sep 25, 2018 at 2:15 PM David Blaikie wrote: > +Shuai Wang > > On Tue, Sep 25, 2018 at 2:14 PM David Blaikie wrote: > >> Hey Eric - thanks for the fix - but could you explain the issue here in a >> bit

[PATCH] D52189: [analyzer] Fix a crash regression on casting opaque symbolic pointers from unrelated base classes to derived classes.

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343051: [analyzer] Fix a crash on casting symbolic pointers to derived classes. (authored by dergachev, committed by ). Repository: rL LLVM https://reviews.llvm.org/D52189 Files: lib/StaticAnalyzer/

[PATCH] D52189: [analyzer] Fix a crash regression on casting opaque symbolic pointers from unrelated base classes to derived classes.

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343051: [analyzer] Fix a crash on casting symbolic pointers to derived classes. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.

r343051 - [analyzer] Fix a crash on casting symbolic pointers to derived classes.

2018-09-25 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Sep 25 17:17:14 2018 New Revision: 343051 URL: http://llvm.org/viewvc/llvm-project?rev=343051&view=rev Log: [analyzer] Fix a crash on casting symbolic pointers to derived classes. Commit r340984 causes a crash when a pointer to a completely unrelated type UnrelatedT (e

[PATCH] D52133: [analyzer] A testing facility for testing relationships between symbols.

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343048: [analyzer] Add a testing facility for testing relationships between symbols. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://rev

r343050 - Fix a bot failure from r343042.

2018-09-25 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Tue Sep 25 16:52:29 2018 New Revision: 343050 URL: http://llvm.org/viewvc/llvm-project?rev=343050&view=rev Log: Fix a bot failure from r343042. Modified: cfe/trunk/test/Sema/warn-duplicate-enum.c Modified: cfe/trunk/test/Sema/warn-duplicate-enum.c URL: http://llvm.org/vi

[PATCH] D52133: [analyzer] A testing facility for testing relationships between symbols.

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343048: [analyzer] Add a testing facility for testing relationships between symbols. (authored by dergachev, committed by ). Repository: rL LLVM https://reviews.llvm.org/D52133 Files: docs/analyzer/

r343048 - [analyzer] Add a testing facility for testing relationships between symbols.

2018-09-25 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Sep 25 16:50:53 2018 New Revision: 343048 URL: http://llvm.org/viewvc/llvm-project?rev=343048&view=rev Log: [analyzer] Add a testing facility for testing relationships between symbols. Tests introduced in r329780 was disabled in r342317 because these tests were acciden

r343044 - [clang-check-codegen][cfstring] Accept either @ or % for progbits to make ppc64be bots happy.

2018-09-25 Thread Kristina Brooks via cfe-commits
Author: kristina Date: Tue Sep 25 16:17:09 2018 New Revision: 343044 URL: http://llvm.org/viewvc/llvm-project?rev=343044&view=rev Log: [clang-check-codegen][cfstring] Accept either @ or % for progbits to make ppc64be bots happy. PPC64BE bots use % instead of @ for directives like progbits. Since

[PATCH] D52524: Add -Wno-poison-system-directories flag

2018-09-25 Thread Yunlian Jiang via Phabricator via cfe-commits
yunlian created this revision. Herald added a subscriber: cfe-commits. When using clang as a cross-compiler, we should not use system headers or libraries to do the compilation. This CL creates a new warning flag -Wpoison-system-directories support to emit warnings if --sysroot is set and header

r343042 - [Sema] Use a more civilized hash map to implement -Wduplicate-enum.

2018-09-25 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Tue Sep 25 15:53:06 2018 New Revision: 343042 URL: http://llvm.org/viewvc/llvm-project?rev=343042&view=rev Log: [Sema] Use a more civilized hash map to implement -Wduplicate-enum. DenseMap used LONG_MAX as a tombstone, so it asserts when you try to insert it! rdar://44774672

r343040 - Don't emit "will be treated as an identifier character" warning for

2018-09-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Sep 25 15:34:45 2018 New Revision: 343040 URL: http://llvm.org/viewvc/llvm-project?rev=343040&view=rev Log: Don't emit "will be treated as an identifier character" warning for UTF-8 characters that aren't identifier characters in the current language mode. Modified: c

[clang-tools-extra] r343039 - [clangd] Remove unused using-declaration testing::AllOf

2018-09-25 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Sep 25 15:32:11 2018 New Revision: 343039 URL: http://llvm.org/viewvc/llvm-project?rev=343039&view=rev Log: [clangd] Remove unused using-declaration testing::AllOf Modified: clang-tools-extra/trunk/unittests/clangd/SerializationTests.cpp Modified: clang-tools-extra/

[PATCH] D52344: [Clang][CodeGen][ObjC]: Fix non-bridged CoreFoundation builds on ELF targets that use `-fconstant-cfstrings`.

2018-09-25 Thread Kristina Brooks via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343038: Reland "[Clang][CodeGen][ObjC]: Fix CoreFoundation on ELF with `-fconstant… (authored by kristina, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://revie

r343038 - Reland "[Clang][CodeGen][ObjC]: Fix CoreFoundation on ELF with `-fconstant-cfstrings`"

2018-09-25 Thread Kristina Brooks via cfe-commits
Author: kristina Date: Tue Sep 25 15:27:40 2018 New Revision: 343038 URL: http://llvm.org/viewvc/llvm-project?rev=343038&view=rev Log: Reland "[Clang][CodeGen][ObjC]: Fix CoreFoundation on ELF with `-fconstant-cfstrings`" Relanding rL342883 with more fragmented tests to test ELF-specific section

[PATCH] D51390: [analyzer] CallDescription: Improve array management.

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343037: [analyzer] NFC: CallDescription: Improve array management. (authored by dergachev, committed by ). Repository: rC Clang https://reviews.llvm.org/D51390 Files: include/clang/StaticAnalyzer/Co

r343037 - [analyzer] NFC: CallDescription: Improve array management.

2018-09-25 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Sep 25 15:13:31 2018 New Revision: 343037 URL: http://llvm.org/viewvc/llvm-project?rev=343037&view=rev Log: [analyzer] NFC: CallDescription: Improve array management. Combine the two constructor overrides into a single ArrayRef constructor to allow easier brace initial

r343036 - P0969R0: allow structured binding of accessible members, not only public members.

2018-09-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Sep 25 15:12:44 2018 New Revision: 343036 URL: http://llvm.org/viewvc/llvm-project?rev=343036&view=rev Log: P0969R0: allow structured binding of accessible members, not only public members. Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td cfe/trunk/

[PATCH] D51388: [analyzer] NFC: Legalize state manager factory injection.

2018-09-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343035: [analyzer] NFC: Legalize state manager factory injection. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D5138

r343035 - [analyzer] NFC: Legalize state manager factory injection.

2018-09-25 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Sep 25 15:10:12 2018 New Revision: 343035 URL: http://llvm.org/viewvc/llvm-project?rev=343035&view=rev Log: [analyzer] NFC: Legalize state manager factory injection. When a checker maintains a program state trait that isn't a simple list/set/map, but is a combination

[PATCH] D52521: [Sema] DR727: Ensure we pick up enclosing template instantiation arguments for a class-scope explicit specialization.

2018-09-25 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added inline comments. Comment at: clang/lib/Sema/SemaTemplateInstantiate.cpp:143 TSK_ExplicitSpecialization && !Function->getClassScopeSpecializationPattern())) break; It loo

[PATCH] D52344: [Clang][CodeGen][ObjC]: Fix non-bridged CoreFoundation builds on ELF targets that use `-fconstant-cfstrings`.

2018-09-25 Thread Kristina Brooks via Phabricator via cfe-commits
kristina updated this revision to Diff 166996. kristina added a comment. Split up the tests for ELF into tests 1). Checking whether CF can be built and linked correctly 2). Asm section tests originally from `CFStrings.c` as they had additional ELF-related cruft that should have been a separate t

[PATCH] D52517: [clangd] clangd-indexer: Drop support for MR-via-YAML

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 167000. sammccall added a comment. Remove unused function. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52517 Files: clangd/index/Serialization.h clangd/index/YAMLSerialization.cpp clangd/indexer/IndexerMain.cpp Index: clangd/ind

[PATCH] D52521: [Sema] DR727: Ensure we pick up enclosing template instantiation arguments for a class-scope explicit specialization.

2018-09-25 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington created this revision. erik.pilkington added reviewers: rsmith, rjmccall. Herald added a subscriber: dexonsmith. Previously, we stopped early on a class-scope explicit specialization, leading us to lose enclosing levels of template arguments. I'm not entirely convinced that this

[PATCH] D52364: [clangd] Initial supoprt for cross-namespace global code completion.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This is really cool! From reading the code this behaves exactly how I'd expect. Ranking will be the real test. Main comment is I'd like to tweak the interface on FuzzyFindRequest, rest is basically nits. Comment at: clangd/CodeComplete.cpp:367

[PATCH] D52315: [clang-tidy] Fix for performance-unnecessary-value-param, performance-unnecessary-copy-initialization and performance-for-range-copy

2018-09-25 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. "The three checks mentioned in the Title are two noisy if the code uses intrusive smart (reference counting) pointers. LLVM/Clang is such a code, it has lots of such types, e.g. StringRef, SymbolRef or ProgramStateRef, all of them based llvm::IntrusiveRefCntPtr. Every

[PATCH] D52281: [clang-tidy] Add modernize check to use std::invoke in generic code

2018-09-25 Thread Borsik Gábor via Phabricator via cfe-commits
boga95 updated this revision to Diff 166994. boga95 marked 12 inline comments as done. https://reviews.llvm.org/D52281 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/ReplaceGenericFunctorCallCheck.cpp clang-tidy/modernize/Repla

[PATCH] D46919: [libclang] Deprecate CXPrintingPolicy_IncludeTagDefinition

2018-09-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny updated this revision to Diff 166992. jdenny set the repository for this revision to rC Clang. jdenny added a comment. Ping. Rebased. This patch intends to perform cleanup that @rsmith suggested while reviewing another patch from me. If there's no more interest, it's fine with me to ab

Re: r342827 - Fix modules build with shared library.

2018-09-25 Thread David Blaikie via cfe-commits
+Shuai Wang On Tue, Sep 25, 2018 at 2:14 PM David Blaikie wrote: > Hey Eric - thanks for the fix - but could you explain the issue here in a > bit more detail, as I'm a bit confused (& really interested in > understanding any layering problems in LLVM - and fixing them/making sure > they're fixe

Re: r342827 - Fix modules build with shared library.

2018-09-25 Thread David Blaikie via cfe-commits
Hey Eric - thanks for the fix - but could you explain the issue here in a bit more detail, as I'm a bit confused (& really interested in understanding any layering problems in LLVM - and fixing them/making sure they're fixed/holding the line/etc) What do you mean by "pull all of the AST matchers l

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Generally LG. A few things I'm unsure about. Comment at: clangd/CodeComplete.cpp:1028 + IntrusiveRefCntPtr VFS = Input.VFS; + if (Input.PreambleStatCache) ioeric wrote: > ilya-biryukov wrote: > > It feels like we could apply this

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

2018-09-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp:37 + +enum class LengthHandleKind { LHK_Increase, LHK_Decrease }; + Please drop the `LHK_` prefix -- the enum class name is sufficient as a prefix. ===

[PATCH] D52517: [clangd] clangd-indexer: Drop support for MR-via-YAML

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This was previously in https://reviews.llvm.org/D52465, but I reduced the scope of that patch to make it easier to land. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52517 ___ cfe-commits mailing list c

[PATCH] D52517: [clangd] clangd-indexer: Drop support for MR-via-YAML

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: kadircet. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. It's slow, and the open-source reduce implementation doesn't scale properly. While here, tidy up some dead headers and comments. Repos

[PATCH] D52465: [clangd] Extract mapper logic from clangd-indexer into a library.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343019: [clangd] Extract mapper logic from clangd-indexer into a library. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D

[clang-tools-extra] r343019 - [clangd] Extract mapper logic from clangd-indexer into a library.

2018-09-25 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Sep 25 13:02:36 2018 New Revision: 343019 URL: http://llvm.org/viewvc/llvm-project?rev=343019&view=rev Log: [clangd] Extract mapper logic from clangd-indexer into a library. Summary: Soon we can drop support for MR-via-YAML. I need to modify some out-of-tree versions t

Re: [PATCH] D50294: [Driver] Use -gdwarf-3 by default for FreeBSD

2018-09-25 Thread Fāng-ruì Sòng via cfe-commits
On 2018-09-25, Ed Maste via Phabricator wrote: emaste added a comment. I'm using this change: https://github.com/emaste/freebsd/commit/1c3deab6d518feb1a7e88de5b342a139e4022a21 In FreeBSD 12 and later we use Clang, lld, and ELF Tool Chain. (We still have gas and objdump from the outdated binu

[clang-tools-extra] r343017 - [clangd] Fix reversed RIFF/YAML serialization

2018-09-25 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Sep 25 12:53:33 2018 New Revision: 343017 URL: http://llvm.org/viewvc/llvm-project?rev=343017&view=rev Log: [clangd] Fix reversed RIFF/YAML serialization Modified: clang-tools-extra/trunk/clangd/index/Serialization.cpp Modified: clang-tools-extra/trunk/clangd/inde

[PATCH] D52344: [Clang][CodeGen][ObjC]: Fix non-bridged CoreFoundation builds on ELF targets that use `-fconstant-cfstrings`.

2018-09-25 Thread Kristina Brooks via Phabricator via cfe-commits
kristina added a comment. Turns out test didn't execute as there are two tests named `CFString.c` and `cfstring.c` which usually shouldn't matter unless LLVM source checkout is done into a case insensitive filesystem in which case the failing test is skipped, this seems like a bug, going to ren

[PATCH] D52465: [clangd] Extract mapper logic from clangd-indexer into a library.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. On second thoughts, let's just leave the MR functionality in place for now so this can be landed. Then the out-of-tree stuff can migrate to the library, and we can rip out the MR stuff soon. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52465 ___

[PATCH] D52058: Add Parameters to DW_AT_name Attribute of Template Variables

2018-09-25 Thread Matthew Voss via Phabricator via cfe-commits
ormris added a comment. //Ping// Repository: rC Clang https://reviews.llvm.org/D52058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52465: [clangd] Extract mapper logic from clangd-indexer into a library.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 166970. sammccall added a comment. Leave functionality of clangd-indexer unchanged, to make this easier to land. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52465 Files: clangd/CMakeLists.txt clangd/index/IndexAction.cpp clangd/i

[PATCH] D52465: [clangd] Extract mapper logic from clangd-indexer into a library.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 166968. sammccall marked an inline comment as done. sammccall added a comment. Rebase and address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52465 Files: clangd/CMakeLists.txt clangd/index/IndexAction.cpp clangd/index/

[PATCH] D52248: [SEMA] ignore duplicate declaration specifiers from typeof exprs

2018-09-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. The right way to produce diagnostics under pedantic mode is to model them as Extension or ExtWarn in the .td file, not by checking the Pedantic diagnostic option directly. If this is an intentional GNU extension too, that makes things a bit more complex (one approach wou

[PATCH] D52465: [clangd] Extract mapper logic from clangd-indexer into a library.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 3 inline comments as done. sammccall added a comment. Thanks! Will land in a day or two, we maintain some out-of-tree mapreduce patches to this file that I need to turn into a real fork. Comment at: clangd/index/IndexAction.h:24 +// - references are always c

[PATCH] D52513: [Modules] Do not emit file modification error when -fno-validate-pch is set

2018-09-25 Thread Yuka Takahashi via Phabricator via cfe-commits
yamaguchi created this revision. yamaguchi added reviewers: rsmith, v.g.vassilev. This is a follow-up patch of https://reviews.llvm.org/rL338503: [Modules] Do not emit relocation error when -fno-validate-pch is set File modification with modules is also fine for our usecase as we want to reuse p

r343002 - Revert "[DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 11:31:56 2018 New Revision: 343002 URL: http://llvm.org/viewvc/llvm-project?rev=343002&view=rev Log: Revert "[DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types." It reverts commit r342991 + several other commits intended to fix the tests. Still ha

[PATCH] D52499: [clang-cl] Make /Gs imply default stack probes, not /Gs0 (PR39074)

2018-09-25 Thread David Majnemer via Phabricator via cfe-commits
majnemer accepted this revision. majnemer added a comment. This revision is now accepted and ready to land. FWIW, Microsoft's newest documentation does not say that `/O2` and `/O1` imply `/Gs`: https://docs.microsoft.com/en-us/cpp/build/reference/o1-o2-minimize-size-maximize-speed?view=vs-2017

[PATCH] D52230: [clang-tidy] use CHECK-NOTES in tests for bugprone-macro-repeated-side-effects

2018-09-25 Thread Jonas Toth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE343001: [clang-tidy] use CHECK-NOTES in tests for bugprone-macro-repeated-side-effects (authored by JonasToth, committed by ). Changed prior to commit: https://reviews.llvm.org/D52230?vs=165942&id=166

[clang-tools-extra] r343001 - [clang-tidy] use CHECK-NOTES in tests for bugprone-macro-repeated-side-effects

2018-09-25 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Tue Sep 25 11:15:52 2018 New Revision: 343001 URL: http://llvm.org/viewvc/llvm-project?rev=343001&view=rev Log: [clang-tidy] use CHECK-NOTES in tests for bugprone-macro-repeated-side-effects Reviewers: alexfh, aaron.ballman, hokein Reviewed By: alexfh Subscribers: xazax.

[PATCH] D52136: [clang-tidy] Add modernize-concat-nested-namespaces check

2018-09-25 Thread Jonas Toth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343000: [clang-tidy] Add modernize-concat-nested-namespaces check (authored by JonasToth, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D5213

[PATCH] D52136: [clang-tidy] Add modernize-concat-nested-namespaces check

2018-09-25 Thread Jonas Toth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE343000: [clang-tidy] Add modernize-concat-nested-namespaces check (authored by JonasToth, committed by ). Repository: rL LLVM https://reviews.llvm.org/D52136 Files: clang-tidy/modernize/CMakeLists

[PATCH] D52136: [clang-tidy] Add modernize-concat-nested-namespaces check

2018-09-25 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. Commited for you. https://reviews.llvm.org/D52136 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r343000 - [clang-tidy] Add modernize-concat-nested-namespaces check

2018-09-25 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Tue Sep 25 11:12:28 2018 New Revision: 343000 URL: http://llvm.org/viewvc/llvm-project?rev=343000&view=rev Log: [clang-tidy] Add modernize-concat-nested-namespaces check Summary: Finds instances of namespaces concatenated using explicit syntax, such as `namespace a { name

[PATCH] D52503: [clangd] More precise index memory usage estimate

2018-09-25 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-tools-extra/clangd/index/dex/Dex.cpp:251 Bytes += InvertedIndex.getMemorySize(); - for (const auto &P : InvertedIndex) -Bytes += P.second.bytes(); + for (const auto &TokenToPostingList : InvertedIndex) +Bytes += TokenTo

[PATCH] D52453: [clangd] Merge binary + YAML serialization behind a (mostly) common interface.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE342999: [clangd] Merge binary + YAML serialization behind a (mostly) common interface. (authored by sammccall, committed by ). Changed prior to commit: https://reviews.llvm.org/D52453?vs=166828&id=166

[PATCH] D52453: [clangd] Merge binary + YAML serialization behind a (mostly) common interface.

2018-09-25 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342999: [clangd] Merge binary + YAML serialization behind a (mostly) common interface. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://r

[PATCH] D50294: [Driver] Use -gdwarf-3 by default for FreeBSD

2018-09-25 Thread Ed Maste via Phabricator via cfe-commits
emaste added a comment. I'm using this change: https://github.com/emaste/freebsd/commit/1c3deab6d518feb1a7e88de5b342a139e4022a21 In FreeBSD 12 and later we use Clang, lld, and ELF Tool Chain. (We still have gas and objdump from the outdated binutils 2.17.50.) Repository: rC Clang https://r

[clang-tools-extra] r342999 - [clangd] Merge binary + YAML serialization behind a (mostly) common interface.

2018-09-25 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Sep 25 11:06:43 2018 New Revision: 342999 URL: http://llvm.org/viewvc/llvm-project?rev=342999&view=rev Log: [clangd] Merge binary + YAML serialization behind a (mostly) common interface. Summary: Interface is in one file, implementation in two as they have little in co

[PATCH] D52286: [Intrinsic] Signed Saturation Intirnsic

2018-09-25 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1119 + case ISD::SSAT: +// Target legalization checked here? +Action = TargetLowering::Expand; ebevhan wrote: > leonardchan wrote: > > ebevhan wrote: > > > leonardcha

r342996 - [OPENMP] Fix the test, NFC.

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 10:58:08 2018 New Revision: 342996 URL: http://llvm.org/viewvc/llvm-project?rev=342996&view=rev Log: [OPENMP] Fix the test, NFC. Fixed test to pacify buildbot. Modified: cfe/trunk/test/Driver/openmp-offload.c Modified: cfe/trunk/test/Driver/openmp-offload.c

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-25 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Thanks for the reviews! Comment at: clangd/ClangdUnit.cpp:155 +auto S = FS->status(Path); +if (S) + cacheStatus(*S); sammccall wrote: > why are you only caching success? I had a comment in `openFileForRead`: ``` // Only

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-25 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 166951. ioeric marked 10 inline comments as done. ioeric added a comment. Herald added a subscriber: mgorny. - Address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52419 Files: clangd/CMakeLists.txt clangd/ClangdServer.

Re: r342925 - P0962R1: only use the member form of 'begin' and 'end' in a range-based

2018-09-25 Thread Vitaly Buka via cfe-commits
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/24083 FAIL: Clang :: CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp (1692 of 13357) TEST 'Clang :: CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp' FAILED Script: -- : 'RUN: at line 1'; /b/sanitiz

r342995 - [OPENMP] Fix failed test, NFC.

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 10:47:53 2018 New Revision: 342995 URL: http://llvm.org/viewvc/llvm-project?rev=342995&view=rev Log: [OPENMP] Fix failed test, NFC. Modified: cfe/trunk/test/Driver/openmp-offload.c Modified: cfe/trunk/test/Driver/openmp-offload.c URL: http://llvm.org/viewvc/

[PATCH] D51741: [coro]Pass rvalue reference for named local variable to return_value

2018-09-25 Thread Tanoy Sinha via Phabricator via cfe-commits
tks2103 added a comment. ping @GorNishanov SAVE ME GOR! YOU'RE MY ONLY HOPE! Repository: rC Clang https://reviews.llvm.org/D51741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52136: [clang-tidy] Add modernize-concat-nested-namespaces check

2018-09-25 Thread Wojtek Gumuła via Phabricator via cfe-commits
wgml added a comment. Thanks you all for your participation in the review process. I guess it is done now. I don't have write access to the repositories, @aaron.ballman, could you apply the patch on my behalf? Comment at: clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp:3

[PATCH] D52219: [analyzer] (1/n) Support pointee mutation analysis in ExprMutationAnalyzer.

2018-09-25 Thread Shuai Wang via Phabricator via cfe-commits
shuaiwang updated this revision to Diff 166947. shuaiwang marked 6 inline comments as done. shuaiwang added a comment. Addressed review comments. Repository: rC Clang https://reviews.llvm.org/D52219 Files: include/clang/Analysis/Analyses/ExprMutationAnalyzer.h lib/Analysis/ExprMutationAn

[PATCH] D52136: [clang-tidy] Add modernize-concat-nested-namespaces check

2018-09-25 Thread Wojtek Gumuła via Phabricator via cfe-commits
wgml updated this revision to Diff 166945. wgml marked 10 inline comments as done. wgml added a comment. Dropped a few consts, updated doc text. https://reviews.llvm.org/D52136 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp clang-tidy/moder

[PATCH] D52503: [clangd] More precise index memory usage estimate

2018-09-25 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clang-tools-extra/clangd/index/dex/Dex.cpp:251 Bytes += InvertedIndex.getMemorySize(); - for (const auto &P : InvertedIndex) -Bytes += P.second.bytes(); + for (const auto &TokenToPostingList : InvertedIndex) +Bytes += Token

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-25 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGStmtOpenMP.cpp:2304 + const auto *C = S.getSingleClause(); + if (C) { +// If schedule clause is present. Restore original code here Comment at: lib/CodeGen/CGStmtOpenMP.

[PATCH] D52248: [SEMA] ignore duplicate declaration specifiers from typeof exprs

2018-09-25 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added a comment. > Should GCC instead warn for the typedef case for -std=c89 (non pedantic), > according to C90 6.5.3? Seems like yes: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80868#c6 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87435 But let's wait a bit to see what the GCC

[PATCH] D52503: [clangd] More precise index memory usage estimate

2018-09-25 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-tools-extra/clangd/index/dex/Dex.cpp:251 Bytes += InvertedIndex.getMemorySize(); - for (const auto &P : InvertedIndex) -Bytes += P.second.bytes(); + for (const auto &TokenToPostingList : InvertedIndex) +Bytes += TokenTo

r342991 - [DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types.

2018-09-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Sep 25 10:09:17 2018 New Revision: 342991 URL: http://llvm.org/viewvc/llvm-project?rev=342991&view=rev Log: [DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types. clang-offload-bundler should not be invoked with the unbundling action when the input file typ

Re: [clang-tools-extra] r342730 - [clangd] Remember to serialize symbol origin in YAML.

2018-09-25 Thread Ilya Biryukov via cfe-commits
Eric Liu schrieb am Di., 25. Sep. 2018, 01:22: > On Tue, Sep 25, 2018 at 6:34 AM Ilya Biryukov > wrote: > >> Why would we want to serialize the origin? >> > We only serialize and deserialize for the static index, it does not seem >> to be useful to serialize origin in that scenario. >> > We seri

[PATCH] D52399: [AArch64] Support adding X[8-15, 18] registers as CSRs.

2018-09-25 Thread Tri Vo via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC342990: [AArch64] Support adding X[8-15,18] registers as CSRs. (authored by trong, committed by ). Changed prior to commit: https://reviews.llvm.org/D52399?vs=166722&id=166940#toc Repository: rC Clan

[PATCH] D52399: [AArch64] Support adding X[8-15, 18] registers as CSRs.

2018-09-25 Thread Tri Vo via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342990: [AArch64] Support adding X[8-15,18] registers as CSRs. (authored by trong, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52399 Files:

[PATCH] D52465: [clangd] Extract mapper logic from clangd-indexer into a library.

2018-09-25 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land. LGTM, thanks for factoring out this to a library. Comment at: clangd/index/IndexAction.cpp:41 + llvm::errs() + << "Found uncompilable errors in the translat

r342990 - [AArch64] Support adding X[8-15,18] registers as CSRs.

2018-09-25 Thread Tri Vo via cfe-commits
Author: trong Date: Tue Sep 25 09:48:40 2018 New Revision: 342990 URL: http://llvm.org/viewvc/llvm-project?rev=342990&view=rev Log: [AArch64] Support adding X[8-15,18] registers as CSRs. Summary: Making X[8-15,18] registers call-saved is used to support CONFIG_ARM64_LSE_ATOMICS in Linux kernel.

[PATCH] D52259: [CUDA] Fix two failed test cases using --cuda-path-ignore-env

2018-09-25 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. It's unfortunate that lit does not scrub the environment in order to make tests hermetic. Repository: rC Clang https://reviews.llvm.org/D52259 ___

[PATCH] D52491: [ARM/AArch64][v8.5A] Add Armv8.5-A target

2018-09-25 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer accepted this revision. SjoerdMeijer added a comment. This revision is now accepted and ready to land. Looks okay to me Comment at: test/Driver/arm-cortex-cpus.c:338 + +// RUN: %clang -target armv8a-linux-eabi -march=armv8.5-a+fp16 -### -c %s 2>&1 | FileCheck --ch

[PATCH] D52502: [Lex] TokenConcatenation now takes const Preprocessor

2018-09-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Thanks! > any particular motivation for this? I'm currently trying to include macro expansions in the Static Analyzer's plist output, and I only managed to make this happen by some `Token` handling hackery, including printing them. I saw this trick in `lib/Rewrite/H

[PATCH] D52503: [clangd] More precise index memory usage estimate

2018-09-25 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added reviewers: ioeric, sammccall. kbobyrev added a project: clang-tools-extra. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay. This patch adds `Token`'s string data to the memory estimation. While it is only responsible for a couple of ex

[PATCH] D52290: [driver][mips] Adjust target triple accordingly to provided ABI name

2018-09-25 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Should `--target=mipsZZZ -mabi=n64` be meaningful? What does `clang --target=i686-linux-gnu -m64` do? If this matches that, then let's do it. I think each listed reviewer is currently at CppCon, hence the delay. Repository: rC Clang https://reviews.llvm.org/D52290 __

[PATCH] D52502: [Lex] TokenConcatenation now takes const Preprocessor

2018-09-25 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. any particular motivation for this? But looks fine to me in any case. Repository: rC Clang https://reviews.llvm.org/D52502 ___ cfe-commits

[PATCH] D52502: [Lex] TokenConcatenation now takes const Preprocessor

2018-09-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus created this revision. Szelethus added a reviewer: dblaikie. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D52502 Files: include/clang/Lex/TokenConcatenation.h lib/Lex/TokenConcatenation.cpp Index: lib/Lex/TokenConcatenation.cpp =

[PATCH] D51120: clang-format Additional Indent for class blocks

2018-09-25 Thread Darby Payne via Phabricator via cfe-commits
dpayne added a comment. @djasper @klimek Are there any comments here about this approach? Repository: rC Clang https://reviews.llvm.org/D51120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

  1   2   >