r331745 - [C++2a] Implement operator<=>: Fix another bug in the code gen tests.

2018-05-08 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue May 8 00:56:05 2018 New Revision: 331745 URL: http://llvm.org/viewvc/llvm-project?rev=331745&view=rev Log: [C++2a] Implement operator<=>: Fix another bug in the code gen tests. Sorry for the failures. I'm quite new at writing code gen tests, and I'm not sure the best way

[PATCH] D45680: [C++2a] Implement operator<=> Part 2: Operator Rewritting and Overload Resolution.

2018-05-08 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 145643. EricWF added a comment. - Rebase on master. I think the correct direction to head with this patch is to start removing the bits of the implementation which evaluate and build rewritten expressions during overload resolution. I'll submit such an updat

[PATCH] D46386: Adding __atomic_fetch_min/max intrinsics to clang

2018-05-08 Thread Elena Demikhovsky via Phabricator via cfe-commits
delena updated this revision to Diff 145646. delena added a comment. Removed the unsigned version of atomics. Enhanced semantics check. Added more tests. Added documentation. Repository: rC Clang https://reviews.llvm.org/D46386 Files: docs/LanguageExtensions.rst include/clang/Basic/Built

[PATCH] D45815: [libclang] Allow skipping function bodies in preamble only

2018-05-08 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik updated this revision to Diff 145648. nik marked 3 inline comments as done. nik edited the summary of this revision. nik added a comment. Addressed comments. Repository: rC Clang https://reviews.llvm.org/D45815 Files: include/clang-c/Index.h include/clang/Frontend/ASTUnit.h lib/Fro

[PATCH] D45815: [libclang] Allow skipping function bodies in preamble only

