[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-08-22 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 162139. devnexen added a comment. - Returns immediately for both case when sizeof destination. - Adding few more cases. https://reviews.llvm.org/D49722 Files: lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp test/Analysis/cstring-syntax.c Index: t

[PATCH] D51150: [x86/retpoline] Split the LLVM concept of retpolines into separate subtarget features for indirect calls and indirect branches.

2018-08-22 Thread Chandler Carruth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340515: [x86/retpoline] Split the LLVM concept of retpolines into separate (authored by chandlerc, committed by ). Changed prior to commit: https://reviews.llvm.org/D51150?vs=162130&id=162138#toc Repos

r340515 - [x86/retpoline] Split the LLVM concept of retpolines into separate

2018-08-22 Thread Chandler Carruth via cfe-commits
Author: chandlerc Date: Wed Aug 22 23:06:38 2018 New Revision: 340515 URL: http://llvm.org/viewvc/llvm-project?rev=340515&view=rev Log: [x86/retpoline] Split the LLVM concept of retpolines into separate subtarget features for indirect calls and indirect branches. This is in preparation for enabli

[PATCH] D51150: [x86/retpoline] Split the LLVM concept of retpolines into separate subtarget features for indirect calls and indirect branches.

2018-08-22 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc added a comment. Thanks! I'm going to go ahead and land this, but happy to iterate on anything if others have comments. Repository: rL LLVM https://reviews.llvm.org/D51150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

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

2018-08-22 Thread Darby Payne via Phabricator via cfe-commits
dpayne updated this revision to Diff 162129. dpayne added a comment. Adding unit tests to check indents, these were mostly taken from the original patch https://reviews.llvm.org/D22505. Repository: rC Clang https://reviews.llvm.org/D51120 Files: docs/ClangFormatStyleOptions.rst lib/Form

r340511 - Missing quote in previous commit

2018-08-22 Thread JF Bastien via cfe-commits
Author: jfb Date: Wed Aug 22 21:09:49 2018 New Revision: 340511 URL: http://llvm.org/viewvc/llvm-project?rev=340511&view=rev Log: Missing quote in previous commit The test was failing because I missed a quote. Modified: cfe/trunk/test/CodeGen/pr18235.c Modified: cfe/trunk/test/CodeGen/pr182

[PATCH] D51150: [x86/retpoline] Split the LLVM concept of retpolines into separate subtarget features for indirect calls and indirect branches.

2018-08-22 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM. Thanks. Repository: rL LLVM https://reviews.llvm.org/D51150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D51150: [x86/retpoline] Split the LLVM concept of retpolines into separate subtarget features for indirect calls and indirect branches.

2018-08-22 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc created this revision. chandlerc added reviewers: echristo, rnk, craig.topper. Herald added subscribers: hiraditya, mcrosier, sanjoy. Herald added a reviewer: javed.absar. This is in preparation for enabling *only* the call retpolines when using speculative load hardening. I've continue

r340510 - Improve incompatible triple error

2018-08-22 Thread JF Bastien via cfe-commits
Author: jfb Date: Wed Aug 22 20:55:24 2018 New Revision: 340510 URL: http://llvm.org/viewvc/llvm-project?rev=340510&view=rev Log: Improve incompatible triple error When complaining that the triple is incompatible with all targets, print out the triple not just a generic error about triples not m

[PATCH] D49511: [Sema/Attribute] Check for noderef attribute

2018-08-22 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: lib/Parse/ParseExpr.cpp:1126 + +Actions.StartCheckingNoDeref(); + rsmith wrote: > leonardchan wrote: > > rsmith wrote: > > > This parser-driven start/stop mechanism will not work in C++ templates. > > > Instead,

[PATCH] D49511: [Sema/Attribute] Check for noderef attribute

2018-08-22 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 162126. leonardchan marked 13 inline comments as done. Repository: rC Clang https://reviews.llvm.org/D49511 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticGroups.td include/clang/Basic/Diagnosti

r340502 - [analyzer] Preliminary version of retain count checking for OSObjects

2018-08-22 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 22 17:26:59 2018 New Revision: 340502 URL: http://llvm.org/viewvc/llvm-project?rev=340502&view=rev Log: [analyzer] Preliminary version of retain count checking for OSObjects Has quite a lot of false positives, disabled behind the flag. Differential Revision

[PATCH] D51049: Driver: Enable address-significance tables by default when targeting COFF.

2018-08-22 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc added a comment. With ELF it was around 0.1% for a self-host of Clang. I also checked the overhead with COFF for Chromium's base_unittests and it was around 0.2% without debug info. I think that's small enough that we can turn this on by default. Repository: rL LLVM https://reviews.llvm

r340501 - Revert "[CStringSyntaxChecker] Check strlcat sizeof check"

2018-08-22 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 22 17:02:35 2018 New Revision: 340501 URL: http://llvm.org/viewvc/llvm-project?rev=340501&view=rev Log: Revert "[CStringSyntaxChecker] Check strlcat sizeof check" This reverts commit 3073790e87378fea9a68fb052185fec9596ef135. The check is not correct, strlac

[PATCH] D50144: Add Windows support for the GNUstep Objective-C ABI V2.

2018-08-22 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:1276 +InitVar->setSection(".CRT$XCLa"); +CGM.addUsedGlobal(InitVar); + } mstorsjo wrote: > rjmccall wrote: > > DHowett-MSFT wrote: > > > rjmccall wrote: > > > > Is the priority system not go

