Re: [libcxx] r307751 - Fix unrepresentable enum for clang-cl unstable ABI

2017-07-11 Thread David Majnemer via cfe-commits
FWIW, I think you could just give the enum an explicit underlying type of size_type. On Tue, Jul 11, 2017 at 6:45 PM, Ben Craig via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: bcraig > Date: Tue Jul 11 18:45:13 2017 > New Revision: 307751 > > URL:

[PATCH] D34824: clang-format: add an option -verbose to list the files being processed

2017-07-11 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Generally upload diffs with full context to phabricator. That makes reviewing much easier. Comment at: test/Format/verbose.cpp:2 +// RUN: clang-format %s -verbose | FileCheck %s +// CHECK: Formatting + This seems like a pretty minimal

[PATCH] D34225: [clang-format] Teach clang-format how to handle C++ coroutines

2017-07-11 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/TokenAnnotator.cpp:2267 + return true; +if (Right.is(tok::l_paren) && Left.is(tok::kw_co_await) && +Left.Previous && Left.Previous->is(tok::kw_operator)) EricWF wrote: > djasper wrote: > > I

[PATCH] D35175: New option that adds the DiagID enum name and index to Diagnostic output.

2017-07-11 Thread don hinton via Phabricator via cfe-commits
hintonda added a comment. It's just an effort to make the code a bit more accessible, especially for new users (or ones not used to running find/grep). Steve had suggested adding an option that took the entire message and matched it when it was produced. However, that won't work very well

[PATCH] D35175: New option that adds the DiagID enum name and index to Diagnostic output.

2017-07-11 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. This is a cute hack, but... I'm not sure I accept the premise that it's a noteworthy obstacle to Clang development to do two greps instead of one. And I don't think I've ever had to debug a diagnostic where __FILE__ and __LINE__ information would've been helpful.

[PATCH] D34225: [clang-format] Teach clang-format how to handle C++ coroutines

2017-07-11 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked an inline comment as done. EricWF added a comment. @alexfh Thanks for correcting the reviewers. I had no idea who to add so I used something like `git-suggest-reviewers`. Comment at: lib/Format/Format.cpp:1958 LangOpts.DeclSpecKeyword = 1; // To get

[PATCH] D34225: [clang-format] Teach clang-format how to handle C++ coroutines

2017-07-11 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 106135. EricWF marked an inline comment as done. EricWF added a comment. - Address most review comments except those about `spaceBreakBetween` and `spaceBreakBefore`. https://reviews.llvm.org/D34225 Files: lib/Format/Format.cpp

[libcxx] r307751 - Fix unrepresentable enum for clang-cl unstable ABI

2017-07-11 Thread Ben Craig via cfe-commits
Author: bcraig Date: Tue Jul 11 18:45:13 2017 New Revision: 307751 URL: http://llvm.org/viewvc/llvm-project?rev=307751=rev Log: Fix unrepresentable enum for clang-cl unstable ABI When using LIBCXX_ABI_UNSTABLE=YES, clang-cl gave the following warning:

[libcxx] r307749 - Remove <__refstring> header; Move it into source directory.

2017-07-11 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jul 11 18:38:35 2017 New Revision: 307749 URL: http://llvm.org/viewvc/llvm-project?rev=307749=rev Log: Remove <__refstring> header; Move it into source directory. The libc++ <__refstring> headers has no real reason why it should be a public header that libc++ ships. The

[libcxxabi] r307748 - Remove dependancy on __refstring header; use local copy instead.

2017-07-11 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jul 11 18:34:21 2017 New Revision: 307748 URL: http://llvm.org/viewvc/llvm-project?rev=307748=rev Log: Remove dependancy on __refstring header; use local copy instead. This patch removes the dependancy on libc++'s __refstring header, which was only a header in the first

[libcxx] r307746 - Revert "[libc++] Refactoring __sync_* builtins; NFC (Reland)"

2017-07-11 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jul 11 18:16:33 2017 New Revision: 307746 URL: http://llvm.org/viewvc/llvm-project?rev=307746=rev Log: Revert "[libc++] Refactoring __sync_* builtins; NFC (Reland)" This reverts commit r307595. The commit had some issues that needed to first be addressed in review.

