[PATCH] D52384: [Sema] Fix redeclaration contexts for enumerators in C

2018-09-27 Thread David Majnemer via Phabricator via cfe-commits
majnemer added inline comments. Comment at: lib/AST/DeclBase.cpp:1711-1712 + // contexts are always skipped. + while (SkipRecords ? Ctx->isTransparentContext() || Ctx->isRecord() + : Ctx->isTransparentContext()) Ctx = Ctx->getParent();

r343293 - Handle dependent class template names in class template argument

2018-09-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Sep 27 20:18:53 2018 New Revision: 343293 URL: http://llvm.org/viewvc/llvm-project?rev=343293&view=rev Log: Handle dependent class template names in class template argument deduction for new-expressions. Modified: cfe/trunk/lib/Sema/SemaInit.cpp cfe/trunk/test/Sem

[PATCH] D52578: Thread safety analysis: Allow scoped releasing of capabilities

2018-09-27 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. Maybe you should have a look at the tests first. I thought about the semantics that I think you are suggesting, but then we could have code like: class SCOPED_LOCKABLE MutexLockUnlock { public: MutexLockUnlock(Mutex *mu1, Mutex *mu2) EXCLUSIVE_UNLOCK_FUNCTIO

[PATCH] D52400: Improve -Wshadow warnings with enumerators

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a reviewer: echristo. aaron.ballman added a comment. Ping? https://reviews.llvm.org/D52400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52384: [Sema] Fix redeclaration contexts for enumerators in C

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a reviewer: echristo. aaron.ballman added a comment. Ping? https://reviews.llvm.org/D52384 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52395: Thread safety analysis: Require exclusive lock for passing by non-const reference

2018-09-27 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. I've thought about your concerns and the important thing is: I didn't actually test this on a larger code base. The change makes sense to me, but maybe I'm missing something. So maybe instead of pushing through further restrictions, I should focus on rolling out th

r343285 - [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only

2018-09-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Sep 27 18:16:43 2018 New Revision: 343285 URL: http://llvm.org/viewvc/llvm-project?rev=343285&view=rev Log: [cxx2a] P0641R2: (Some) type mismatches on defaulted functions only render the function deleted instead of rendering the program ill-formed. This change also adds a

[PATCH] D50850: clang: Add triples support for MIPS r6

2018-09-27 Thread YunQiang Su via Phabricator via cfe-commits
wzssyqa updated this revision to Diff 167419. Herald added a subscriber: dexonsmith. https://reviews.llvm.org/D50850 Files: include/llvm/ADT/Triple.h lib/Support/Triple.cpp lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp unittests/ADT/TripleTest.cpp Index: unittests/ADT/TripleTest.cpp

[PATCH] D52586: [X86] Add the movbe instruction intrinsics from icc.

2018-09-27 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 167416. craig.topper added a comment. Add comment. Fix typo. Add preprocessor define checks to the various CPUs that have MOVBE https://reviews.llvm.org/D52586 Files: lib/Basic/Targets/X86.cpp lib/Headers/immintrin.h test/CodeGen/movbe-builtins.

[PATCH] D51714: CMake: Deprecate using llvm-config to detect llvm installation

2018-09-27 Thread Tom Stellard via Phabricator via cfe-commits
tstellar updated this revision to Diff 167413. tstellar added a comment. Use cmake's DEPRECATION message. Repository: rC Clang https://reviews.llvm.org/D51714 Files: CMakeLists.txt Index: CMakeLists.txt === --- CMakeLists.tx

[PATCH] D30806: [nonnull] Teach Clang to attach the nonnull LLVM attribute to declarations and calls instead of just definitions, and then teach it to *not* attach such attributes even if the source c

2018-09-27 Thread Sanjay Patel via Phabricator via cfe-commits
spatel added a comment. In https://reviews.llvm.org/D30806#1248575, @efriedma wrote: > This was merged in https://reviews.llvm.org/rC298491 . But it got reverted soon after due to miscompiles: https://reviews.llvm.org/rL298695 And the functionality hasn't been reimplemented AFAICT. https://r

Re: r342925 - P0962R1: only use the member form of 'begin' and 'end' in a range-based

2018-09-27 Thread Richard Smith via cfe-commits
Looks like you fixed this in r343150, thanks! On Tue, 25 Sep 2018 at 10:49, Vitaly Buka via cfe-commits < cfe-commits@lists.llvm.org> wrote: > http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/24083 > > FAIL: Clang :: CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp (1692 of 13357) >

[PATCH] D52578: Thread safety analysis: Allow scoped releasing of capabilities

2018-09-27 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:893 private: - SmallVector UnderlyingMutexes; + enum UnderlyingCapabilityKind { +UCK_Acquired, ///< Any kind of acquired capability. IMHO, it would make more sense to break

r343279 - [cxx2a] P0624R2: Lambdas with no capture-default are

2018-09-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Sep 27 15:47:04 2018 New Revision: 343279 URL: http://llvm.org/viewvc/llvm-project?rev=343279&view=rev Log: [cxx2a] P0624R2: Lambdas with no capture-default are default-constructible and assignable. Added: cfe/trunk/test/SemaCXX/cxx2a-lambda-default-ctor-assign.cpp Mo

[PATCH] D51714: CMake: Deprecate using llvm-config to detect llvm installation

2018-09-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Is there anything holding this up? Repository: rC Clang https://reviews.llvm.org/D51714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r343276 - [analyzer] Hotfix for the bug in exploded graph printing

2018-09-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 27 15:31:13 2018 New Revision: 343276 URL: http://llvm.org/viewvc/llvm-project?rev=343276&view=rev Log: [analyzer] Hotfix for the bug in exploded graph printing Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp Modified: cfe/trunk/lib/StaticAna

[PATCH] D52443: Thread safety analysis: Examine constructor arguments

2018-09-27 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:2046 const CXXConstructorDecl *D = Exp->getConstructor(); if (D && D->isCopyConstructor()) { const Expr* Source = Exp->getArg(0); As a side note, we should probably special-case

[PATCH] D52443: Thread safety analysis: Examine constructor arguments

2018-09-27 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added a comment. This looks good, and resolves an outstanding bug that was on my list. Thanks for the patch! Comment at: lib/Analysis/ThreadSafety.cpp:1537 void handleCall(const Expr *Exp, const NamedDecl *D, VarDecl *VD = nullptr); + void ExamineCallArguments(c

[PATCH] D52395: Thread safety analysis: Require exclusive lock for passing by non-const reference

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D52395#1248608, @delesley wrote: > With respect to data, I really think these patches should be tested against > Google's code base, because otherwise you're going to start seeing angry > rollbacks. However, I don't work on the C++ tea

[PATCH] D52395: Thread safety analysis: Require exclusive lock for passing by non-const reference

2018-09-27 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added a comment. With respect to data, I really think these patches should be tested against Google's code base, because otherwise you're going to start seeing angry rollbacks. However, I don't work on the C++ team any more, and I don't have time to do it. When I was actively develop

[PATCH] D52395: Thread safety analysis: Require exclusive lock for passing by non-const reference

2018-09-27 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added a comment. I have mixed feelings about this patch. When you pass an object to a function, either by pointer or by reference, no actual load from memory has yet occurred. Thus, there is a real risk of false positives; what you are saying is that the function *might* read or writ

[PATCH] D52443: Thread safety analysis: Examine constructor arguments

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:1970 + // There can be default arguments, so we stop when one iterator is at end(). + for (auto Arg = ArgBegin; Param != Params.end() && Arg != ArgEnd; + ++Param, ++Arg) { aaro

[PATCH] D30806: [nonnull] Teach Clang to attach the nonnull LLVM attribute to declarations and calls instead of just definitions, and then teach it to *not* attach such attributes even if the source c

2018-09-27 Thread Eli Friedman via Phabricator via cfe-commits
efriedma closed this revision. efriedma added a comment. This was merged in https://reviews.llvm.org/rC298491 . https://reviews.llvm.org/D30806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[PATCH] D52443: Thread safety analysis: Examine constructor arguments

2018-09-27 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:1970 + // There can be default arguments, so we stop when one iterator is at end(). + for (auto Arg = ArgBegin; Param != Params.end() && Arg != ArgEnd; + ++Param, ++Arg) { aaron

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 167400. JonasToth added a comment. - last cleanup for today, testing on clang/lib looks good, but is already very clean Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51949 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/read

[PATCH] D52586: [X86] Add the movbe instruction intrinsics from icc.

2018-09-27 Thread Sanjay Patel via Phabricator via cfe-commits
spatel added a comment. The struct hack isn't obvious to me. Without that, we would produce a load with default alignment based on the size of the load (i132 -> align 4, etc)? But we want to force align 1 regardless of the load size, so the __packed__ attribute on the struct gets us that IIUC.

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 167397. JonasToth added a comment. - fix doc typo Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51949 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/IsolateDeclCheck.cpp clang-tidy/readability/IsolateDeclCheck.

[PATCH] D52574: NFC: Fix some darwin linker warnings introduced in r338385

2018-09-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343263: NFC: Fix some darwin linker warnings introduced in r338385 (authored by epilk, committed by ). Changed prior to commit: https://reviews.llvm.org/D52574?vs=167193&id=167394#toc Repository: rC

r343263 - NFC: Fix some darwin linker warnings introduced in r338385

2018-09-27 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Thu Sep 27 13:36:28 2018 New Revision: 343263 URL: http://llvm.org/viewvc/llvm-project?rev=343263&view=rev Log: NFC: Fix some darwin linker warnings introduced in r338385 The darwin linker was complaining about Toolchains/RISCV.cpp and Toolchains/Arch/RISCV.cpp had the same na

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

2018-09-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 167391. lebedev.ri marked an inline comment as done and 3 inline comments as not done. lebedev.ri added a comment. - Rebased Repository: rC Clang https://reviews.llvm.org/D50901 Files: docs/UndefinedBehaviorSanitizer.rst include/clang/Basic/Saniti

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 167389. JonasToth added a comment. - bail out in transformation if there are PP directives in the source range of the DeclStmt Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51949 Files: clang-tidy/readability/CMakeLists.txt clang-ti

[PATCH] D52629: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343260: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD… (authored by gbercea, committed by ). Changed prior to commit: https://reviews.llvm.org/D52629?vs=167386&id=167387#to

r343260 - [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Gheorghe-Teodor Bercea via cfe-commits
Author: gbercea Date: Thu Sep 27 13:29:00 2018 New Revision: 343260 URL: http://llvm.org/viewvc/llvm-project?rev=343260&view=rev Log: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing Summary: Set default schedule for parallel for loops to schedu

[PATCH] D52629: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rC Clang https://reviews.llvm.org/D52629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D52629: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 167386. gtbercea added a comment. Address comment. Repository: rC Clang https://reviews.llvm.org/D52629 Files: lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp lib/CodeGen/CGOpenMPRuntimeNVPTX.h lib/CodeGen/CGStmtOpenMP.cpp t

[PATCH] D52629: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:4103 +ScheduleKind = OMPC_SCHEDULE_static; +Chunk = CGF.Builder.getIntN(CGM.getDataLayout().getTypeAllocSizeInBits( +CGF.ConvertType(S.getIterationVariable()->getType())), 1);

r343258 - Test commit. NFC

2018-09-27 Thread Patrick Lyster via cfe-commits
Author: plyster Date: Thu Sep 27 12:30:32 2018 New Revision: 343258 URL: http://llvm.org/viewvc/llvm-project?rev=343258&view=rev Log: Test commit. NFC Modified: cfe/trunk/lib/Sema/TreeTransform.h Modified: cfe/trunk/lib/Sema/TreeTransform.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk

[PATCH] D52629: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. gtbercea added reviewers: ABataev, Hahnfeld, caomhin. Herald added subscribers: cfe-commits, guansong, jholewinski. Set default schedule for parallel for loops to schedule(static, 1) when using SPMD mode on the NVPTX device offloading toolchain to ensure coalescing

[PATCH] D52625: [OPENMP] Add 'unified_shared_memory' clause to OMP5 'requires' directive

2018-09-27 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. I forgot to mention that you need an ast print test (the positive test) Repository: rC Clang https://reviews.llvm.org/D52625 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth marked 9 inline comments as done. JonasToth added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:211 + std::vector Snippets; + Snippets.reserve(Ranges.size()); + kbobyrev wrote: > nit: It would be probably easier to have `Sni

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 167381. JonasToth marked 9 inline comments as done. JonasToth added a comment. - simplification on FIXME:/TODO: Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51949 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/I

[PATCH] D52625: [OPENMP] Add 'unified_shared_memory' clause to OMP5 'requires' directive

2018-09-27 Thread Patrick Lyster via Phabricator via cfe-commits
patricklyster created this revision. patricklyster added reviewers: ABataev, Hahnfeld, RaviNarayanaswamy, mikerice, kkwli0, hfinkel, gtbercea. patricklyster added projects: clang, OpenMP. Herald added a subscriber: guansong. Added new `unified_shared_memory` clause to existing OMP5.0 `requires` d

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( aaron.ballman wrote: > JonasToth wrote: > > kbobyrev w

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 167377. JonasToth added a comment. - address review comments, most nits solved - fix typedefs and function pointers with comments as distraction - make memberpointer detection more accurate - move functioning member pointer test - clean debug output - clean

[PATCH] D47233: [CodeGen] Emit MSVC RTTI for Obj-C EH types

2018-09-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: lib/CodeGen/CGObjCMac.cpp:7457-7460 CGObjCNonFragileABIMac::GetEHType(QualType T) { // There's a particular fixed type info for 'id'. if (T->isObjCIdType() || T->isObjCQualifiedIdType()) { +if (CGM.getTriple().isWindowsMSVCEnv

[PATCH] D52434: [OpenMP] Make default distribute schedule for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343253: [OpenMP] Make default distribute schedule for NVPTX target regions in SPMD mode… (authored by gbercea, committed by ). Changed prior to commit: https://reviews.llvm.org/D52434?vs=167326&id=16737

r343253 - [OpenMP] Make default distribute schedule for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Gheorghe-Teodor Bercea via cfe-commits
Author: gbercea Date: Thu Sep 27 12:22:56 2018 New Revision: 343253 URL: http://llvm.org/viewvc/llvm-project?rev=343253&view=rev Log: [OpenMP] Make default distribute schedule for NVPTX target regions in SPMD mode achieve coalescing Summary: For the OpenMP NVPTX toolchain choose a default distri

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/FS.cpp:29 +PreambleFileStatusCache::lookup(llvm::StringRef File) const { + auto I = StatCache.find(File); + if (I != StatCache.end()) sammccall wrote: > ioeric wrote: > > sammccall wrote: > > > lock > > After a s

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 167370. ioeric marked 2 inline comments as done. ioeric added a comment. - Address review comments - address review comments - address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52419 Files: clangd/CMakeLists.txt clan

[PATCH] D52589: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901

2018-09-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343251: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901 (authored by lebedevri, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.o

r343251 - [clang][ubsan][NFC] Slight test cleanup in preparation for D50901

2018-09-27 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Sep 27 12:07:48 2018 New Revision: 343251 URL: http://llvm.org/viewvc/llvm-project?rev=343251&view=rev Log: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901 Reviewers: vsk, vitalybuka, filcab Reviewed By: vitalybuka Subscribers: cfe-commits Differen

[PATCH] D52617: [clangd] Make stable_partition on include candidates less slow. NFC

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 167361. ioeric marked 3 inline comments as done. ioeric added a comment. - simplify the code. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52617 Files: clangd/CodeComplete.cpp Index: clangd/CodeComplete.cpp

[PATCH] D52574: NFC: Fix some darwin linker warnings introduced in r338385

2018-09-27 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 accepted this revision. xbolva00 added a comment. This revision is now accepted and ready to land. ok, thanks Repository: rC Clang https://reviews.llvm.org/D52574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a subscriber: rnk. smeenai added a comment. Adding @rnk, since this'll touch MS ABI mangling. For context, we want `struct X` to have the same mangling as `@interface X` normally, but we want to be able to distinguish them for the purpose of exception handling. See this diff's sum

[PATCH] D30806: [nonnull] Teach Clang to attach the nonnull LLVM attribute to declarations and calls instead of just definitions, and then teach it to *not* attach such attributes even if the source c

2018-09-27 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. Herald added a subscriber: sanjoy. Coming from https://reviews.llvm.org/D50039. This patch was accepted but never merged? https://reviews.llvm.org/D30806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

[PATCH] D52364: [clangd] Initial supoprt for cross-namespace global code completion.

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE343248: [clangd] Initial supoprt for cross-namespace global code completion. (authored by ioeric, committed by ). Changed prior to commit: https://reviews.llvm.org/D52364?vs=167356&id=167357#toc Repo

[clang-tools-extra] r343248 - [clangd] Initial supoprt for cross-namespace global code completion.

2018-09-27 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Sep 27 11:46:00 2018 New Revision: 343248 URL: http://llvm.org/viewvc/llvm-project?rev=343248&view=rev Log: [clangd] Initial supoprt for cross-namespace global code completion. Summary: When no scope qualifier is specified, allow completing index symbols from any scope an

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth marked 11 inline comments as done. JonasToth added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:68 +if (Start.isInvalid() || Start.isMacroID()) + return SourceLocation(); + } kbobyrev wrote: > Also, I don't think th

[PATCH] D52364: [clangd] Initial supoprt for cross-namespace global code completion.

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 167356. ioeric marked 2 inline comments as done. ioeric added a comment. - address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52364 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/index/Index.h clangd/

[PATCH] D52611: [clangd] Add more tracing to index queries. NFC

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343247: [clangd] Add more tracing to index queries. NFC (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52611 Files: clang

[clang-tools-extra] r343247 - [clangd] Add more tracing to index queries. NFC

2018-09-27 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Sep 27 11:23:23 2018 New Revision: 343247 URL: http://llvm.org/viewvc/llvm-project?rev=343247&view=rev Log: [clangd] Add more tracing to index queries. NFC Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Re

[PATCH] D52423: [analyzer] Make ConversionChecker load StdCLibraryFunctionsChecker

2018-09-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. As far as i understand, these driver-controlled thingies are for platform owners to be able to say "hey we clearly don't want this checker to be turned on on our platform". As long as there's no indication of that sort of issue, we should instead keep it all in one place, w

[PATCH] D52589: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901

2018-09-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Thank you for the review! Comment at: test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c:7 +//// +// Unsigned case. +//---

[PATCH] D52589: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901

2018-09-27 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added inline comments. This revision is now accepted and ready to land. Comment at: test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c:7 +////

[PATCH] D50318: Support Swift in platform availability attribute

2018-09-27 Thread Jeff Muizelaar via Phabricator via cfe-commits
jrmuizel added a comment. Review ping Repository: rC Clang https://reviews.llvm.org/D50318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52619: Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343240: Fix greedy FileCheck expression in test/Driver/mips-abi.c (authored by Hahnfeld, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52619

r343240 - Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Thu Sep 27 10:27:48 2018 New Revision: 343240 URL: http://llvm.org/viewvc/llvm-project?rev=343240&view=rev Log: Fix greedy FileCheck expression in test/Driver/mips-abi.c 'ld{{.*}}"' seems to match the complete line for me which is failing the test. Only allow an optional '.

[PATCH] D52584: [analyzer] Highlight nodes which have error reports in them in red in exploded graph

2018-09-27 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343239: [analyzer] Highlight nodes which have error reports in them in red in exploded… (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: ht

r343239 - [analyzer] Highlight nodes which have error reports in them in red in exploded graph

2018-09-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 27 10:26:41 2018 New Revision: 343239 URL: http://llvm.org/viewvc/llvm-project?rev=343239&view=rev Log: [analyzer] Highlight nodes which have error reports in them in red in exploded graph Differential Revision: https://reviews.llvm.org/D52584 Modified:

[PATCH] D52619: Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 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. Thanks! Repository: rC Clang https://reviews.llvm.org/D52619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE343237: Introduce completionItemKind capability support. (authored by kadircet, committed by ). Changed prior to commit: https://reviews.llvm.org/D52616?vs=167346&id=167347#toc Repository: rCTE Cla

[clang-tools-extra] r343237 - Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via cfe-commits
Author: kadircet Date: Thu Sep 27 10:13:07 2018 New Revision: 343237 URL: http://llvm.org/viewvc/llvm-project?rev=343237&view=rev Log: Introduce completionItemKind capability support. Reviewers: sammccall Reviewed By: sammccall Subscribers: ilya-biryukov, ioeric, jkorous, arphaman, cfe-commits

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 167346. kadircet marked 3 inline comments as done. kadircet added a comment. - Address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52616 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/Protocol.cpp cl

[PATCH] D52620: Added Support for StatOnly Files in VFS.

2018-09-27 Thread UTKARSH SAXENA via Phabricator via cfe-commits
usaxena95 created this revision. Herald added subscribers: cfe-commits, mgrang. Some files are only Statted by Clang and not read. Clang mostly uses them for checking the existence of some files and in rare cases uses the value of the Status to proceed further (for example while loading module fil

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/FS.cpp:29 +PreambleFileStatusCache::lookup(llvm::StringRef File) const { + auto I = StatCache.find(File); + if (I != StatCache.end()) ioeric wrote: > sammccall wrote: > > lock > After a second thought, I'm won

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D52581#1247409, @theraven wrote: > > I would have done the same for the GNUstep RTTI here, except I don't > > actually > > see the code for that anywhere, and no tests seem to break either, so I > > believe it's not upstreamed yet. > > I'm n

[PATCH] D52364: [clangd] Initial supoprt for cross-namespace global code completion.

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/CodeComplete.cpp:1251 + // from any scope. + std::pair, bool> QueryScopes; // Include-insertion and proximity scoring rely on the include st

[PATCH] D52617: [clangd] Make stable_partition on include candidates less slow. NFC

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/CodeComplete.cpp:325 +CodeCompletion::IncludeCandidates +moveNonInsertingIncludesToFront(CodeCompletion::IncludeCandidates Includes) { + if (Includes.size() <= 1) this seems a bit overly complicated. It does se

[PATCH] D52619: Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: atanasyan, rnk. Herald added subscribers: cfe-commits, jrtc27, arichardson, sdardis. `ld{{.*}}"` seems to match the complete line for me which is failing the test. Only allow an optional `.exe` for Windows systems as most other tests do. An

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/ClangdLSPServer.cpp:108 + if (Params.capabilities.textDocument.completion.completionItemKind) +for (CompletionItemKind Kind : *Params.capabi

[PATCH] D51686: [OpenMP] Improve search for libomptarget-nvptx

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343230: [OpenMP] Improve search for libomptarget-nvptx (authored by Hahnfeld, committed by ). Repository: rC Clang https://reviews.llvm.org/D51686 Files: include/clang/Driver/Options.td lib/Driver

Re: [PATCH] D50850: clang: Add triples support for MIPS r6

2018-09-27 Thread YunQiang Su via cfe-commits
I updated N32 patch for clang. Simon Atanasyan via Phabricator 于2018年9月27日周四 下午8:23写道: > > atanasyan added a comment. > > Could you please update the patch against the current trunk? > > > Repository: > rC Clang > > https://reviews.llvm.org/D50850 > > > -- YunQiang Su

r343230 - [OpenMP] Improve search for libomptarget-nvptx

2018-09-27 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Thu Sep 27 09:12:32 2018 New Revision: 343230 URL: http://llvm.org/viewvc/llvm-project?rev=343230&view=rev Log: [OpenMP] Improve search for libomptarget-nvptx When looking for the bclib Clang considered the default library path first while it preferred directories in LIBRAR

[PATCH] D50850: clang: Add triples support for MIPS r6

2018-09-27 Thread YunQiang Su via Phabricator via cfe-commits
wzssyqa added a subscriber: rsmith. wzssyqa added a comment. I updated N32 patch for clang. Simon Atanasyan via Phabricator 于2018年9月27日周四 下午8:23写道: > atanasyan added a comment. > > Could you please update the patch against the current trunk? > > Repository: > > rC Clang > > https://reviews

[PATCH] D51464: clang: fix MIPS/N32 triple and paths

2018-09-27 Thread YunQiang Su via Phabricator via cfe-commits
wzssyqa updated this revision to Diff 167340. https://reviews.llvm.org/D51464 Files: lib/Basic/Targets/Mips.h lib/Driver/ToolChains/Arch/Mips.cpp lib/Driver/ToolChains/Gnu.cpp lib/Driver/ToolChains/Linux.cpp test/CodeGen/atomics-inlining.c test/CodeGen/mips-zero-sized-struct.c test/

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( JonasToth wrote: > kbobyrev wrote: > > aaron.ballm

[PATCH] D52611: [clangd] Add more tracing to index queries. NFC

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 167336. ioeric marked 2 inline comments as done. ioeric added a comment. - address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52611 Files: clangd/index/MemIndex.cpp clangd/index/Merge.cpp clangd/index/dex/Dex.cpp Index:

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( kbobyrev wrote: > aaron.ballman wrote: > > lebedev.ri

[PATCH] D52595: [ARM] Alter test to account for change to armv6k default CPU

2018-09-27 Thread Renato Golin via Phabricator via cfe-commits
rengolin accepted this revision. rengolin added a comment. This revision is now accepted and ready to land. Thanks Peter. LGTM! https://reviews.llvm.org/D52595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. There are testcases with macro around line 100 in the default tests. I am not sure yet if `#define I_DECLS int i1, i2, i3;` should be diagnosed, but the other cases should. Am 27.09.2018 um 16:28 schrieb Kirill Bobyrev via Phabricator: > kbobyrev added a comment. > >

[PATCH] D52423: [analyzer] Make ConversionChecker load StdCLibraryFunctionsChecker

2018-09-27 Thread Donát Nagy via Phabricator via cfe-commits
donat.nagy added a comment. Yes, moving StdCLibraryFunctionsChecker to an always-loaded package is probably a better solution than adding this one particular dependency link. (Evaluating these functions may be useful for other checkers as well, although it does not seem to change the results of

[PATCH] D52617: [clangd] Make stable_partition on include candidates less slow. NFC

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: sammccall. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov. stable_partition on objects is slow (due to copies). Do it on pointers instead. Repository: rCTE Clang Tools Extra https://reviews.llv

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( aaron.ballman wrote: > lebedev.ri wrote: > > kbobyrev w

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 167332. kadircet added a comment. - Minimum CompletionItemKind is Text. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52616 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/Protocol.cpp clangd/Protocol.h Index: c

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

2018-09-27 Thread Filipe Cabecinhas via Phabricator via cfe-commits
filcab added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:305 enum ImplicitConversionCheckKind : unsigned char { -ICCK_IntegerTruncation = 0, +ICCK_IntegerTruncation = 0, // Legacy, no longer used. +ICCK_UnsignedIntegerTruncation = 1,

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld accepted this revision. Hahnfeld added a comment. In https://reviews.llvm.org/D52434#1248032, @gtbercea wrote: > That is the intention. I just took out that part from here to not confuse > things since I wanted to have that as a separate patch. :) Ok, perfect. I was probably confused

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea added a comment. In https://reviews.llvm.org/D52434#1248012, @Hahnfeld wrote: > Should we also change the default `schedule` to `static, 1`? I know that's > not really needed for `teams distribute parallel for` (because the new > default `dist_schedule` only leaves one iteration per th

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added a reviewer: sammccall. Herald added subscribers: cfe-commits, arphaman, jkorous, ioeric, ilya-biryukov. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52616 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/Prot

[PATCH] D52615: Handle -fsanitize-address-poison-class-member-array-new-cookie in the driver and propagate it to cc1

2018-09-27 Thread Filipe Cabecinhas via Phabricator via cfe-commits
filcab created this revision. filcab added reviewers: rjmccall, kcc, rsmith. Repository: rC Clang https://reviews.llvm.org/D52615 Files: include/clang/Driver/SanitizerArgs.h lib/Driver/SanitizerArgs.cpp test/Driver/fsanitize.c Index: test/Driver/fsanitize.c

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( lebedev.ri wrote: > kbobyrev wrote: > > JonasToth

  1   2   >