r340500 - Revert "[CStringSyntaxChecker] Reduces space around error message for strlcat."

2018-08-22 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 22 17:02:12 2018 New Revision: 340500 URL: http://llvm.org/viewvc/llvm-project?rev=340500&view=rev Log: Revert "[CStringSyntaxChecker] Reduces space around error message for strlcat." This reverts commit 6b43b80320722da41ca6ef7a3b57cc300fb83094. Modified:

Re: r340483 - Revert "[ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt"

2018-08-22 Thread Shoaib Meenai via cfe-commits
Might be because the constructed AST for a @finally on Windows will contain a CapturedStmt: https://reviews.llvm.org/D47564. You probably want to explicitly specify a non windows-msvc triple in the test. From: cfe-commits on behalf of Raphael Isemann via cfe-commits Reply-To: Raphael Isemann

[PATCH] D51134: win: Omit ".exe" from clang and clang-cl driver-level diagnostics.

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

r340498 - win: Omit ".exe" from clang and clang-cl driver-level diagnostics.

2018-08-22 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Aug 22 16:53:39 2018 New Revision: 340498 URL: http://llvm.org/viewvc/llvm-project?rev=340498&view=rev Log: win: Omit ".exe" from clang and clang-cl driver-level diagnostics. Like https://reviews.llvm.org/D51133 but for clang. https://reviews.llvm.org/D51134 Modified:

[libunwind] r340496 - Creating release candidate rc2 from release_700 branch

2018-08-22 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 22 16:53:29 2018 New Revision: 340496 URL: http://llvm.org/viewvc/llvm-project?rev=340496&view=rev Log: Creating release candidate rc2 from release_700 branch Added: libunwind/tags/RELEASE_700/rc2/ (props changed) - copied from r340495, libunwind/branches/re

[libcxxabi] r340490 - Creating release candidate rc2 from release_700 branch

2018-08-22 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 22 16:52:36 2018 New Revision: 340490 URL: http://llvm.org/viewvc/llvm-project?rev=340490&view=rev Log: Creating release candidate rc2 from release_700 branch Added: libcxxabi/tags/RELEASE_700/rc2/ (props changed) - copied from r340489, libcxxabi/branches/re

[libcxx] r340489 - Creating release candidate rc2 from release_700 branch

2018-08-22 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 22 16:52:29 2018 New Revision: 340489 URL: http://llvm.org/viewvc/llvm-project?rev=340489&view=rev Log: Creating release candidate rc2 from release_700 branch Added: libcxx/tags/RELEASE_700/rc2/ (props changed) - copied from r340488, libcxx/branches/release_

r340483 - Revert "[ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt"

2018-08-22 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 22 16:50:30 2018 New Revision: 340483 URL: http://llvm.org/viewvc/llvm-project?rev=340483&view=rev Log: Revert "[ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt" This test breaks llvm-clang-x86_64-expensive-checks-win. Removed: cfe/tru

[PATCH] D50926: [SourceManager] Extract 'findFileIDsForFile' from 'translateFile' to allow mapping from one file entry to multiple FileIDs

2018-08-22 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman marked an inline comment as done. arphaman added inline comments. Comment at: lib/Basic/SourceManager.cpp:1705 // If we haven't found what we want yet, try again, but this time stat() // each of the files in case the files have changed since we originally ---