[PATCH] D35174: [libc++] Fix unrepresentable enum for clang-cl unstable ABI

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

r307743 - [ODRHash] Revert r307720 to fix buildbot.

2017-07-11 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Tue Jul 11 17:38:27 2017 New Revision: 307743 URL: http://llvm.org/viewvc/llvm-project?rev=307743=rev Log: [ODRHash] Revert r307720 to fix buildbot. Modified: cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td cfe/trunk/lib/AST/ODRHash.cpp

[PATCH] D33645: [analyzer] Add missing documentation for static analyzer checkers

2017-07-11 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. Thanks for the patch. It is really great to see these documented! Who is the target of this documentation? Is it developers of the analyzer or is it end users of the analyzer? If it is end users, it is unfortunate that we've been just grabbing examples from the

LLVM buildmaster will be updated and restarted tonight

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

[PATCH] D35230: [clang] buildFixItInsertionLine should use Hints of the same FID and LineNo

2017-07-11 Thread Chih-Hung Hsieh via Phabricator via cfe-commits
chh added inline comments. Comment at: lib/Frontend/TextDiagnostic.cpp:1109-1110 - } else { -FixItInsertionLine.clear(); -break; } chh wrote: > alexfh wrote: > > Did you figure out why the old code used to give up here? Why does your

[PATCH] D33109: Enhance synchscope representation (clang)

2017-07-11 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL307723: Enhance synchscope representation (clang) (authored by kzhuravl). Changed prior to commit: https://reviews.llvm.org/D33109?vs=105499=106106#toc Repository: rL LLVM

r307723 - Enhance synchscope representation (clang)

2017-07-11 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Tue Jul 11 15:23:37 2017 New Revision: 307723 URL: http://llvm.org/viewvc/llvm-project?rev=307723=rev Log: Enhance synchscope representation (clang) Relevant changes required for r307722. Differential Revision: https://reviews.llvm.org/D33109 Modified:

r307720 - [ODRHash] Support more method types.

2017-07-11 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Tue Jul 11 15:10:49 2017 New Revision: 307720 URL: http://llvm.org/viewvc/llvm-project?rev=307720=rev Log: [ODRHash] Support more method types. Hash CXXConstructorDecl and CXXDestructorDecl. Extend the diagnostics from CXXMethodDecl to include constructors and destructors.

[PATCH] D35081: [ThinLTO] Allow multiple summary entries.

2017-07-11 Thread Yunlian Jiang via Phabricator via cfe-commits
yunlian added a comment. I've sent a reproduce test case to tejohnson. https://reviews.llvm.org/D35081 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r307715 - [clangd] Fix Go to Definition not working in VSCode extension

2017-07-11 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Jul 11 14:26:18 2017 New Revision: 307715 URL: http://llvm.org/viewvc/llvm-project?rev=307715=rev Log: [clangd] Fix Go to Definition not working in VSCode extension Summary: The URI conversion logic was returning 'undefined' when going from server to VSCode which

[PATCH] D32817: [CMake] Build runtimes for Fuchsia targets

2017-07-11 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 106098. Repository: rL LLVM https://reviews.llvm.org/D32817 Files: cmake/caches/Fuchsia-stage2.cmake cmake/caches/Fuchsia.cmake Index: cmake/caches/Fuchsia.cmake === ---

[PATCH] D35175: New option that adds the DiagID enum name and index to Diagnostic output.

2017-07-11 Thread don hinton via Phabricator via cfe-commits
hintonda updated this revision to Diff 106094. hintonda added a comment. - Only maintain enum names in debug builds. Current cost of maintaining enum names is 176k. https://reviews.llvm.org/D35175 Files: include/clang/Basic/DiagnosticIDs.h include/clang/Basic/DiagnosticOptions.def

[clang-tools-extra] r307701 - Fix clang-tidy diagnostic.cpp test on Windows

2017-07-11 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Jul 11 13:22:17 2017 New Revision: 307701 URL: http://llvm.org/viewvc/llvm-project?rev=307701=rev Log: Fix clang-tidy diagnostic.cpp test on Windows Modified: clang-tools-extra/trunk/test/clang-tidy/diagnostic.cpp Modified:

