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

2018-01-23 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. High level note: `clang::TypeAliasDecl` has the same issue as `CXXRecordDecl`, so templated versions should not be added to the DeclContext. Could you add that just for the sake of completeness? Repository: rC Clang https://reviews.llvm.org/D42301 _

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

2018-01-23 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. I do not see a test for the following changes: - ASTImporter: don't add templated declarations into DeclContext - ASTImporter: proper set ParmVarDecls for imported FunctionProtoTypeLoc Comment at: lib/AST/ASTImporter.cpp:2085 + case FunctionDecl::TK

[PATCH] D42373: [clang-format] Disable string literal breaking for text protos

2018-01-23 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. I am not sure we should actually do this. I agree that badly reflowing multiline string literals is not ideal, but neither is violating the column limit. In any case, proper reflowing would probably the best solution. How hard would it be to implement that (for proto as

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

2018-01-23 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. > I do not see a test for the following changes: > > - ASTImporter: don't add templated declarations into DeclContext It's in ASTImporterTest. It checks that the templated decl cannot be found in the enclosing TU. > - ASTImporter: proper set ParmVarDecls for imported

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

2018-01-23 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. In https://reviews.llvm.org/D42301#984713, @a.sidorin wrote: > > I do not see a test for the following changes: > > > > - ASTImporter: don't add templated declarations into DeclContext > > It's in ASTImporterTest. It checks that the templated decl cannot be found in >

[PATCH] D42318: [ARM] Pass _Float16 as int or float

2018-01-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer updated this revision to Diff 131009. SjoerdMeijer added a comment. Moved the tests to the existing file (and fixed a few typos in the tests). https://reviews.llvm.org/D42318 Files: include/clang/AST/Type.h lib/CodeGen/TargetInfo.cpp test/CodeGen/arm-fp16-arguments.c Index:

[PATCH] D42318: [ARM] Pass _Float16 as int or float

2018-01-23 Thread Sam Parker via Phabricator via cfe-commits
samparker accepted this revision. samparker added a comment. This revision is now accepted and ready to land. Thanks for the explanation, LGTM, thanks! https://reviews.llvm.org/D42318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[PATCH] D42363: [clang-tidy] Don't generate fixes for invalid new expr location in modernize-make-unique.

2018-01-23 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. In https://reviews.llvm.org/D42363#983769, @hokein wrote: > Yeah, we should fix the clang bug (root cause). But I think this patch still > makes sense -- as we usually ignore inv

[PATCH] D35472: Implement P0463R1: "Endian just Endian"

2018-01-23 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: test/std/utilities/meta/meta.type.synop/endian.pass.cpp:10 + +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++1z + c++17, not c++1z At least grep says there are no c++1z left in the libc++ tests. https://reviews.llvm

r323185 - [ARM] Pass _Float16 as int or float

2018-01-23 Thread Sjoerd Meijer via cfe-commits
Author: sjoerdmeijer Date: Tue Jan 23 02:13:49 2018 New Revision: 323185 URL: http://llvm.org/viewvc/llvm-project?rev=323185&view=rev Log: [ARM] Pass _Float16 as int or float Pass and return _Float16 as if it were an int or float for ARM, but with the top 16 bits unspecified, similarly like we al

[PATCH] D42318: [ARM] Pass _Float16 as int or float

2018-01-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323185: [ARM] Pass _Float16 as int or float (authored by SjoerdMeijer, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42318?vs=131009&id=1310

[PATCH] D42376: [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 131012. krasimir added a comment. - Address review comments Repository: rC Clang https://reviews.llvm.org/D42376 Files: lib/Format/BreakableToken.cpp lib/Format/BreakableToken.h lib/Format/ContinuationIndenter.cpp unittests/Format/FormatTestText

[PATCH] D42376: [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir marked an inline comment as done. krasimir added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:1579 (Text.startswith(Prefix = "_T(\"") && Text.endswith(Postfix = "\")"))) { + unsigned UnbreakableTailLength = (State.NextToken && canBreak(

[PATCH] D42073: [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 131013. hokein marked 5 inline comments as done. hokein added a comment. Address remaining comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42073 Files: clangd/CodeComplete.cpp unittests/clangd/CodeCompleteTests.cpp Index: unitt

[PATCH] D42073: [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/CodeComplete.cpp:653 +// Get all scopes that will be queried in indexes. +std::vector getQueryScopes(Sema &S, +CodeCompletionContext &CCContext) { sammccall wrote: > as Ilya

[PATCH] D42073: [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 131014. hokein added a comment. Cleanup tests. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42073 Files: clangd/CodeComplete.cpp unittests/clangd/CodeCompleteTests.cpp Index: unittests/clangd/CodeCompleteTests.cpp

[PATCH] D42073: [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 131018. hokein added a comment. remove the leading "::". Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42073 Files: clangd/CodeComplete.cpp unittests/clangd/CodeCompleteTests.cpp Index: unittests/clangd/CodeCompleteTests.cpp ==

[PATCH] D42073: [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/CodeComplete.cpp:695 + Info.UnresolvedQualifier = + Lexer::getSourceText(CharSourceRange::getCharRange((*SS)->getRange()), + S.getSourceManager(), clang::LangOptions()); hokein wrote

[PATCH] D42376: [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:1579 (Text.startswith(Prefix = "_T(\"") && Text.endswith(Postfix = "\")"))) { + unsigned UnbreakableTailLength = (State.NextToken && canBreak(State)) +

[PATCH] D42073: [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 131019. hokein added a comment. Format the test code. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42073 Files: clangd/CodeComplete.cpp unittests/clangd/CodeCompleteTests.cpp Index: unittests/clangd/CodeCompleteTests.cpp =

[PATCH] D42376: [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:1579 (Text.startswith(Prefix = "_T(\"") && Text.endswith(Postfix = "\")"))) { + unsigned UnbreakableTailLength = (State.NextToken && canBreak(State)) +

[PATCH] D42376: [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Happy to go forward with this. I think we might also wanna investigate whether entirely removing UnbreakableTailLength would be beneficial. I think we implemented it as an optimization, but

[PATCH] D42376: [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 131023. krasimir marked 3 inline comments as done. krasimir added a comment. - Update comment Repository: rC Clang https://reviews.llvm.org/D42376 Files: lib/Format/BreakableToken.cpp lib/Format/BreakableToken.h lib/Format/ContinuationIndenter.cpp

[PATCH] D42373: [clang-format] Disable string literal breaking for text protos

2018-01-23 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. Let's not do this then. For reflowing string literals, it could take a two-three months. Repository: rC Clang https://reviews.llvm.org/D42373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

r323188 - [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Jan 23 03:26:19 2018 New Revision: 323188 URL: http://llvm.org/viewvc/llvm-project?rev=323188&view=rev Log: [clang-format] Ignore UnbreakableTailLength sometimes during breaking Summary: This patch fixes an issue where the UnbreakableTailLength would be counted towards

[PATCH] D42376: [clang-format] Ignore UnbreakableTailLength sometimes during breaking

2018-01-23 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323188: [clang-format] Ignore UnbreakableTailLength sometimes during breaking (authored by krasimir, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.or

[PATCH] D41629: [libcxx] Improve accuracy of complex asinh and acosh

2018-01-23 Thread Mikhail Maltsev via Phabricator via cfe-commits
miyuki added a comment. ping^2 https://reviews.llvm.org/D41629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r323189 - [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jan 23 03:37:26 2018 New Revision: 323189 URL: http://llvm.org/viewvc/llvm-project?rev=323189&view=rev Log: [clangd] Use accessible scopes to query indexes for global code completion. Summary: * For qualified completion (foo::a^) * unresolved qualifier - use globa

[PATCH] D42073: [clangd] Use accessible scopes to query indexes for global code completion.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323189: [clangd] Use accessible scopes to query indexes for global code completion. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llv

[PATCH] D42413: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: aaron.ballman, alexfh. Herald added subscribers: cfe-commits, xazax.hun, klimek. C++2a allows bitfields to have default member initializers. Add support for this to clang-tidy's modernize-use-default-member-init check. Repos

[clang-tools-extra] r323191 - [clang-tidy] Don't generate fixes for invalid new expr location in modernize-make-unique.

2018-01-23 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jan 23 03:43:18 2018 New Revision: 323191 URL: http://llvm.org/viewvc/llvm-project?rev=323191&view=rev Log: [clang-tidy] Don't generate fixes for invalid new expr location in modernize-make-unique. Reviewers: ilya-biryukov Reviewed By: ilya-biryukov Subscribers: klimek

[PATCH] D42363: [clang-tidy] Don't generate fixes for invalid new expr location in modernize-make-unique.

2018-01-23 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323191: [clang-tidy] Don't generate fixes for invalid new expr location in modernize… (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.l

[PATCH] D42170: Fixit for 'typedef' instead of 'typename' typo

2018-01-23 Thread Jan Korous via Phabricator via cfe-commits
jkorous-apple added inline comments. Comment at: Parse/ParseTemplate.cpp:492 + // Is there just a typo in the input code? ('typedef' instead of 'typename') + if (Tok.is(tok::kw_typedef)) { +Diag(Tok.getLocation(), diag::err_expected_template_parameter); vsa

[PATCH] D42170: Fixit for 'typedef' instead of 'typename' typo

2018-01-23 Thread Jan Korous via Phabricator via cfe-commits
jkorous-apple updated this revision to Diff 131041. jkorous-apple added a comment. Changes based on Volodymyr's comments. https://reviews.llvm.org/D42170 Files: FixIt/fixit-typedef-instead-of-typename-typo.cpp Parse/ParseTemplate.cpp clang/Basic/DiagnosticParseKinds.td Index: FixIt/fixi

r323194 - [Solaris] Make RHEL devtoolsets handling Linux-specific

2018-01-23 Thread Fedor Sergeev via cfe-commits
Author: fedor.sergeev Date: Tue Jan 23 04:24:01 2018 New Revision: 323194 URL: http://llvm.org/viewvc/llvm-project?rev=323194&view=rev Log: [Solaris] Make RHEL devtoolsets handling Linux-specific Summary: This patch is meant to address the last outstanding review comment on the already approved

r323193 - [Solaris] gcc toolchain handling revamp

2018-01-23 Thread Fedor Sergeev via cfe-commits
Author: fedor.sergeev Date: Tue Jan 23 04:23:52 2018 New Revision: 323193 URL: http://llvm.org/viewvc/llvm-project?rev=323193&view=rev Log: [Solaris] gcc toolchain handling revamp Summary: General idea is to utilize generic (mostly Generic_GCC) code and get rid of Solaris-specific handling as muc

[PATCH] D42029: [Solaris] Make RHEL devtoolsets handling Linux-specific

2018-01-23 Thread Fedor Sergeev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323194: [Solaris] Make RHEL devtoolsets handling Linux-specific (authored by fedor.sergeev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42

[PATCH] D35755: [Solaris] gcc toolchain handling revamp

2018-01-23 Thread Fedor Sergeev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323193: [Solaris] gcc toolchain handling revamp (authored by fedor.sergeev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D35755?vs=110194&id

[PATCH] D41947: Provide default virtual filesystem argument to ClangTool constructor

2018-01-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC323195: [Tooling] Added a VFS parameter to ClangTool (authored by ibiryukov, committed by ). Changed prior to commit: https://reviews.llvm.org/D41947?vs=130573&id=131045#toc Repository: rC Clang htt

r323195 - [Tooling] Added a VFS parameter to ClangTool

2018-01-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 23 04:30:02 2018 New Revision: 323195 URL: http://llvm.org/viewvc/llvm-project?rev=323195&view=rev Log: [Tooling] Added a VFS parameter to ClangTool Summary: The parameter overrides the underlying vfs used by ClangTool for filesystem operations. Patch by Vladimir

[clang-tools-extra] r323196 - [clang-tidy] Add -vfsoverlay flag

2018-01-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 23 04:31:06 2018 New Revision: 323196 URL: http://llvm.org/viewvc/llvm-project?rev=323196&view=rev Log: [clang-tidy] Add -vfsoverlay flag Summary: It allows to remap and override files and directories on disk when running clang-tidy. The intended use case for the f

[PATCH] D41535: Add -vfsoverlay option for Clang-Tidy

2018-01-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323196: [clang-tidy] Add -vfsoverlay flag (authored by ibiryukov, committed by ). Changed prior to commit: https://reviews.llvm.org/D41535?vs=130891&id=131046#toc Repository: rCTE Clang Tools Extra

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

2018-01-23 Thread Simon Dardis via Phabricator via cfe-commits
sdardis created this revision. sdardis added reviewers: cryptoad, atanasyan. Herald added a subscriber: arichardson. r317337 missed that scudo is supported on MIPS32, so permit that option for MIPS32. Repository: rC Clang https://reviews.llvm.org/D42416 Files: lib/Driver/ToolChains/Linux.c

[PATCH] D39571: [clangd] DidChangeConfiguration Notification

2018-01-23 Thread Simon Marchi via Phabricator via cfe-commits
simark updated this revision to Diff 131051. simark added a comment. Herald added subscribers: ioeric, jkorous-apple. I just got familiar with the patch, I cleaned up the bits that I thought were unnecessary for this change. For example, we don't need a toJSON function for DidChangeConfigurationP

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

2018-01-23 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan accepted this revision. atanasyan added a comment. This revision is now accepted and ready to land. LGTM Repository: rC Clang https://reviews.llvm.org/D42416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

r323199 - Fix Driver/solaris-ld.c test on Windows

2018-01-23 Thread Fedor Sergeev via cfe-commits
Author: fedor.sergeev Date: Tue Jan 23 05:59:11 2018 New Revision: 323199 URL: http://llvm.org/viewvc/llvm-project?rev=323199&view=rev Log: Fix Driver/solaris-ld.c test on Windows Fixing failure introduced with r323193. Modified: cfe/trunk/test/Driver/solaris-ld.c Modified: cfe/trunk/test/D

[PATCH] D42413: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a

2018-01-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:165 - Finder->addMatcher( - cxxConstructorDecl( - isDefaultConstructor(), unless(isInstantiated()), - forEachConstructorInitializer( - cxxCto

[PATCH] D42419: [clangd] Use new URI with scheme support in place of the existing LSP URI

2018-01-23 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: sammccall. Herald added subscribers: cfe-commits, jkorous-apple, ilya-biryukov, klimek. o Replace the existing clangd::URI with a wrapper of FileURI which also carries a resolved file path. o s/FileURI/URI/ Repository: rCTE Clang Tools Ext

[PATCH] D42419: [clangd] Use new URI with scheme support in place of the existing LSP URI

2018-01-23 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/ClangdLSPServer.cpp:386 + if (!U) +llvm_unreachable( +"onDiagnosticsReady: Expect creating URI for file to always work."); not sure if this is the right thing to do. idea? Comment at

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

2018-01-23 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun updated this revision to Diff 131059. xazax.hun added a comment. - Added import for CXXTypeidExpr. What is the best way to test this? header is required for using the typeid operator, but relying on the presence of an STL library in tests is usually considered as a bad practice. Sho

[PATCH] D42173: [clangd] Simplify code handling compile commands

2018-01-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 131062. ilya-biryukov marked 2 inline comments as done. ilya-biryukov added a comment. - Unwrap the comment - Remove ParseInputs constructor - Document the CppFile invariant Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42173 Files:

[PATCH] D42173: [clangd] Simplify code handling compile commands

2018-01-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov marked an inline comment as done. ilya-biryukov added inline comments. Comment at: clangd/ClangdUnit.h:62 +/// Information required to run clang (e.g., to parse AST or do code +/// completion). +struct ParseInputs { sammccall wrote: > sammccall wrot

[clang-tools-extra] r323204 - [clangd] Simplify code handling compile commands

2018-01-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 23 07:07:52 2018 New Revision: 323204 URL: http://llvm.org/viewvc/llvm-project?rev=323204&view=rev Log: [clangd] Simplify code handling compile commands Summary: CppFile can now change compilation arguments during rebuild. This allows simplifying code that manages

[PATCH] D42173: [clangd] Simplify code handling compile commands

2018-01-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323204: [clangd] Simplify code handling compile commands (authored by ibiryukov, committed by ). Changed prior to commit: https://reviews.llvm.org/D42173?vs=131062&id=131067#toc Repository: rL LLVM

[PATCH] D42173: [clangd] Simplify code handling compile commands

2018-01-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323204: [clangd] Simplify code handling compile commands (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D42173 Files: c

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

2018-01-23 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun updated this revision to Diff 131065. xazax.hun retitled this revision from "[ASTImporter] Supporting CXXOperatorCallExpr, SizeOfPackExpr, DependentTemplateSpecializationType, DependentSizedArray importing." to "[ASTImporter] Supporting CXXOperatorCallExpr, SizeOfPackExpr, DependentTem

[PATCH] D42413: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons updated this revision to Diff 131069. malcolm.parsons added a comment. Use ternary operator. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42413 Files: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp test/clang-tidy/modernize-use-default-member-init-bitf

[PATCH] D42413: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:165 - Finder->addMatcher( - cxxConstructorDecl( - isDefaultConstructor(), unless(isInstantiated()), - forEachConstructorInitializer( - cxxC

[PATCH] D42413: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a

2018-01-23 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! Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:165 - Finder->addMatcher( - cxxConstructorDecl( - isDefaultConstructor(),

[clang-tools-extra] r323208 - [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Tue Jan 23 07:32:42 2018 New Revision: 323208 URL: http://llvm.org/viewvc/llvm-project?rev=323208&view=rev Log: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a Summary: C++2a allows bitfields to have default member initializers. Add

[PATCH] D42413: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323208: [clang-tidy] Handle bitfields in modernize-use-default-member-init if using… (authored by malcolm.parsons, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://

[PATCH] D42043: c-index: CXString: fix MSAN read-past-end bug

2018-01-23 Thread Steve O'Brien via Phabricator via cfe-commits
elsteveogrande added a comment. Hi @vsk + @arphaman : I did find such problems with either MSAN (with poison-in-dtor) and ASAN, so we should be able to discover these instances pretty easily :) Repository: rC Clang https://reviews.llvm.org/D42043 _

r323157 - [ASTMatchers] [NFC] Fix code examples

2018-01-23 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Jan 22 14:34:15 2018 New Revision: 323157 URL: http://llvm.org/viewvc/llvm-project?rev=323157&view=rev Log: [ASTMatchers] [NFC] Fix code examples Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D42213 Modified: cfe/trunk/docs/LibAST

[PATCH] D39571: [clangd] DidChangeConfiguration Notification

2018-01-23 Thread Simon Marchi via Phabricator via cfe-commits
simark added inline comments. Comment at: clangd/ClangdLSPServer.cpp:78 {"documentHighlightProvider", true}, +{"configurationChangeProvider", true}, {"renameProvider", true}, I find `configurationChangeProvider` a bit weird.

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

2018-01-23 Thread Kostya Kortchinsky via Phabricator via cfe-commits
cryptoad accepted this revision. cryptoad added a comment. Cool thanks! Repository: rC Clang https://reviews.llvm.org/D42416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2018-01-23 Thread Kostya Kortchinsky via Phabricator via cfe-commits
cryptoad added inline comments. Comment at: lib/Driver/ToolChains/Linux.cpp:850 + const bool IsMIPS = getTriple().getArch() == llvm::Triple::mips || +getTriple().getArch() == llvm::Triple::mipsel; const bool IsMIPS64 = getTriple().getArch() == llvm::Tr

r323218 - clang-format: Support formatting Java 8 interface default methods.

2018-01-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Jan 23 08:30:56 2018 New Revision: 323218 URL: http://llvm.org/viewvc/llvm-project?rev=323218&view=rev Log: clang-format: Support formatting Java 8 interface default methods. Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp cfe/trunk/unittests/Format/FormatTes

[PATCH] D42426: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: aaron.ballman, alexfh. Herald added subscribers: cfe-commits, kbarton, xazax.hun, nemanjai, klimek. C++2a allows bitfields to have default member initializers. Add support for this to clang-tidy's cppcoreguidelines-pro-type-me

[PATCH] D42426: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init if using C++2a

2018-01-23 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! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42428: [CodeComplete] only respect LoadExternal hint at namespace/tu scope

2018-01-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ilya-biryukov. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D42428 Files: include/clang-c/Index.h include/clang/Sema/CodeCompleteOptions.h lib/Sema/SemaLookup.cpp test/Index/complete-p

[PATCH] D16403: Add scope information to CFG

2018-01-23 Thread Maxim Ostapenko via Phabricator via cfe-commits
m.ostapenko updated this revision to Diff 131091. m.ostapenko added a comment. Herald added a subscriber: llvm-commits. Rebased and ping. Repository: rL LLVM https://reviews.llvm.org/D16403 Files: include/clang/Analysis/AnalysisDeclContext.h include/clang/Analysis/CFG.h include/clang/S

r323224 - [WebAssembly] Add mem.* builtin functions.

2018-01-23 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 23 09:04:04 2018 New Revision: 323224 URL: http://llvm.org/viewvc/llvm-project?rev=323224&view=rev Log: [WebAssembly] Add mem.* builtin functions. This corresponds to r323222 in LLVM. The new names are not yet finalized, so use them at your own risk. Modified: cfe/t

r323225 - test: adjust the target for some Windows tests

2018-01-23 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Jan 23 09:05:57 2018 New Revision: 323225 URL: http://llvm.org/viewvc/llvm-project?rev=323225&view=rev Log: test: adjust the target for some Windows tests The tests are targeting Windows but do not specify an environment. When executed on Linux, they would use an ELF o

r323226 - clang-format: Support macros in front of @interface / @protocol for ObjC code.

2018-01-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Jan 23 09:10:25 2018 New Revision: 323226 URL: http://llvm.org/viewvc/llvm-project?rev=323226&view=rev Log: clang-format: Support macros in front of @interface / @protocol for ObjC code. Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp cfe/trunk/lib/Format/Unw

[clang-tools-extra] r323227 - [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Tue Jan 23 09:13:57 2018 New Revision: 323227 URL: http://llvm.org/viewvc/llvm-project?rev=323227&view=rev Log: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init if using C++2a Summary: C++2a allows bitfields to have default member initializers

[PATCH] D42426: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init if using C++2a

2018-01-23 Thread Malcolm Parsons via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323227: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init if… (authored by malcolm.parsons, committed by ). Changed prior to commit: https://reviews.llvm.org/D42426?vs=131088&id

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

2018-01-23 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. It allows to get rid of CppFile::getLastCommand and simplify the code in the upcoming threading patch. Repository: rCTE Clang Tools Extra https://reviews.ll

r323228 - Name two bool parameters. No behavior change.

2018-01-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Jan 23 09:29:41 2018 New Revision: 323228 URL: http://llvm.org/viewvc/llvm-project?rev=323228&view=rev Log: Name two bool parameters. No behavior change. Modified: cfe/trunk/lib/Format/FormatToken.h Modified: cfe/trunk/lib/Format/FormatToken.h URL: http://llvm.org/vie

r323230 - test: simplify the matching logic a bit (NFC)

2018-01-23 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Jan 23 09:57:04 2018 New Revision: 323230 URL: http://llvm.org/viewvc/llvm-project?rev=323230&view=rev Log: test: simplify the matching logic a bit (NFC) Use CHECK-SAME directives to simplify the test conditions a bit. This makes it easier to see what is being checked.

[PATCH] D42242: Make libc++abi work with gcc's ARM unwind library

2018-01-23 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists updated this revision to Diff 131102. mclow.lists added a comment. Find *all* the places that we are using `exception_class` and wrap them in helper routines. https://reviews.llvm.org/D42242 Files: src/cxa_default_handlers.cpp src/cxa_exception.cpp src/cxa_exception.hpp src

r323232 - [OPENMP] Remove more empty SourceLocations() from the code.

2018-01-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 23 10:12:38 2018 New Revision: 323232 URL: http://llvm.org/viewvc/llvm-project?rev=323232&view=rev Log: [OPENMP] Remove more empty SourceLocations() from the code. Removed more empty SourceLocations() from the OpenMP code and replaced with the correct locations for b

r323231 - test/Driver: Add some --stdlib=platform, NFC.

2018-01-23 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Tue Jan 23 10:12:12 2018 New Revision: 323231 URL: http://llvm.org/viewvc/llvm-project?rev=323231&view=rev Log: test/Driver: Add some --stdlib=platform, NFC. This fixes the failing test when building with CLANG_DEFAULT_CXX_STDLIB. Modified: cfe/trunk/test/Driver/solari

[PATCH] D42174: [clangd] Refactored threading in ClangdServer

2018-01-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 131105. ilya-biryukov marked 4 inline comments as done. ilya-biryukov added a comment. - Renamed SimpleThreadPool to ThreadPool - Removed PCHs from Scheduler's constructor - Renamed waitFor(AST|Preamble)Action to blocking(AST|Preamble)Read - Updates - Re

r323235 - [Docs] Re-generate command line documentation.

2018-01-23 Thread Craig Topper via cfe-commits
Author: ctopper Date: Tue Jan 23 10:40:15 2018 New Revision: 323235 URL: http://llvm.org/viewvc/llvm-project?rev=323235&view=rev Log: [Docs] Re-generate command line documentation. Modified: cfe/trunk/docs/ClangCommandLineReference.rst Modified: cfe/trunk/docs/ClangCommandLineReference.rst U

[PATCH] D42174: [clangd] Refactored threading in ClangdServer

2018-01-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdServer.cpp:222 + } + // We currently do all the reads of the AST on a running thread to avoid + // inconsistent states coming from subsequent updates. sammccall wrote: > Having trouble with this one

[PATCH] D42357: Under limitation of allocated buffer, inplace_merge() does NOT take usage of partial allocated buffer but applies native rotate directly.

2018-01-23 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added inline comments. Comment at: include/algorithm:2515 +{ +pointer __buff_end = __move(__first, __middle, __buff); +__move(__middle, __last, __first); mclow.lists wrote: > Probably a good idea to qualify these calls with `_VSTD

r323236 - [OPENMP] Replace call of EmitLoadOfLValue() by EmitLoadOfScalar(), NFC.

2018-01-23 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jan 23 10:44:14 2018 New Revision: 323236 URL: http://llvm.org/viewvc/llvm-project?rev=323236&view=rev Log: [OPENMP] Replace call of EmitLoadOfLValue() by EmitLoadOfScalar(), NFC. Replace calls of EmitLoadOfLValue() by EmitLoadOfScalar() functions if it is known that the

[PATCH] D42276: [Driver] Add an -fexperimental-isel driver option to enable/disable GlobalISel

2018-01-23 Thread Quentin Colombet via Phabricator via cfe-commits
qcolombet added inline comments. Comment at: lib/Driver/ToolChains/Clang.cpp:4699 +else + CmdArgs.push_back("-global-isel=0"); + } aemerson wrote: > qcolombet wrote: > > qcolombet wrote: > > > I think that it would be useful to also set -global-isel-abo

[libcxx] r323237 - libcxx: Rename vasprintf function to __libcpp_vasprintf.

2018-01-23 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Tue Jan 23 10:53:33 2018 New Revision: 323237 URL: http://llvm.org/viewvc/llvm-project?rev=323237&view=rev Log: libcxx: Rename vasprintf function to __libcpp_vasprintf. The language standard does not define a function with this name, so it is part of the user's namespace. This c

[PATCH] D42174: [clangd] Refactored threading in ClangdServer

2018-01-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdServer.h:164 +/// Handles running tasks for ClangdServer and managing the resources (e.g., +/// preambles and ASTs) for opened files. sammccall wrote: > This is a nice abstraction, so much better tha

r323239 - [CUDA] CUDA has no device-side library builtins.

2018-01-23 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Jan 23 11:08:18 2018 New Revision: 323239 URL: http://llvm.org/viewvc/llvm-project?rev=323239&view=rev Log: [CUDA] CUDA has no device-side library builtins. We should (almost) never consider a device-side declaration to match a library builtin functio. Otherwise clang may i

[PATCH] D42319: [CUDA] CUDA has no device-side library builtins.

2018-01-23 Thread Artem Belevich via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323239: [CUDA] CUDA has no device-side library builtins. (authored by tra, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42319?vs=130697&id=

r323241 - AST: adjust ObjC MS mangling to work with typedefs

2018-01-23 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Jan 23 11:17:25 2018 New Revision: 323241 URL: http://llvm.org/viewvc/llvm-project?rev=323241&view=rev Log: AST: adjust ObjC MS mangling to work with typedefs Rather than hardcode the pointerness of the `id` and `class` types, handle them generically. This allows for t

r323244 - [html] [NFC] Use raw strings to dump the style table.

2018-01-23 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jan 23 11:28:43 2018 New Revision: 323244 URL: http://llvm.org/viewvc/llvm-project?rev=323244&view=rev Log: [html] [NFC] Use raw strings to dump the style table. Modified: cfe/trunk/lib/Rewrite/HTMLRewrite.cpp Modified: cfe/trunk/lib/Rewrite/HTMLRewrite.cpp

r323245 - [analyzer] Show full analyzer invocation for reproducibility in HTML reports

2018-01-23 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jan 23 11:28:52 2018 New Revision: 323245 URL: http://llvm.org/viewvc/llvm-project?rev=323245&view=rev Log: [analyzer] Show full analyzer invocation for reproducibility in HTML reports Analyzing problems which appear in scan-build results can be very difficult,

[PATCH] D42170: Fixit for 'typedef' instead of 'typename' typo

2018-01-23 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added inline comments. Comment at: Parse/ParseTemplate.cpp:492 + // Is there just a typo in the input code? ('typedef' instead of 'typename') + if (Tok.is(tok::kw_typedef)) { +Diag(Tok.getLocation(), diag::err_expected_template_parameter); jkorous-a

r323247 - CodeGen: use `llvm.used` for ObjC protocols

2018-01-23 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Tue Jan 23 11:35:51 2018 New Revision: 323247 URL: http://llvm.org/viewvc/llvm-project?rev=323247&view=rev Log: CodeGen: use `llvm.used` for ObjC protocols These symbols are supposed to be preserved even by the linker. Use the `llvm.used` to ensure that the symbols are not

r323251 - [analyzer] Mark lines as relevant even if they weren't executed but have a label attached

2018-01-23 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jan 23 12:01:31 2018 New Revision: 323251 URL: http://llvm.org/viewvc/llvm-project?rev=323251&view=rev Log: [analyzer] Mark lines as relevant even if they weren't executed but have a label attached Differential Revision: https://reviews.llvm.org/D42320 Added:

[PATCH] D42320: [analyzer] Mark lines as relevant even if they weren't executed but have a label attached

2018-01-23 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC323251: [analyzer] Mark lines as relevant even if they weren't executed but have a… (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Repository: rC Clang https://r

r323253 - [WebAssembly] Factor out settings common to wasm32 and wasm64. NFC.

2018-01-23 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 23 12:22:12 2018 New Revision: 323253 URL: http://llvm.org/viewvc/llvm-project?rev=323253&view=rev Log: [WebAssembly] Factor out settings common to wasm32 and wasm64. NFC. MaxAtomicPromoteWidth and MaxAtomicInlineWidth are 64 on both wasm32 and wasm64, so they can be set

  1   2   >