[PATCH] D50926: [SourceManager] Extract 'findFileIDsForFile' from 'translateFile' to allow mapping from one file entry to multiple FileIDs

2018-08-22 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 162106. arphaman added a comment. Address review comments. https://reviews.llvm.org/D50926 Files: include/clang/Basic/SourceManager.h lib/Basic/SourceManager.cpp unittests/Basic/SourceManagerTest.cpp Index: unittests/Basic/SourceManagerTest.cpp

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-08-22 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov reopened this revision. george.karpenkov added a comment. This revision is now accepted and ready to land. This is not correct, `strlcat(dest, "mystr", sizeof(dest))` is perfectly fine, as can be seen in many examples including strlcat man page. Repository: rL LLVM https://r

[PATCH] D51142: [ASTImporter] Add test for PackExpansionExpr

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added subscribers: cfe-commits, martong. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D51142 Files: test/Import/pack-expansion-expr/Inputs/F.cpp test/Import/pack-expansion-expr/test.cpp Index: test/Import/pack-e

[PATCH] D50109: [NFC] Add tags file to .gitignore

2018-08-22 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340479: [NFC] Add tags file to .gitignore (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.llvm.org/D50109?vs=162099&id=162

r340479 - [NFC] Add tags file to .gitignore

2018-08-22 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 22 16:23:17 2018 New Revision: 340479 URL: http://llvm.org/viewvc/llvm-project?rev=340479&view=rev Log: [NFC] Add tags file to .gitignore Differential Revision: https://reviews.llvm.org/D50109 Modified: cfe/trunk/.gitignore Modified: cfe/trunk/.gitigno

[PATCH] D51139: [analyzer] Track the problematic subexpression in UndefResultChecker

2018-08-22 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340474: [analyzer] Track the problematic subexpression in UndefResultChecker (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://revie

[PATCH] D51131: [analyzer] Track non-zero values in ReturnVisitor

2018-08-22 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340475: [analyzer] Track non-zero values in ReturnVisitor (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.llvm.org/D51131?

r340475 - [analyzer] Track non-zero values in ReturnVisitor

2018-08-22 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 22 16:17:25 2018 New Revision: 340475 URL: http://llvm.org/viewvc/llvm-project?rev=340475&view=rev Log: [analyzer] Track non-zero values in ReturnVisitor Tracking those can help to provide much better diagnostics in many cases. In general, most of the visit

[PATCH] D51130: [analyzer] [NFC] Minor refactoring of BugReporterVisitors

2018-08-22 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340473: [analyzer] [NFC] Minor refactoring of BugReporterVisitors (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.llvm.org

r340474 - [analyzer] Track the problematic subexpression in UndefResultChecker

2018-08-22 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 22 16:17:02 2018 New Revision: 340474 URL: http://llvm.org/viewvc/llvm-project?rev=340474&view=rev Log: [analyzer] Track the problematic subexpression in UndefResultChecker This is tested in a subsequent commit, which allows tracking those values. Different

r340473 - [analyzer] [NFC] Minor refactoring of BugReporterVisitors

2018-08-22 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Aug 22 16:16:44 2018 New Revision: 340473 URL: http://llvm.org/viewvc/llvm-project?rev=340473&view=rev Log: [analyzer] [NFC] Minor refactoring of BugReporterVisitors Differential Revision: https://reviews.llvm.org/D51130 Modified: cfe/trunk/lib/StaticAnalyz

[PATCH] D50547: [Driver] Use normalized triples for multiarch runtime path

2018-08-22 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340471: [Driver] Check normalized triples for multiarch runtime path (authored by phosek, committed by ). Changed prior to commit: https://reviews.llvm.org/D50547?vs=161821&id=162090#toc Repository:

r340471 - [Driver] Check normalized triples for multiarch runtime path

2018-08-22 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Aug 22 15:56:46 2018 New Revision: 340471 URL: http://llvm.org/viewvc/llvm-project?rev=340471&view=rev Log: [Driver] Check normalized triples for multiarch runtime path Previously we only used target triple as provided which matches the GCC behavior, but it also means tha

[PATCH] D51121: [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340468: [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt (authored by teemperor, committed by ). Repository: rC Clang https://reviews.llvm.org/D51121 Files: test/Import/objc

r340468 - [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt

2018-08-22 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 22 15:51:37 2018 New Revision: 340468 URL: http://llvm.org/viewvc/llvm-project?rev=340468&view=rev Log: [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: martong, cfe-commi

r340467 - [ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test.

2018-08-22 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 22 15:50:45 2018 New Revision: 340467 URL: http://llvm.org/viewvc/llvm-project?rev=340467&view=rev Log: [ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test. Summary: The `array-init-loop-expr` test is currently not testing the importing o

[PATCH] D51115: [ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test.

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340467: [ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test. (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://

[PATCH] D51110: [ASTImporter] Remove duplicated and dead CXXNamedCastExpr handling code.

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340466: [ASTImporter] Remove duplicated and dead CXXNamedCastExpr handling code. (authored by teemperor, committed by ). Changed prior to commit: https://reviews.llvm.org/D51110?vs=161994&id=162084#toc

r340466 - [ASTImporter] Remove duplicated and dead CXXNamedCastExpr handling code.

2018-08-22 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 22 15:49:32 2018 New Revision: 340466 URL: http://llvm.org/viewvc/llvm-project?rev=340466&view=rev Log: [ASTImporter] Remove duplicated and dead CXXNamedCastExpr handling code. Summary: `CXXNamedCastExpr` importing is already handled in the respective `VisitCXXNam

[PATCH] D51059: [ASTImporter] Add test for ObjCTypeParamDecl

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340465: [ASTImporter] Add test for ObjCTypeParamDecl (authored by teemperor, committed by ). Repository: rC Clang https://reviews.llvm.org/D51059 Files: test/Import/objc-param-decl/Inputs/S.m test

[PATCH] D51137: [clang-doc] Fix memory leaks

2018-08-22 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett created this revision. juliehockett added reviewers: leonardchan, jakehehrlich, lebedev.ri. Adds a virtual destructor to the base Info class. https://reviews.llvm.org/D51137 Files: clang-tools-extra/clang-doc/Representation.h clang-tools-extra/clang-doc/Serialize.cpp Index: c

r340465 - [ASTImporter] Add test for ObjCTypeParamDecl

2018-08-22 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 22 15:48:40 2018 New Revision: 340465 URL: http://llvm.org/viewvc/llvm-project?rev=340465&view=rev Log: [ASTImporter] Add test for ObjCTypeParamDecl Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: martong, cfe-commits Differential Revision: h

[PATCH] D51056: [ASTImporter] Add test for SwitchStmt

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340464: [ASTImporter] Add test for SwitchStmt (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51056?vs=161798&id=16208

r340464 - [ASTImporter] Add test for SwitchStmt

2018-08-22 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 22 15:47:10 2018 New Revision: 340464 URL: http://llvm.org/viewvc/llvm-project?rev=340464&view=rev Log: [ASTImporter] Add test for SwitchStmt Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: a_sidorin, martong, cfe-commits Differential Revisio

[PATCH] D51123: [ASTImporter] Add test for ObjCAutoreleasePoolStmt

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340463: [ASTImporter] Add test for ObjCAutoreleasePoolStmt (authored by teemperor, committed by ). Repository: rC Clang https://reviews.llvm.org/D51123 Files: test/Import/objc-autoreleasepool/Inputs

r340463 - [ASTImporter] Add test for ObjCAutoreleasePoolStmt

2018-08-22 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 22 15:45:04 2018 New Revision: 340463 URL: http://llvm.org/viewvc/llvm-project?rev=340463&view=rev Log: [ASTImporter] Add test for ObjCAutoreleasePoolStmt Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: martong, cfe-commits Differential Revis

[PATCH] D51134: win: Omit ".exe" from clang and clang-cl driver-level diagnostics.

2018-08-22 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. Nice, thanks! https://reviews.llvm.org/D51134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D51135: Rename has{MutableFields, VolatileMember} to has{Mutable, Volatile}Subobject. NFC.

2018-08-22 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone created this revision. Herald added a subscriber: cfe-commits. Rename `HasMutableFields` to `HasMutableSubobject` for accuracy. This bitflag is set whenever the record type has a mutable subobject, regardless of whether that subobject is a direct member, or a member of some b

[PATCH] D51134: win: Omit ".exe" from clang and clang-cl driver-level diagnostics.

2018-08-22 Thread Nico Weber via Phabricator via cfe-commits
thakis created this revision. thakis added a reviewer: hans. Like https://reviews.llvm.org/D51133 but for clang. https://reviews.llvm.org/D51134 Files: clang/tools/driver/driver.cpp Index: clang/tools/driver/driver.cpp === ---

[PATCH] D49885: Thread safety analysis: Allow relockable scopes

2018-08-22 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:932 + // We're relocking the underlying mutexes. Warn on double locking. + if (FSet.findLock(FactMan, UnderCp)) +Handler.handleDoubleLock(DiagKind, UnderCp.toString(), entry.loc()); --

[PATCH] D51056: [ASTImporter] Add test for SwitchStmt

2018-08-22 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. Thank you for working on this! Repository: rC Clang https://reviews.llvm.org/D51056 ___ cfe-commits mailing list cfe-commits@lists.llvm.

r340459 - Thread safety analysis: Allow relockable scopes

2018-08-22 Thread Aaron Puchert via cfe-commits
Author: aaronpuchert Date: Wed Aug 22 15:14:53 2018 New Revision: 340459 URL: http://llvm.org/viewvc/llvm-project?rev=340459&view=rev Log: Thread safety analysis: Allow relockable scopes Summary: It's already allowed to prematurely release a scoped lock, now we also allow relocking it again, poss

[PATCH] D51115: [ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test.

2018-08-22 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. Wow, I totally overlooked this. Thank you! Repository: rC Clang https://reviews.llvm.org/D51115 ___ cfe-commits mailing list cfe-commits

[PATCH] D47849: [OpenMP][Clang][NVPTX] Enable math functions called in an OpenMP NVPTX target device region to be resolved as device-native function calls

2018-08-22 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. `__clang_cuda_device_functions.h` is not intended to be a device-side math.h, despite having a lot of overlap/similarities. It may change at any time we get new CUDA version. I would suggest writing an OpenMP-specific replacement for math.h which would map to whatever devic

[PATCH] D49885: Thread safety analysis: Allow relockable scopes

2018-08-22 Thread Aaron Puchert via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340459: Thread safety analysis: Allow relockable scopes (authored by aaronpuchert, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D49885 Files:

[PATCH] D50250: [clang][ubsan] Implicit Conversion Sanitizer - integer sign change - clang part

2018-08-22 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 162050. lebedev.ri added a subscriber: chandlerc. lebedev.ri added a comment. Rebased ontop of https://reviews.llvm.org/D50901, added - ``-fsanitize=implicit-integer-arithmetic-value-change``: Catches implicit conversions that change the arithmetic

r340452 - [NFC] Test commit

2018-08-22 Thread Aaron Puchert via cfe-commits
Author: aaronpuchert Date: Wed Aug 22 14:06:04 2018 New Revision: 340452 URL: http://llvm.org/viewvc/llvm-project?rev=340452&view=rev Log: [NFC] Test commit Modified: cfe/trunk/lib/Analysis/ThreadSafety.cpp Modified: cfe/trunk/lib/Analysis/ThreadSafety.cpp URL: http://llvm.org/viewvc/llvm-p

[PATCH] D49244: Always search sysroot for GCC installs

2018-08-22 Thread David Greene via Phabricator via cfe-commits
greened added a comment. Ping? Repository: rC Clang https://reviews.llvm.org/D49244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D50547: [Driver] Use normalized triples for multiarch runtime path

2018-08-22 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. LGTM as-is Comment at: clang/lib/Driver/ToolChain.cpp:372 - const Driver &D = getDriver(); - SmallString<128> P(D.ResourceDir); - llvm::sys::path::append(P, D.getTargetTriple(), "lib"); - if (getVFS().exists(P)) { + fo

[PATCH] D50571: [clangd] add an extension field to LSP to transfer the diagnostic's category

2018-08-22 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. In https://reviews.llvm.org/D50571#1208635, @joaotavora wrote: > In https://reviews.llvm.org/D50571#1206020, @arphaman wrote: > > > In https://reviews.llvm.org/D50571#1205650, @joaotavora wrote: > > > > > > LGTM. Let's watch out for possible breakages in any of the clien

[PATCH] D51077: [clangd] send diagnostic categories only when 'categorySupport' capability was given by the client

2018-08-22 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340449: [clangd] send diagnostic categories only when 'categorySupport' (authored by arphaman, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/

[clang-tools-extra] r340449 - [clangd] send diagnostic categories only when 'categorySupport'

2018-08-22 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 22 13:30:06 2018 New Revision: 340449 URL: http://llvm.org/viewvc/llvm-project?rev=340449&view=rev Log: [clangd] send diagnostic categories only when 'categorySupport' capability was given by the client After r339738 Clangd started sending categories with each diagn

[PATCH] D50901: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks

2018-08-22 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 162040. lebedev.ri marked 2 inline comments as done. lebedev.ri added a comment. Rebased, addressed @vsk review note, should be NFC. @vsk thank you for taking a look! > LebedevRI: It looks like it's in good shape. I wasn't around for > the discussion re

[PATCH] D48027: [analyzer] Improve `CallDescription` to handle c++ method.

2018-08-22 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D48027#1207721, @rnkovacs wrote: > I guess it is highly unlikely for someone to write namespaces like that, and > if they do, I think they deserve to have them treated as a `std::string`. Yup. On the other hand, if we specify our method as `{"ba

Re: r314872 - We allow implicit function declarations as an extension in all C dialects. Remove OpenCL special case.

2018-08-22 Thread Richard Smith via cfe-commits
On Wed, 22 Aug 2018 at 06:55, Anastasia Stulova via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi Richard, > > > This is incorrect. Implicit function declarations declare unprototyped > functions, which are *not* variadic, and are in fact supported by Clang's > OpenCL language mode. > > We

[PATCH] D51121: [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor added inline comments. Comment at: test/Import/objc-try-catch/Inputs/F.m:9 +Exception *e; +@throw e; + } We usually should create a expression here, but the ObjCMessageExpr isn't implemented yet, so this bit weird code has to do the job. Rep

[PATCH] D51123: [ASTImporter] Add test for ObjCAutoreleasePoolStmt

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added subscribers: cfe-commits, martong. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D51123 Files: test/Import/objc-autoreleasepool/Inputs/F.m test/Import/objc-autoreleasepool/test.m Index: test/Import/objc-aut

[PATCH] D51121: [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor added a comment. Turns out, the clang-import-test actually allows passing clang args via `-Xcc`, so I probably will revert the lang options changes I did in the previous commits. Repository: rC Clang https://reviews.llvm.org/D51121 __

[PATCH] D51121: [ASTImporter] Add test for ObjCAtTryStmt/ObjCAtCatchStmt/ObjCAtThrowStmt

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added subscribers: cfe-commits, martong. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D51121 Files: test/Import/objc-try-catch/Inputs/F.m test/Import/objc-try-catch/test.m Index: test/Import/objc-try-catch/test.

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

2018-08-22 Thread Darby Payne via Phabricator via cfe-commits
dpayne created this revision. dpayne added reviewers: klimek, djasper. Herald added subscribers: cfe-commits, mgorny. Hi, This is another attempt at fixing the issue describe here https://reviews.llvm.org/D22505. Some code bases will have an extra indent for member variables and functions, whil

[PATCH] D50616: [Fixed Point Arithmetic] FixedPointCast

2018-08-22 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Core/ExprEngineC.cpp:419 + case CK_LValueBitCast: + case CK_FixedPointCast: { state = a.sidorin wrote: > Should we consider this construction as unsupported rather than supported as > a

r340439 - Currently clang does not emit unused static constants. GCC emits these

2018-08-22 Thread Elizabeth Andrews via cfe-commits
Author: eandrews Date: Wed Aug 22 12:05:19 2018 New Revision: 340439 URL: http://llvm.org/viewvc/llvm-project?rev=340439&view=rev Log: Currently clang does not emit unused static constants. GCC emits these constants by default when there is no optimization. GCC's option -fno-keep-static-consts ca

[PATCH] D50144: Add Windows support for the GNUstep Objective-C ABI V2.

2018-08-22 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a subscriber: rnk. smeenai added a comment. Sorry for the belated response; I was on vacation. I'm confused by the funclet-based unwinding support. Do you intend GNUStep to be used with windows-msvc triples? If so, how is the runtime throwing exceptions? We took the approach of ha

[PATCH] D50901: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks

2018-08-22 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c:23 +__attribute__((no_sanitize("integer"))) unsigned char blacklist_1_convert_unsigned_int_to_unsigned_char(unsigned int x) { + // CHECK: } + return x; ---

[PATCH] D40925: Add option -fkeep-static-consts

2018-08-22 Thread Elizabeth Andrews via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC340439: Currently clang does not emit unused static constants. GCC emits these (authored by eandrews, committed by ). Changed prior to commit: https://reviews.llvm.org/D40925?vs=161544&id=162022#toc Re

[PATCH] D50901: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks

2018-08-22 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added inline comments. Comment at: test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c:23 +__attribute__((no_sanitize("integer"))) unsigned char blacklist_1_convert_unsigned_int_to_unsigned_char(unsigned int x) { + // CHECK: } + return x; I

Re: r339667 - Add a stub mangling for ObjC selectors in the Microsoft ABI.

2018-08-22 Thread Hans Wennborg via cfe-commits
Merged to 7.0 in r340437. On Tue, Aug 14, 2018 at 3:04 AM, David Chisnall via cfe-commits wrote: > Author: theraven > Date: Tue Aug 14 03:04:36 2018 > New Revision: 339667 > > URL: http://llvm.org/viewvc/llvm-project?rev=339667&view=rev > Log: > Add a stub mangling for ObjC selectors in the Micro

[PATCH] D51115: [ASTImporter] Actually test ArrayInitLoopExpr in the array-init-loop-expr test.

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added subscribers: cfe-commits, martong. Herald added a reviewer: a.sidorin. The `array-init-loop-expr` test is currently not testing the importing of ArrayInitLoopExprs. This is because we import the `S` struct into the `test.cpp` context and only do a co

[libcxx] r340427 - Disable the aligned allocation test on old mac versions instead of XFAILing it

2018-08-22 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Aug 22 10:47:41 2018 New Revision: 340427 URL: http://llvm.org/viewvc/llvm-project?rev=340427&view=rev Log: Disable the aligned allocation test on old mac versions instead of XFAILing it It looks like this test XPASSes when the deployment target is older than the OS of the s

[libcxx] r340426 - Add diagnostics for min/max algorithms when a InputIterator is used.

2018-08-22 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Aug 22 10:47:13 2018 New Revision: 340426 URL: http://llvm.org/viewvc/llvm-project?rev=340426&view=rev Log: Add diagnostics for min/max algorithms when a InputIterator is used. These algorithms require a ForwardIterator or better. Ensure we diagnose the contract violation

[PATCH] D51068: [Android] Default to -fno-math-errno

2018-08-22 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340424: [Android] Default to -fno-math-errno (authored by pirama, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D51068 Files: cfe/trunk/lib/Dr

r340424 - [Android] Default to -fno-math-errno

2018-08-22 Thread Pirama Arumuga Nainar via cfe-commits
Author: pirama Date: Wed Aug 22 10:43:05 2018 New Revision: 340424 URL: http://llvm.org/viewvc/llvm-project?rev=340424&view=rev Log: [Android] Default to -fno-math-errno Summary: Android's libm does not set errno. Reviewers: srhines, enh Subscribers: cfe-commits Differential Revision: https://

[PATCH] D51110: [ASTImporter] Remove duplicated and dead CXXNamedCastExpr handling code.

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor added a comment. See http://lab.llvm.org:8080/coverage/coverage-reports/clang/coverage/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/lib/AST/ASTImporter.cpp.html#L6044 for the test coverage entry. Repository: rC Clang https://reviews.llvm.org/D51110

[PATCH] D51110: [ASTImporter] Remove duplicated and dead CXXNamedCastExpr handling code.

2018-08-22 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added subscribers: cfe-commits, martong. Herald added a reviewer: a.sidorin. `CXXNamedCastExpr` importing is already handled in the respective `VisitCXXNamedCastExpr` method. So this code here can never be reached under normal circumstances and we might as

[PATCH] D51061: [clang-tidy] abseil-str-cat-append

2018-08-22 Thread Hugo Gonzalez via Phabricator via cfe-commits
hugoeg updated this revision to Diff 161995. hugoeg marked 2 inline comments as done. https://reviews.llvm.org/D51061 Files: clang-tidy/abseil/AbseilTidyModule.cpp clang-tidy/abseil/CMakeLists.txt clang-tidy/abseil/StrCatAppendCheck.cpp clang-tidy/abseil/StrCatAppendCheck.h docs/Release

[PATCH] D50043: [RISCV] RISC-V using -fuse-init-array by default

2018-08-22 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng updated this revision to Diff 161990. kito-cheng added a comment. Herald added subscribers: jocewei, the_o, brucehoult, MartinMosbeck, mgrang, edward-jones, zzheng, niosHD, sabuasal, simoncook, johnrusso, rbar. Changes: - Add test. https://reviews.llvm.org/D50043 Files: lib/Drive

[PATCH] D51109: [cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] "

2018-08-22 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay created this revision. MaskRay added reviewers: rupprecht, alexshap, jhenderson. Herald added a subscriber: cfe-commits. This is to accommodate a change in llvm/lib/Option/OptTable.cpp https://reviews.llvm.org/D51009 Repository: rC Clang https://reviews.llvm.org/D51109 Files: lib/

[PATCH] D51061: [clang-tidy] abseil-str-cat-append

2018-08-22 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/ReleaseNotes.rst:70 + + Flags uses of ``absl::StrCat()`` to append to a std::string. Suggests + ``absl::StrAppend()`` should be used instead. Please enclose std::string into `` Comment a

r340421 - [Tooling] Allow -flto flags and filter out -Wa, flags

2018-08-22 Thread Chih-Hung Hsieh via cfe-commits
Author: chh Date: Wed Aug 22 10:13:40 2018 New Revision: 340421 URL: http://llvm.org/viewvc/llvm-project?rev=340421&view=rev Log: [Tooling] Allow -flto flags and filter out -Wa, flags This change fixes the problem in https://bugs.llvm.org/show_bug.cgi?id=38332 by allowing driver::Action::BackendJ

[PATCH] D47849: [OpenMP][Clang][NVPTX] Enable math functions called in an OpenMP NVPTX target device region to be resolved as device-native function calls

2018-08-22 Thread Greg Rodgers via Phabricator via cfe-commits
gregrodgers added a comment. I like the idea of using an automatic include as a cc1 option (-include). However, I would prefer a more general automatic include for OpenMP, not just for math functions (__clang_cuda_device_functions.h). Clang cuda automatically includes __clang_cuda_runtime_wrap

[PATCH] D51061: [clang-tidy] abseil-str-cat-append

2018-08-22 Thread Hugo Gonzalez via Phabricator via cfe-commits
hugoeg updated this revision to Diff 161982. https://reviews.llvm.org/D51061 Files: clang-tidy/abseil/AbseilTidyModule.cpp clang-tidy/abseil/CMakeLists.txt clang-tidy/abseil/StrCatAppendCheck.cpp clang-tidy/abseil/StrCatAppendCheck.h docs/ReleaseNotes.rst docs/clang-tidy/checks/abseil

[libcxx] r340419 - Merging r340406:

2018-08-22 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 22 09:39:24 2018 New Revision: 340419 URL: http://llvm.org/viewvc/llvm-project?rev=340419&view=rev Log: Merging r340406: r340406 | ericwf | 2018-08-22 15:29:52 +0200 (Wed, 22 Aug 2018) | 12 lines A

[PATCH] D51061: [clang-tidy] abseil-str-cat-append

2018-08-22 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: test/clang-tidy/abseil-str-cat-append.cpp:91 + +void bar() { + std::string a, b; hugoeg wrote: > JonasToth wrote: > > What happens if `StrCat` is used e.g. in an `std::accumulate` call as the > > binary operator? (ht

[PATCH] D50385: [clangd] Collect symbol occurrences from AST.

2018-08-22 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/index/Index.h:46 + +inline bool operator==(const SymbolLocation::Position &L, + const SymbolLocation::Position &R) { ilya-biryukov wrote: > NIT: having friend decls inside the classes themselv

[PATCH] D51061: [clang-tidy] abseil-str-cat-append

2018-08-22 Thread Hugo Gonzalez via Phabricator via cfe-commits
hugoeg updated this revision to Diff 161974. hugoeg added a comment. minor fixes https://reviews.llvm.org/D51061 Files: clang-tidy/abseil/AbseilTidyModule.cpp clang-tidy/abseil/CMakeLists.txt clang-tidy/abseil/StrCatAppendCheck.cpp clang-tidy/abseil/StrCatAppendCheck.h docs/ReleaseNot

[PATCH] D43630: [Driver] Fix search paths on x32

2018-08-22 Thread Derek Schuff via Phabricator via cfe-commits
dschuff added a comment. This should probably have some tests. It looks like there are some existing x32 tests in test/Driver/linux-header-search.cpp and test/Driver/cross-linux.c that might be relevant for updating. Repository: rC Clang https://reviews.llvm.org/D43630 __

  1   2   3   >