[PATCH] D28953: [analyzer] Eliminate analyzer limitations on symbolic constraint generation

2017-07-11 Thread Dominic Chen via Phabricator via cfe-commits
ddcc updated this revision to Diff 106084. ddcc added a comment. Split plist-macros.cpp, and update analyzer_test.py to support tests that require not z3 https://reviews.llvm.org/D28953 Files: include/clang/StaticAnalyzer/Checkers/SValExplainer.h lib/StaticAnalyzer/Core/SValBuilder.cpp

r307697 - [OPENMP] Skip BuildMemberExpr() in BuildFieldReferenceExpr(), NFC, by Kai Noda

2017-07-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jul 11 12:43:28 2017 New Revision: 307697 URL: http://llvm.org/viewvc/llvm-project?rev=307697=rev Log: [OPENMP] Skip BuildMemberExpr() in BuildFieldReferenceExpr(), NFC, by Kai Noda In the OpenMP mode, we don't need to call BuildMemberExpr() only to discard its return

[PATCH] D35081: [ThinLTO] Allow multiple summary entries.

2017-07-11 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. In https://reviews.llvm.org/D35081#805506, @yunlian wrote: > This error happens when I try to triage a thinLTO failure on ARM. > > Initially I got some error like > Instruction does not dominate all uses! > > %205 = bitcast i1 (%"class.blink::LayoutObject"*)** %194

[PATCH] D33904: Add a __has_attribute_enhancement macro to clang

2017-07-11 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv abandoned this revision. george.burgess.iv added a comment. r306467 used `__has_extension(overloadable_unmarked)` instead. Thanks again for the comments! https://reviews.llvm.org/D33904 ___ cfe-commits mailing list

r307693 - [OPENMP] Add restriction for reduction clause in taskloop directives.

2017-07-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Jul 11 12:16:44 2017 New Revision: 307693 URL: http://llvm.org/viewvc/llvm-project?rev=307693=rev Log: [OPENMP] Add restriction for reduction clause in taskloop directives. Added checks for the reduction clauses in the taskloop directives: 1. Only addressable items must

[PATCH] D35271: Fix printing policy for AST context loaded from file

2017-07-11 Thread Johann Klähn via Phabricator via cfe-commits
jklaehn created this revision. jklaehn added a project: clang. In `ASTUnit::LoadFromASTFile`, the context object is set up using default-constructed `LangOptions` (which only later get populated). As the language options are used in the constructor of `PrintingPolicy`, this needs to be updated

[PATCH] D35131: Prevent ClangTools from generating dependency files.D34304 created a way for ToolInvocations to conditionally generatedependency files, and updated call sites to preserve the old behav

2017-07-11 Thread Sterling Augustine via Phabricator via cfe-commits
saugustine added a comment. Manuel, What do you think? https://reviews.llvm.org/D35131 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35081: [ThinLTO] Allow multiple summary entries.

2017-07-11 Thread Yunlian Jiang via Phabricator via cfe-commits
yunlian added a comment. This error happens when I try to triage a thinLTO failure on ARM. Initially I got some error like Instruction does not dominate all uses! %205 = bitcast i1 (%"class.blink::LayoutObject"*)** %194 to i8*, !dbg !51180 %200 = getelementptr i8, i8* %205, i32 ptrtoint

[PATCH] D35187: [libclang] Support for querying whether an enum is scoped

2017-07-11 Thread Johann Klähn via Phabricator via cfe-commits
jklaehn added a comment. I do not have commit access, it would be great if you could commit it. Thanks! https://reviews.llvm.org/D35187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35187: [libclang] Support for querying whether an enum is scoped

2017-07-11 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman accepted this revision. arphaman added a comment. This revision is now accepted and ready to land. LGTM. Do you have commit access or would you like me to commit it on your behalf? https://reviews.llvm.org/D35187 ___ cfe-commits mailing

Re: [PATCH] D14358: DWARF's forward decl of a template should have template parameters.

