[PATCH] D42497: clang-cl: Simplify handling of /arch: flag.

2018-01-25 Thread Nico Weber via Phabricator via cfe-commits
thakis closed this revision. thakis added a comment. r323426, thanks! https://reviews.llvm.org/D42497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r323426 - clang-cl: Simplify handling of /arch: flag.

2018-01-25 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Jan 25 06:38:29 2018 New Revision: 323426 URL: http://llvm.org/viewvc/llvm-project?rev=323426=rev Log: clang-cl: Simplify handling of /arch: flag. r213083 initially implemented /arch: support by mapping it to CPU features. Then r241077 additionally mapped it to CPU, which

[PATCH] D42497: clang-cl: Simplify handling of /arch: flag.

2018-01-25 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D42497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323425: [clangd] Provide a helper to report estimated memory usage per-file (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323425: [clangd] Provide a helper to report estimated memory usage per-file (authored by ibiryukov, committed by ). Changed prior to commit: https://reviews.llvm.org/D42480?vs=131435=131438#toc

[clang-tools-extra] r323425 - [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 25 06:32:21 2018 New Revision: 323425 URL: http://llvm.org/viewvc/llvm-project?rev=323425=rev Log: [clangd] Provide a helper to report estimated memory usage per-file Reviewers: sammccall, ioeric, hokein Reviewed By: ioeric Subscribers: klimek, cfe-commits,

[clang-tools-extra] r323424 - [clangd] Fixed the file comment of new file. NFC

2018-01-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 25 06:30:46 2018 New Revision: 323424 URL: http://llvm.org/viewvc/llvm-project?rev=323424=rev Log: [clangd] Fixed the file comment of new file. NFC Modified: clang-tools-extra/trunk/clangd/CompileArgsCache.cpp Modified:

[clang-tools-extra] r323423 - [clangd] Added forgotten files

2018-01-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 25 06:29:29 2018 New Revision: 323423 URL: http://llvm.org/viewvc/llvm-project?rev=323423=rev Log: [clangd] Added forgotten files Added: clang-tools-extra/trunk/clangd/CompileArgsCache.cpp clang-tools-extra/trunk/clangd/CompileArgsCache.h Added:

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 131435. ilya-biryukov marked 6 inline comments as done. ilya-biryukov added a comment. - Added a FIXME to CppFile::getUsedBytes() Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42480 Files: clangd/ClangdServer.cpp

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Thanks for reviewing this! Comment at: unittests/clangd/ClangdTests.cpp:428 +TEST_F(ClangdVFSTest, MemoryUsage) { + MockFSProvider FS; ioeric wrote: > ilya-biryukov wrote: > > ioeric wrote: > > > Can we add a test for

[PATCH] D41539: [CodeGen] Decorate aggregate accesses with TBAA tags

2018-01-25 Thread Ivan Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC323421: [CodeGen] Decorate aggregate accesses with TBAA tags (authored by kosarev, committed by ). Changed prior to commit: https://reviews.llvm.org/D41539?vs=131257=131434#toc Repository: rC Clang

[PATCH] D41539: [CodeGen] Decorate aggregate accesses with TBAA tags

2018-01-25 Thread Ivan Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323421: [CodeGen] Decorate aggregate accesses with TBAA tags (authored by kosarev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D42532: [OpenCL] Add "cles_khr_int64" extension.

2018-01-25 Thread Alexey Bader via Phabricator via cfe-commits
bader accepted this revision. bader added a comment. This revision is now accepted and ready to land. LGTM, but I'd like Anastasia to approve. Thanks. Repository: rC Clang https://reviews.llvm.org/D42532 ___ cfe-commits mailing list

r323421 - [CodeGen] Decorate aggregate accesses with TBAA tags

2018-01-25 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Thu Jan 25 06:21:55 2018 New Revision: 323421 URL: http://llvm.org/viewvc/llvm-project?rev=323421=rev Log: [CodeGen] Decorate aggregate accesses with TBAA tags Differential Revision: https://reviews.llvm.org/D41539 Modified: cfe/trunk/lib/CodeGen/CGAtomic.cpp

[PATCH] D42429: [clangd] Moved caching of compile commands to ClangdServer

2018-01-25 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323420: [clangd] Moved caching of compile commands to ClangdServer (authored by ibiryukov, committed by ). Changed prior to commit: https://reviews.llvm.org/D42429?vs=131429=131432#toc Repository:

[clang-tools-extra] r323420 - [clangd] Moved caching of compile commands to ClangdServer

2018-01-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 25 06:19:21 2018 New Revision: 323420 URL: http://llvm.org/viewvc/llvm-project?rev=323420=rev Log: [clangd] Moved caching of compile commands to ClangdServer Summary: It allows to get rid of CppFile::getLastCommand and simplify the code in the upcoming threading

[PATCH] D42500: [clang-format] Fixes indentation of inner text proto messages

2018-01-25 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323419: [clang-format] Fixes indentation of inner text proto messages (authored by krasimir, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM

r323419 - [clang-format] Fixes indentation of inner text proto messages

2018-01-25 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Jan 25 06:10:43 2018 New Revision: 323419 URL: http://llvm.org/viewvc/llvm-project?rev=323419=rev Log: [clang-format] Fixes indentation of inner text proto messages Summary: Consider the text proto: ``` message { sub { key: value } } ``` Previously the first `{` was

[PATCH] D42429: [clangd] Moved caching of compile commands to ClangdServer

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 131429. ilya-biryukov marked 5 inline comments as done. ilya-biryukov added a comment. Herald added subscribers: hintonda, mgorny. - Addressed review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42429 Files:

[PATCH] D42497: clang-cl: Simplify handling of /arch: flag.

2018-01-25 Thread Nico Weber via Phabricator via cfe-commits
thakis added inline comments. Comment at: lib/Driver/ToolChains/Arch/X86.cpp:43 if (const Arg *A = Args.getLastArg(options::OPT__SLASH_arch)) { +// Mapping built by looking at lib/Basic's X86TargetInfo::initFeatureMap(). hans wrote: > I wonder if it

[PATCH] D42497: clang-cl: Simplify handling of /arch: flag.

2018-01-25 Thread Nico Weber via Phabricator via cfe-commits
thakis updated this revision to Diff 131428. thakis edited the summary of this revision. https://reviews.llvm.org/D42497 Files: lib/Driver/ToolChains/Arch/X86.cpp test/Driver/cl-x86-flags.c Index: test/Driver/cl-x86-flags.c ===

[PATCH] D42532: [OpenCL] Add "cles_khr_int64" extension.

2018-01-25 Thread Mariya Podchishchaeva via Phabricator via cfe-commits
Fznamznon created this revision. Herald added subscribers: cfe-commits, Anastasia, yaxunl. For OpenCL 1.1 embedded profile 64 bit integers i.e. long, ulong including the appropriate vector data types and operations on 64-bit integers are optional. The "cles_khr_int64" extension string will be

[PATCH] D42525: [clangd] Replace Optional in ScopeExitGuard (fix after r322838)

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/Function.h:141 namespace detail { +/// Optional-like type that sets its value to llvm::None when it was moved +/// constructed from. sammccall wrote: > As noted in the thread I don't think this pulls its

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg Comment at: clangd/ClangdUnit.cpp:664 + std::lock_guard Lock(Mutex); + return ASTMemUsage + PreambleMemUsage; +} ilya-biryukov wrote: > ioeric wrote: >

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov marked 2 inline comments as done. ilya-biryukov added inline comments. Comment at: clangd/ClangdServer.h:324 + /// Returns estimated memory usage for each of the currently files. + /// The order of results is unspecified. ioeric wrote: >

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 131415. ilya-biryukov marked 2 inline comments as done. ilya-biryukov added a comment. - Fixed review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42480 Files: clangd/ClangdServer.cpp clangd/ClangdServer.h

[PATCH] D42429: [clangd] Moved caching of compile commands to ClangdServer

2018-01-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Thanks for this cleanup! The way we deal with ResourceDir still doesn't feel ideal, but that's no worse here and everything else is better! Comment at:

[PATCH] D42517: [clangd] RFC: Pass Context implicitly using TLS.

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. LG. Let's move the APIs to callbacks and start passing Contexts everywhere. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42517 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42525: [clangd] Replace Optional in ScopeExitGuard (fix after r322838)

2018-01-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/Function.h:141 namespace detail { +/// Optional-like type that sets its value to llvm::None when it was moved +/// constructed from. As noted in the thread I don't think this pulls its weight for us. Swapping

[PATCH] D42525: [clangd] Replace Optional in ScopeExitGuard (fix after r322838)

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: ioeric, jkorous-apple, klimek. r322838 changed semantics for llvm::Optional that removes the guarantee of setting the value to empty after move. This change creates a wrapper around Optional

[PATCH] D42464: add prefix with '_' support for property name. Corresponding apple dev doc: https://developer.apple.com/library/content/qa/qa1908/_index.html

2018-01-25 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:28 +enum NamingStyle { + StandardProperty = 1, + CategoryProperty = 2, Please add documentation describing what these properties are. Comment at:

[PATCH] D42524: [clangd] Improve the tracing API

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 131407. ilya-biryukov added a comment. - Remove redundant code Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42524 Files: clangd/JSONRPCDispatcher.cpp clangd/Trace.cpp clangd/Trace.h Index: clangd/Trace.h

[PATCH] D42499: [clangd] Modify the Span API so that Spans propagate with contexts.

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. I've tried experimenting with that and came up with an alternative that has less changes to the API. Could you take a look, too? https://reviews.llvm.org/D42524 Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42499

[PATCH] D42335: [ASTImporter] Supporting CXXOperatorCallExpr, SizeOfPackExpr, DependentTemplateSpecializationType, DependentSizedArray, CXXTypeidExpr importing.

2018-01-25 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun updated this revision to Diff 131406. xazax.hun marked 2 inline comments as done. xazax.hun added a comment. - Address review comments. https://reviews.llvm.org/D42335 Files: lib/AST/ASTImporter.cpp unittests/AST/ASTImporterTest.cpp Index: unittests/AST/ASTImporterTest.cpp

[PATCH] D42524: [clangd] Improve the tracing API

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: ioeric, jkorous-apple, klimek. The new API allows tracing events to outlive individual Spans and gives a guarantee that invididual Spans will be not be called from multiple threads.

[PATCH] D42395: [clang-format] Fix bug where -dump-config failed on ObjC header

2018-01-25 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak requested changes to this revision. jolesiak added inline comments. This revision now requires changes to proceed. Comment at: test/Format/lit.local.cfg:2-3 +# Suffixes supported by clang-format. +config.suffixes = ['.cpp', '.h', '.m', '.mm', '.java', '.js', '.ts',

[PATCH] D42301: [ASTImporter] Support LambdaExprs and improve template support

2018-01-25 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. This revision is now accepted and ready to land. Overall looks good! Thanks for working on this! Comment at: lib/AST/ExternalASTMerger.cpp:403 +ASTImporter *Importer = C.second; +NamedDecl *ND =

[PATCH] D42416: [Driver] Add support for mips32 and scudo

2018-01-25 Thread Simon Dardis via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323412: [Driver] Add support for mips32 and scudo (authored by sdardis, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

r323412 - [Driver] Add support for mips32 and scudo

2018-01-25 Thread Simon Dardis via cfe-commits
Author: sdardis Date: Thu Jan 25 02:09:33 2018 New Revision: 323412 URL: http://llvm.org/viewvc/llvm-project?rev=323412=rev Log: [Driver] Add support for mips32 and scudo r317337 missed that scudo is supported on MIPS32, so permit that option for MIPS32. Reviewers: cryptoad, atanasyan

[PATCH] D42499: [clangd] Modify the Span API so that Spans propagate with contexts.

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/Context.h:163 + + template Context derive(Type &) const && { +static Key::type> Private; s/`const &&`/`&&` Comment at: clangd/Context.h:165 +static Key::type> Private; +

[PATCH] D42491: [clangd] Disable typo correction when doing code completion.

2018-01-25 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323410: [clangd] Disable typo correction when doing code completion. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D42491?vs=131286=131400#toc Repository:

[clang-tools-extra] r323410 - [clangd] Disable typo correction when doing code completion.

2018-01-25 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Jan 25 01:44:06 2018 New Revision: 323410 URL: http://llvm.org/viewvc/llvm-project?rev=323410=rev Log: [clangd] Disable typo correction when doing code completion. Reviewers: ilya-biryukov Reviewed By: ilya-biryukov Subscribers: klimek, jkorous-apple, cfe-commits,

[PATCH] D42491: [clangd] Disable typo correction when doing code completion.

2018-01-25 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323410: [clangd] Disable typo correction when doing code completion. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D42491

[PATCH] D42480: [clangd] Provide a helper to report estimated memory usage per-file

2018-01-25 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/ClangdServer.h:324 + /// Returns estimated memory usage for each of the currently files. + /// The order of results is unspecified. s/currently/current/ ? or current open? Comment at:

[PATCH] D42497: clang-cl: Simplify handling of /arch: flag.

2018-01-25 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Thanks for looking into this! Comment at: lib/Driver/ToolChains/Arch/X86.cpp:43 if (const Arg *A = Args.getLastArg(options::OPT__SLASH_arch)) { +// Mapping built by looking at lib/Basic's X86TargetInfo::initFeatureMap(). I wonder

[PATCH] D39571: [clangd] DidChangeConfiguration Notification

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdLSPServer.cpp:302 +// FIXME: This function needs to be properly tested. +void ClangdLSPServer::onChangeConfiguration( simark wrote: > ilya-biryukov wrote: > > Are you planning to to address this

[PATCH] D42484: [clangd] Limit completion results.

2018-01-25 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323408: [clangd] Limit completion results. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D42484 Files:

[clang-tools-extra] r323408 - [clangd] Limit completion results.

2018-01-25 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Jan 25 01:20:09 2018 New Revision: 323408 URL: http://llvm.org/viewvc/llvm-project?rev=323408=rev Log: [clangd] Limit completion results. Summary: * truncate symbols from static/dynamic index to the limited number (which would save lots of cost in constructing the merged

[PATCH] D42491: [clangd] Disable typo correction when doing code completion.

2018-01-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. LGTM Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42484: [clangd] Limit completion results.

2018-01-25 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 131394. hokein marked 4 inline comments as done. hokein added a comment. Address review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42484 Files: clangd/CodeComplete.cpp clangd/index/Merge.cpp clangd/tool/ClangdMain.cpp

[PATCH] D42484: [clangd] Limit completion results.

2018-01-25 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/tool/ClangdMain.cpp:131 + "0 means no limit."), +llvm::cl::init(100), llvm::cl::Hidden); + sammccall wrote: > I think we probably want to keep the default at 0 for now. I'm fine with 100 >

[PATCH] D42521: [CodeGen] Use the non-virtual alignment when emitting the base class subobject constructor

2018-01-25 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added reviewers: rjmccall, vsk. This patch fixes what looks like a bug in IRGen's member initialization where it uses the alignment of a complete object instead of its non-virtual alignment when emitting the base constructor. For example, when emitting

<    1   2