2018-05-08 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik added inline comments. Comment at: include/clang/Frontend/ASTUnit.h:370 + IntrusiveRefCntPtr VFS, + SkipFunctionBodiesScope SkipFunctionBodiesScp = + SkipFunctionBodiesScope::None, ilya-biryukov wrote: > NIT: Maybe keep the name `SkipFuncti

[PATCH] D45680: [C++2a] Implement operator<=> Part 2: Operator Rewritting and Overload Resolution.

2018-05-08 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. I'm still not sure how to best generate a diff that best ignores white spaces changes caused by clang-format or my editor. I'll work on removing existing whitespace changes. https://reviews.llvm.org/D45680 ___ cfe-commits m

[PATCH] D46572: [clang-format] Add raw string formatting to release notes

2018-05-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D46572 Files: docs/ReleaseNotes.rst Index: docs/ReleaseNotes.rst === --- docs/ReleaseNotes.rst +++ docs/Rele

[PATCH] D46572: [clang-format] Add raw string formatting to release notes

2018-05-08 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. Thanks! Repository: rC Clang https://reviews.llvm.org/D46572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

2018-05-08 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:44 + int MatchingStackIndex = Stack.size() - 1; + while (MatchingStackIndex >= 0 && Stack[MatchingStackIndex].Tok != &Tok) +--MatchingStackIndex; I think this needs a long explan

r331750 - [clang-format] Add raw string formatting to release notes

2018-05-08 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue May 8 02:25:12 2018 New Revision: 331750 URL: http://llvm.org/viewvc/llvm-project?rev=331750&view=rev Log: [clang-format] Add raw string formatting to release notes Reviewers: hans Reviewed By: hans Subscribers: cfe-commits Differential Revision: https://reviews.llv

[PATCH] D46572: [clang-format] Add raw string formatting to release notes

2018-05-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL331750: [clang-format] Add raw string formatting to release notes (authored by krasimir, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D46572 Fi

[PATCH] D46115: [ASTImporter] properly import SrcLoc of Attr

2018-05-08 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin accepted this revision. a.sidorin added a comment. This revision is now accepted and ready to land. Looks good! Comment at: lib/AST/ASTImporter.cpp:2650 + for (const auto *A : D->attrs()) +ToIndirectField->addAttr(Importer.Import(const_cast(A))); --

r331753 - Fix 'not all control paths return a value' MSVC warnings. NFCI.

2018-05-08 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue May 8 02:40:32 2018 New Revision: 331753 URL: http://llvm.org/viewvc/llvm-project?rev=331753&view=rev Log: Fix 'not all control paths return a value' MSVC warnings. NFCI. Modified: cfe/trunk/lib/AST/ExprConstant.cpp cfe/trunk/lib/CodeGen/CGExprAgg.cpp Modified:

[PATCH] D46524: [clangd] Extract scoring/ranking logic, and shave yaks.

2018-05-08 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. The new uploaded diff has lots of unrelated changes to clang-tidy, clang-move, etc... Looking at commits, it seems `arc diff` was called with the wrong base commit... Could you please reupload the change? Comment at: clangd/Quality.h:45 + +// A

[PATCH] D46115: [ASTImporter] properly import SrcLoc of Attr

2018-05-08 Thread Rafael Stahl via Phabricator via cfe-commits
r.stahl updated this revision to Diff 145660. r.stahl added a comment. Didn't see that overload, thanks! I need someone to commit this for me. https://reviews.llvm.org/D46115 Files: include/clang/AST/ASTImporter.h lib/AST/ASTImporter.cpp test/Import/attr/Inputs/S.cpp test/Import/attr/t

[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

2018-05-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 145661. krasimir marked 2 inline comments as done. krasimir added a comment. - Address review comments Repository: rC Clang https://reviews.llvm.org/D46519 Files: lib/Format/ContinuationIndenter.cpp lib/Format/ContinuationIndenter.h lib/Format/Unw

[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

2018-05-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir marked an inline comment as done and an inline comment as not done. krasimir added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:44 + int MatchingStackIndex = Stack.size() - 1; + while (MatchingStackIndex >= 0 && Stack[MatchingStackIndex].Tok != &Tok

[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

2018-05-08 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. Generally looks good. Comment at: lib/Format/ContinuationIndenter.cpp:93 + break; +if (End->Next->is(tok::r_brace)) { + const ParenState *State = FindParenSta

[PATCH] D41537: Optionally add code completion results for arrow instead of dot

2018-05-08 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added inline comments. Comment at: include/clang-c/Index.h:5220 +CINDEX_LINKAGE CXString +clang_getCompletionCorrection(CXCompletionString completion_string, + unsigned correction_index, ilya-biryukov wrote: > I'm a bit vary abo

[PATCH] D41537: Optionally add code completion results for arrow instead of dot

2018-05-08 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan updated this revision to Diff 145664. yvvan added a comment. Address comments and provide diff with full context https://reviews.llvm.org/D41537 Files: include/clang-c/Index.h include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/CodeCompleteConsumer.h include/clang/Sema/C

[PATCH] D46522: [clang] cmake: resolve symlinks in ClangConfig.cmake

2018-05-08 Thread Peter Wu via Phabricator via cfe-commits
Lekensteyn added reviewers: brad.king, gottesmm, mgorny. Lekensteyn added a comment. Hi, this patch was required to make `find_package(Clang CONFIG)` work when `/usr/lib/llvm/clang-X.Y` was a symlink and is integrated in the Debian packaging. Please have a look, thanks! One unfortunate limitati

[PATCH] D46159: [clang-tidy] Add a flag to enable alpha checkers

2018-05-08 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Given Artem's answer (and if there are no objections from other CSA maintainers), I have no concerns with this patch going in. A couple of minor nits. Comment at: clang-tid

[PATCH] D46233: [ASTMatchers] Overload isConstexpr for ifStmts

2018-05-08 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG https://reviews.llvm.org/D46233 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D46159: [clang-tidy] Add a flag to enable alpha checkers

2018-05-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. Aside from a minor commenting nit, also LGTM. Comment at: clang-tidy/tool/ClangTidyMain.cpp:195 +/// This option allows enabling alpha checkers from the static analyzer, that +/// are experimental. This opti

r331759 - [ASTMatchers] Overload isConstexpr for ifStmts

2018-05-08 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue May 8 04:53:32 2018 New Revision: 331759 URL: http://llvm.org/viewvc/llvm-project?rev=331759&view=rev Log: [ASTMatchers] Overload isConstexpr for ifStmts Differential Revision: https://reviews.llvm.org/D46233 Modified: cfe/trunk/docs/LibASTMatchersReference.html

[PATCH] D46233: [ASTMatchers] Overload isConstexpr for ifStmts

2018-05-08 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC331759: [ASTMatchers] Overload isConstexpr for ifStmts (authored by xazax, committed by ). Changed prior to commit: https://reviews.llvm.org/D46233?vs=145370&id=145668#toc Repository: rC Clang https

[PATCH] D46504: [clang-tidy] Profile is a per-AST (per-TU) data.

2018-05-08 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG with a couple of nits. Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:181 std::unique_ptr OptionsProvider) -: DiagEngine(nullptr), OptionsProvider(std::mo

[PATCH] D46188: [clang-tidy] Add a flag to enable debug checkers

2018-05-08 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. I don't think debug CSA checkers belong to clang-tidy. If one needs to dump CFG, they are probably doing quite involved stuff already, so going a step further and running `clang -cc1