2017-07-11 Thread David Blaikie via cfe-commits
I'm roughly where I was before, I think: "In any case, it seems like it might make sense for you to upstream your template naming change and put it under the PS4 debugger tuning option, and put this change there too, once the motivation for it is in-tree. At that point, while I'd be curious about

Re: [PATCH] D35215: [clangd] Fix Go to Definition not working in VSCode extension

2017-07-11 Thread Krasimir Georgiev via cfe-commits
Not really. It will get confused by a setup in which you open 2 files depending on each other with spaces in their names, for example: A A: #include "B B", because clangd will not recognize that the local B%20B is the same as B B. On Tue, Jul 11, 2017 at 7:35 PM, Marc-Andre Laperle via

[PATCH] D35187: [libclang] Support for querying whether an enum is scoped

2017-07-11 Thread Johann Klähn via Phabricator via cfe-commits
jklaehn updated this revision to Diff 106066. jklaehn added a project: clang. https://reviews.llvm.org/D35187 Files: bindings/python/clang/cindex.py bindings/python/tests/cindex/test_cursor.py include/clang-c/Index.h test/Index/print-type-declaration.cpp

[PATCH] D34824: clang-format: add an option -verbose to list the files being processed

2017-07-11 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru added a comment. is that ok @djasper ? https://reviews.llvm.org/D34824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-11 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews added a comment. In https://reviews.llvm.org/D35259#805415, @erichkeane wrote: > In https://reviews.llvm.org/D35259#805409, @rnk wrote: > > > In https://reviews.llvm.org/D35259#805284, @erichkeane wrote: > > > > > Oren discovered this miss to the original implementation. I'd reviewed

[PATCH] D35180: Expose the Clang::QualType to llvm::Type conversion functions

2017-07-11 Thread Benoit Vey via Phabricator via cfe-commits
Praetonus added a comment. I forgot to mention that I don't have commit access. If you or somebody else could commit this it would be great. https://reviews.llvm.org/D35180 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35225: [clang-tidy] add regression test to performance-unnecessary-value-param

2017-07-11 Thread Chih-Hung Hsieh via Phabricator via cfe-commits
chh updated this revision to Diff 106064. chh marked 2 inline comments as done. https://reviews.llvm.org/D35225 Files: test/clang-tidy/Inputs/performance-unnecessary-value-param/header-fixed.h test/clang-tidy/Inputs/performance-unnecessary-value-param/header.h

[PATCH] D35215: [clangd] Fix Go to Definition not working in VSCode extension

2017-07-11 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In the other review: "The tool is fine with spaces encoded as %20 by the way." If that's true, wouldn't that mean the other review is the way to go? Repository: rL LLVM https://reviews.llvm.org/D35215 ___ cfe-commits

[PATCH] D14358: DWARF's forward decl of a template should have template parameters.

2017-07-11 Thread Paul Robinson via Phabricator via cfe-commits
probinson updated this revision to Diff 106063. probinson added a comment. Refresh to current TOT, and ping. Funny what you can find in a year-old to-do list https://reviews.llvm.org/D14358 Files: lib/CodeGen/CGDebugInfo.cpp test/CodeGenCXX/debug-info-template-fwd-param.cpp

[PATCH] D35268: [ObjC] Ambiguous property synthesis should pick the 'readwrite' property and check for incompatible attributes

2017-07-11 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. This patch changes the way ambiguous property synthesis (i.e. when synthesizing a property that's declared in multiple protocols) is performed. Previously, we synthesized the first property that was found. This lead to problems when the property was synthesized

[PATCH] D35180: Expose the Clang::QualType to llvm::Type conversion functions

2017-07-11 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. Still looks good to me. Do you need help committing? https://reviews.llvm.org/D35180 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-11 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D35259#805409, @rnk wrote: > In https://reviews.llvm.org/D35259#805284, @erichkeane wrote: > > > Oren discovered this miss to the original implementation. I'd reviewed > > this internally quite a bit. > > > > The reason for the Win32ABI

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-11 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D35259#805284, @erichkeane wrote: > Oren discovered this miss to the original implementation. I'd reviewed this > internally quite a bit. > > The reason for the Win32ABI test is that MSVC 'long double' is actually small > enough for SSE

[PATCH] D34913: [clang-tidy] Add a new Android check "android-cloexec-socket"

2017-07-11 Thread Yan Wang via Phabricator via cfe-commits
yawanng updated this revision to Diff 106058. yawanng marked 4 inline comments as done. https://reviews.llvm.org/D34913 Files: clang-tidy/android/AndroidTidyModule.cpp clang-tidy/android/CMakeLists.txt clang-tidy/android/CloexecOpenCheck.cpp clang-tidy/android/CloexecSocketCheck.cpp

Re: [PATCH] D34896: Enable the new PM + SamlePGO + ThinLTO testing.

2017-07-11 Thread David Blaikie via cfe-commits
On Mon, Jul 10, 2017 at 10:58 AM Dehao Chen wrote: > This test was originally added in https://reviews.llvm.org/D34721 with > clang change. It's kind of dup of the previous test > (-check-prefix=SAMPLEPGO) in terms of testing the clang bits. But we > want to make sure the

[PATCH] D33676: Place implictly declared functions at block scope

2017-07-11 Thread Momchil Velikov via Phabricator via cfe-commits
chill updated this revision to Diff 106056. chill added a comment. Herald added a subscriber: eraman. Set the compound statement flag on all compound statement scopes (previous version used to set the flag on just enough scopes as to be sufficient for the purpose of inserting C90 implicit

[PATCH] D35238: [clangd] Remove uriConverter workaround in VS code client

2017-07-11 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir abandoned this revision. krasimir added a comment. https://reviews.llvm.org/D35215 is an even better solution to this problem! https://reviews.llvm.org/D35238 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35215: [clangd] Fix Go to Definition not working in VSCode extension

2017-07-11 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir accepted this revision. krasimir added a comment. This revision is now accepted and ready to land. Looks good! This is better than my https://reviews.llvm.org/D35238! Repository: rL LLVM https://reviews.llvm.org/D35215 ___ cfe-commits

[PATCH] D33676: Place implictly declared functions at block scope

2017-07-11 Thread Momchil Velikov via Phabricator via cfe-commits
chill added inline comments. Comment at: lib/Parse/ParseStmt.cpp:843-845 + return ParseCompoundStatement(isStmtExpr, +Scope::DeclScope | Scope::CompoundStmtScope); } rsmith wrote: > This seems to miss quite a lot of places that

[PATCH] D35230: [clang] buildFixItInsertionLine should use Hints of the same FID and LineNo

2017-07-11 Thread Chih-Hung Hsieh via Phabricator via cfe-commits
chh added inline comments. Comment at: lib/Frontend/TextDiagnostic.cpp:1109-1110 - } else { -FixItInsertionLine.clear(); -break; } alexfh wrote: > Did you figure out why the old code used to give up here? Why does your code > just

r307670 - Add missing dllimport member pointer template argument test from r307446

2017-07-11 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Jul 11 09:18:05 2017 New Revision: 307670 URL: http://llvm.org/viewvc/llvm-project?rev=307670=rev Log: Add missing dllimport member pointer template argument test from r307446 Added: cfe/trunk/test/CodeGenCXX/dllimport-memptr-global.cpp Added:

[PATCH] D35020: [Modules] Add ability to specify module name to module file mapping

2017-07-11 Thread Boris Kolpackov via Phabricator via cfe-commits
boris added a comment. Ping. https://reviews.llvm.org/D35020 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35020: [Modules] Add ability to specify module name to module file mapping

2017-07-11 Thread Boris Kolpackov via Phabricator via cfe-commits
boris updated this revision to Diff 106041. boris added a comment. Rebase on latest HEAD. https://reviews.llvm.org/D35020 Files: docs/ClangCommandLineReference.rst docs/Modules.rst include/clang/Driver/Options.td include/clang/Lex/HeaderSearch.h

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-11 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Oren discovered this miss to the original implementation. I'd reviewed this internally quite a bit. The reason for the Win32ABI test is that MSVC 'long double' is actually small enough for SSE registers in this case. I DO now (looking again, sorry Elizabeth)