[PATCH] D42933: [Sema] Avoid -Wformat warning for NSInteger/NSUInteger 'int' values with %zu/%zi long specifiers

2018-05-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D42933#1090268, @jfb wrote: > I was just looking at this, and I think @arphaman's patch is pretty much the > right approach (with 2 suggested fixes below). > > I don't think the code we're currently warning on is broken: a user code has

[PATCH] D46188: [clang-tidy] Add a flag to enable debug checkers

2018-05-08 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added subscribers: george.karpenkov, NoQ, dcoughlin. lebedev.ri added a comment. In https://reviews.llvm.org/D46188#1091221, @alexfh wrote: > I don't think debug CSA checkers belong to clang-tidy. If one needs to dump > CFG, they are probably doing quite involved stuff already, so goi

[PATCH] D46504: [clang-tidy] Profile is a per-AST (per-TU) data.

2018-05-08 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D46504#1091210, @alexfh wrote: > LG with a couple of nits. Thank you for the review, faster than ever :) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D46504 ___ cfe-commits

[PATCH] D46115: [ASTImporter] properly import SrcLoc of Attr

2018-05-08 Thread Aleksei Sidorin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL331762: [ASTImporter] Properly import SourceLocations of Attrs (authored by a.sidorin, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D46115?v

r331762 - [ASTImporter] Properly import SourceLocations of Attrs

2018-05-08 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Tue May 8 05:45:21 2018 New Revision: 331762 URL: http://llvm.org/viewvc/llvm-project?rev=331762&view=rev Log: [ASTImporter] Properly import SourceLocations of Attrs Patch by Rafael Stahl! Differential Revision: https://reviews.llvm.org/D46115 Added: cfe/trunk/test

[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

2018-05-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 145677. krasimir added a comment. - Added other parens detection Repository: rC Clang https://reviews.llvm.org/D46519 Files: lib/Format/ContinuationIndenter.cpp lib/Format/ContinuationIndenter.h lib/Format/UnwrappedLineFormatter.cpp unittests/Fo

[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

2018-05-08 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:93 + break; +if (End->Next->is(tok::r_brace)) { + const ParenState *State = FindParenState(End->Next->MatchingParen); djasper

[clang-tools-extra] r331763 - [clang-tidy] Profile is a per-AST (per-TU) data.

2018-05-08 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue May 8 06:14:21 2018 New Revision: 331763 URL: http://llvm.org/viewvc/llvm-project?rev=331763&view=rev Log: [clang-tidy] Profile is a per-AST (per-TU) data. Summary: As discussed in D45931, currently, profiling output of clang-tidy is somewhat not great. It outputs on

[PATCH] D46504: [clang-tidy] Profile is a per-AST (per-TU) data.

2018-05-08 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL331763: [clang-tidy] Profile is a per-AST (per-TU) data. (authored by lebedevri, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D46504?vs=1454

[PATCH] D46541: [CodeGen] Improve diagnostics related to target attributes

2018-05-08 Thread Gabor Buella via Phabricator via cfe-commits
GBuella updated this revision to Diff 145680. https://reviews.llvm.org/D46541 Files: lib/CodeGen/CodeGenFunction.cpp lib/CodeGen/CodeGenModule.cpp lib/CodeGen/CodeGenModule.h test/CodeGen/target-features-error-2.c test/CodeGen/target-features-error.c Index: test/CodeGen/target-features

[PATCH] D46540: [X86] ptwrite intrinsic

2018-05-08 Thread Gabor Buella via Phabricator via cfe-commits
GBuella updated this revision to Diff 145681. GBuella added a comment. Rebased. https://reviews.llvm.org/D46540 Files: include/clang/Basic/BuiltinsX86.def include/clang/Basic/BuiltinsX86_64.def include/clang/Driver/Options.td lib/Basic/Targets/X86.cpp lib/Basic/Targets/X86.h lib/Hea

[PATCH] D46000: [AST] Added a helper to extract a user-friendly text of a comment.

2018-05-08 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 145683. ilya-biryukov marked 3 inline comments as done. ilya-biryukov added a comment. Herald added a subscriber: mgorny. - Move unit tests from clangd code to AST tests - Assert locations are valid - Address review other comments Repository: rC Clan

[PATCH] D46000: [AST] Added a helper to extract a user-friendly text of a comment.

2018-05-08 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: lib/AST/RawCommentList.cpp:376 +SourceMgr.getSpellingColumnNumber(Tok.getLocation(), &LocInvalid); +if (LocInvalid) + TokColumn = 0; ioeric wrote: > This is a bit confusing... Could you please add

[PATCH] D46001: [CodeComplete] Expose helpers to get RawComment of completion result.

2018-05-08 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. @arphaman, friendly ping. In case you're the wrong person to review it, I'll try to find someone else. Repository: rC Clang https://reviews.llvm.org/D46001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

r331766 - [OpenCL] Factor out language version printing

2018-05-08 Thread Sven van Haastregt via cfe-commits
Author: svenvh Date: Tue May 8 06:47:43 2018 New Revision: 331766 URL: http://llvm.org/viewvc/llvm-project?rev=331766&view=rev Log: [OpenCL] Factor out language version printing Generate a printable OpenCL language version number in a single place and select between the OpenCL C or OpenCL C++ ve

[PATCH] D46382: [OpenCL] Factor out language version printing

2018-05-08 Thread Sven van Haastregt via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL331766: [OpenCL] Factor out language version printing (authored by svenvh, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D46382?vs=144991&id=

[PATCH] D46188: [clang-tidy] Add a flag to enable debug checkers

2018-05-08 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D46188#1091237, @lebedev.ri wrote: > In https://reviews.llvm.org/D46188#1091221, @alexfh wrote: > > > I don't think debug CSA checkers belong to clang-tidy. If one needs to dump > > CFG, they are probably doing quite involved stuff already, so

[PATCH] D46187: [Analyzer] getRegisteredCheckers(): handle debug checkers too.

2018-05-08 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D46187#1088722, @NoQ wrote: > It seems that you're using debug checkers of the analyzer to gain some free > tools for exploring the source code (such as displaying a call graph) for > free, right? > > I believe we could also benefit from a met

r331768 - [OPENMP, NVPTX] Fix linkage of the global entries.

2018-05-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue May 8 07:16:57 2018 New Revision: 331768 URL: http://llvm.org/viewvc/llvm-project?rev=331768&view=rev Log: [OPENMP, NVPTX] Fix linkage of the global entries. The linkage of the global entries must be weak to enable support of redefinition of the same target regions in m

<    1   2