r307665 - NetBSD uses soft-float by default, unless the environment is EABIHF or

2017-07-11 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Tue Jul 11 08:50:48 2017 New Revision: 307665 URL: http://llvm.org/viewvc/llvm-project?rev=307665=rev Log: NetBSD uses soft-float by default, unless the environment is EABIHF or GNUEABIHF. Modified: cfe/trunk/lib/Driver/ToolChains/Arch/ARM.cpp

r307664 - Run the preprocessor test as frontend test for NetBSD, since CC1 mode

2017-07-11 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Tue Jul 11 08:49:45 2017 New Revision: 307664 URL: http://llvm.org/viewvc/llvm-project?rev=307664=rev Log: Run the preprocessor test as frontend test for NetBSD, since CC1 mode doesn't get flags like the default target CPU. Update for test to reflect the difference. Modified:

r307663 - [ASTMatchers][NFC] integerLiteral(): Mention negative integers in

2017-07-11 Thread Clement Courbet via cfe-commits
Author: courbet Date: Tue Jul 11 08:45:22 2017 New Revision: 307663 URL: http://llvm.org/viewvc/llvm-project?rev=307663=rev Log: [ASTMatchers][NFC] integerLiteral(): Mention negative integers in documentation. Trying to match integerLiteral(-1) will silently fail, because an numeric literal is

[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

2017-07-11 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. This is much closer to what I had in mind, thanks! Now I think we're in a position to make this work for more than just the CUDA target. It looks like the added code is now: 1. Remove -march from the translated arguments (because any existing -march would apply only

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-11 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews created this revision. This change is part of the RegCall calling convention support for LLVM. Existing RegCall implementation was extended to include correct handling of Complex Long Double type. Complex long double types should be returned/passed in memory and not register stack.

[PATCH] D34913: [clang-tidy] Add a new Android check "android-cloexec-socket"

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: clang-tidy/utils/ASTUtils.h:24 + +/// Check whether a macro flag is present in the given argument. Only consider +/// cases of single match or

[PATCH] D35216: [analyzer] Escape symbols when creating std::initializer_list.

2017-07-11 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. These are some great questions, i guess it'd be better to discuss them more openly. As a quick dump of my current mood: - To me it seems obvious that we need to aim for a checker API that is both simple //and// powerful. This can probably by keeping the API as powerful as

[clang-tools-extra] r307661 - [clang-tidy] Extend diagnostics test.

2017-07-11 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Jul 11 08:23:05 2017 New Revision: 307661 URL: http://llvm.org/viewvc/llvm-project?rev=307661=rev Log: [clang-tidy] Extend diagnostics test. * test that no diagnostics are redirected to stderr * test that a file-based compilation database is not picked up when the

[PATCH] D34367: CodeGen: Fix address space of indirect function argument

2017-07-11 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 106030. yaxunl marked an inline comment as done. yaxunl edited the summary of this revision. yaxunl added a comment. Always put indirect arg in alloca addr space. https://reviews.llvm.org/D34367 Files: lib/CodeGen/CGCall.cpp lib/CodeGen/CGDecl.cpp

[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

2017-07-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UnaryStaticAssertCheck.cpp:32 + + if (!AssertMessage || AssertMessage->getLength()) +return; I think this should be `!AssertMessage->getLength()` Comment at:

[PATCH] D34367: CodeGen: Fix address space of indirect function argument

2017-07-11 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked 3 inline comments as done. yaxunl added inline comments. Comment at: lib/CodeGen/CGCall.cpp:1605 + ? CGM.getDataLayout().getAllocaAddrSpace() + : getContext().getTargetAddressSpace(LangAS::Default)); break; rjmccall

[PATCH] D34225: [clang-format] Teach clang-format how to handle C++ coroutines

2017-07-11 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/Format.cpp:1958 LangOpts.DeclSpecKeyword = 1; // To get __declspec. + LangOpts.CoroutinesTS = 1; return LangOpts; Can we change this only if Style.isCpp()? We should probably do that for other things,

[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

2017-07-11 Thread Barancsuk Lilla via Phabricator via cfe-commits
barancsuk updated this revision to Diff 106026. barancsuk added a comment. - Missed some fixes last time https://reviews.llvm.org/D35257 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UnaryStaticAssertCheck.cpp

[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

2017-07-11 Thread Barancsuk Lilla via Phabricator via cfe-commits
barancsuk updated this revision to Diff 106025. barancsuk marked 10 inline comments as done. barancsuk added a comment. - Address review comments https://reviews.llvm.org/D35257 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp

[PATCH] D34225: [clang-format] Teach clang-format how to handle C++ coroutines

2017-07-11 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. Looks good to me too, but I actually don't know this code. Leaving to Daniel! https://reviews.llvm.org/D34225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35081: [ThinLTO] Allow multiple summary entries.

2017-07-11 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. In https://reviews.llvm.org/D35081#805127, @fhahn wrote: > To reproduce the issue you could use > > +; Check that we only add a single summary entry for multiple definitions > +; of a linkonce_odr function > + > +; RUN: opt -module-summary %s -o %t1.bc > +;

[PATCH] D35051: [clang-tidy] Add misc-undefined-memory-manipulation check.

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Another thing is that at this point I'd already create a `bugprone` module (if nobody has a better name) and place the check there (together with the other memset-related check). https://reviews.llvm.org/D35051 ___

[PATCH] D35051: [clang-tidy] Add misc-undefined-memory-manipulation check.

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. As usual, please run the check at least on LLVM+Clang and include a brief summary of results into the description of the patch. https://reviews.llvm.org/D35051 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35081: [ThinLTO] Allow multiple summary entries.

2017-07-11 Thread Florian Hahn via Phabricator via cfe-commits
fhahn added a comment. To reproduce the issue you could use +; Check that we only add a single summary entry for multiple definitions +; of a linkonce_odr function + +; RUN: opt -module-summary %s -o %t1.bc +; RUN: opt -module-summary %s -o %t2.bc +; RUN: llvm-lto

[PATCH] D33841: [clang-tidy] redundant keyword check

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: docs/clang-tidy/checks/readability-redundant-keyword.rst:8 + +`extern` is redundant in function declarations + xazax.hun wrote: > alexfh wrote: > > Could you explain, why you think `extern` is redundant in function > >

[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

2017-07-11 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UnaryStaticAssertCheck.cpp:28 +void UnaryStaticAssertCheck::check(const MatchFinder::MatchResult ) { + + const auto *MatchedDecl = Can remove the empty line. Comment at:

[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

2017-07-11 Thread Barancsuk Lilla via Phabricator via cfe-commits
barancsuk updated this revision to Diff 106021. barancsuk added a comment. - Do not rewrite macro expansions https://reviews.llvm.org/D35257 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UnaryStaticAssertCheck.cpp

[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

2017-07-11 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. Please mention this check in docs/ReleaseNotes.rst (in alphabetical order). Comment at: clang-tidy/modernize/UnaryStaticAssertCheck.cpp:28 +void UnaryStaticAssertCheck::check(const MatchFinder::MatchResult ) { + + const auto *MatchedDecl =

[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

2017-07-11 Thread Barancsuk Lilla via Phabricator via cfe-commits
barancsuk created this revision. barancsuk added a project: clang-tools-extra. Herald added subscribers: xazax.hun, JDevlieghere, mgorny. The check finds `static_assert` declarations with empty messages, and replaces them with an unary `static_assert` declaration. The check is only applicable

[PATCH] D34225: [clang-format] Teach clang-format how to handle C++ coroutines

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. This looks good overall, btw. But please wait for Krasimir or Daniel, since they actually know this code ;] https://reviews.llvm.org/D34225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34225: [clang-format] Teach clang-format how to handle C++ coroutines

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Leaving only the most likely reviewers for this code. https://reviews.llvm.org/D34225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35254: [mips][mt][7/7] Add driver option for the MIPS MT ASE.

2017-07-11 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 https://reviews.llvm.org/D35254 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35194: [clang-tidy] clang-apply-replacements: Don't insert null entry

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. Thank you for the fix! A few comments below. Comment at: clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp:291-299 const FileEntry *Entry =

[PATCH] D35225: [clang-tidy] add regression test to performance-unnecessary-value-param

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:1 -// RUN: %check_clang_tidy %s performance-unnecessary-value-param %t +// RUN: cp

[PATCH] D35230: [clang] buildFixItInsertionLine should use Hints of the same FID and LineNo

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: lib/Frontend/TextDiagnostic.cpp:1109-1110 - } else { -FixItInsertionLine.clear(); -break; } Did you figure out why the old code used to give up here? Why does your code just continue?

[PATCH] D31326: Add option to export fixes to run-clang-tidy.py

2017-07-11 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D31326#803535, @mfherbst wrote: > I do not have commit rights to the svn if that's what you're asking, but I > could send the patch to llvm-commits if that makes it easier for you. No need to send the patch to the list separately,

[PATCH] D34878: [ARM] Option for reading thread pointer from coprocessor register

2017-07-11 Thread Strahinja Petrovic via Phabricator via cfe-commits
spetrovic added a comment. ping https://reviews.llvm.org/D34878 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35254: [mips][mt][7/7] Add driver option for the MIPS MT ASE.

2017-07-11 Thread Simon Dardis via Phabricator via cfe-commits
sdardis created this revision. Herald added a subscriber: arichardson. https://reviews.llvm.org/D35254 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/Arch/Mips.cpp test/Driver/mips-features.c Index: test/Driver/mips-features.c

[PATCH] D35175: New option that adds the DiagID enum name and index to Diagnostic output.

2017-07-11 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. > Currently looks like around 200k (4534 @ 33 byte avg length + ptr). If this > is too much, we could make it conditional based on NDEBUG or some other macro > at compile time. I think this is mostly useful during development, so some conditional mechanism would

[PATCH] D35082: [OpenCL] Add LangAS::opencl_private to represent private address space in AST

2017-07-11 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, thanks. https://reviews.llvm.org/D35082 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D35216: [analyzer] Escape symbols when creating std::initializer_list.

2017-07-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. At this point, I am a bit wondering about two questions. - When should something belong to a checker and when should something belong to the engine? Sometimes we model library aspects in the engine and model language constructs in checkers. - What is the checker

r307642 - [ObjC] Check that a subscript methods is declared for a qualified id type

2017-07-11 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jul 11 03:18:35 2017 New Revision: 307642 URL: http://llvm.org/viewvc/llvm-project?rev=307642=rev Log: [ObjC] Check that a subscript methods is declared for a qualified id type Objective-C subscript expressions report errors when a subscript method is not declared in

[PATCH] D35194: [clang-tidy] clang-apply-replacements: Don't insert null entry

2017-07-11 Thread Kevin Funk via Phabricator via cfe-commits
kfunk added inline comments. Comment at: clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp:296 + << "' doesn't exist. Ignoring...\n"; +} continue; yawanng wrote: > Maybe add some error message here if it's not an

r307638 - RecursiveASTVisitor should visit the nested name qualifiers in

2017-07-11 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jul 11 02:39:23 2017 New Revision: 307638 URL: http://llvm.org/viewvc/llvm-project?rev=307638=rev Log: RecursiveASTVisitor should visit the nested name qualifiers in a template specialisation rdar://33123354 Differential Revision: https://reviews.llvm.org/D34981

[PATCH] D34981: RecursiveASTVisitor should visit the nested name qualifiers in a template specialisation

2017-07-11 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. arphaman marked an inline comment as done. Closed by commit rL307638: RecursiveASTVisitor should visit the nested name qualifiers in (authored by arphaman). Changed prior to commit:

[PATCH] D35110: [Analyzer] Constraint Manager Negates Difference

2017-07-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:500 + // If the type of A - B is the same as the type of A, then use the type of + // B as the type of B - A. Otherwise keep the type of A - B. + SymbolRef negSym =

[PATCH] D35109: [Analyzer] SValBuilder Comparison Rearrangement

2017-07-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. Are you sure this works as intended when e.g.: `$a+2==$b*3` So on one of the sides, the ops are not additive? I would like to see some test cases for that. Comment at: lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:572 + lInt = >getRHS();

  1   2   >