[PATCH] D44295: [clang-tidy] Detects and fixes calls to grand-...parent virtual methods instead of calls to parent's virtual methods

2018-03-19 Thread Zinovy Nis via Phabricator via cfe-commits
zinovy.nis marked 2 inline comments as done. zinovy.nis added a comment. Hope I satisfied all your requests now. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

[PATCH] D39930: [CMake] Use libc++ and compiler-rt as default libraries in Fuchsia toolchain

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 138882. phosek marked an inline comment as done. Repository: rC Clang https://reviews.llvm.org/D39930 Files: clang/cmake/caches/Fuchsia-stage2.cmake Index: clang/cmake/caches/Fuchsia-stage2.cmake =

[PATCH] D44607: Recompute invalidated iterator in insertTargetAndModeArgs

2018-03-19 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. Good catch, thank you. To avoid code duplication you could change `InsertionPoint` into an index and use `begin() + InsertionPoint` in calls to `insert`. Repository: rC Clang https://reviews.llvm.org/D44607 ___ cfe-co

[PATCH] D44607: Recompute invalidated iterator in insertTargetAndModeArgs

2018-03-19 Thread Hector Martin via Phabricator via cfe-commits
marcan updated this revision to Diff 13. Repository: rC Clang https://reviews.llvm.org/D44607 Files: tools/driver/driver.cpp Index: tools/driver/driver.cpp === --- tools/driver/driver.cpp +++ tools/driver/driver.cpp @@ -21

[PATCH] D44561: [ARM] Pass half or i16 types for NEON intrinsics

2018-03-19 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer updated this revision to Diff 138890. SjoerdMeijer retitled this revision from "[ARM] Add HasFloat16 to TargetInfo" to "[ARM] Pass half or i16 types for NEON intrinsics". SjoerdMeijer added a comment. Herald added a subscriber: rengolin. Removed unused function argument, and renamed

[PATCH] D44561: [ARM] Pass half or i16 types for NEON intrinsics

2018-03-19 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover accepted this revision. t.p.northover added a comment. This revision is now accepted and ready to land. Thanks. I think this looks reasonable now. https://reviews.llvm.org/D44561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

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

2018-03-19 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. Ping https://reviews.llvm.org/D41537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44248: [clangd][cmake] Provide libatomic when there is no native support for 64bit atomics

2018-03-19 Thread Simon Dardis via Phabricator via cfe-commits
sdardis added a comment. Ping? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44248 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D43281: [AMDGPU] fixes for lds f32 builtins

2018-03-19 Thread Daniil Fukalov via Phabricator via cfe-commits
dfukalov added a comment. > My real question was what happens if you put 11 in the description string? in this case CanT.getAddressSpace() returns target addrspace value "20" (also shifted in the enum by 9==LangAS::FirstTargetAddressSpace) So again ASTContext::getAddrSpaceQualType decieds that

[PATCH] D44248: [clangd][cmake] Provide libatomic when there is no native support for 64bit atomics

2018-03-19 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. lgtm (Please add reviewers to your patch if you intend it to be reviewed.) Comment at: clangd/CMakeLists.txt:7 +if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB) + list(APPEND CLANGD_ATOMIC_LIB atomic) +endif() nit: s/atomic/"atomic"/ Repositor

[PATCH] D44248: [clangd][cmake] Provide libatomic when there is no native support for 64bit atomics

2018-03-19 Thread Simon Dardis via Phabricator via cfe-commits
sdardis added a comment. Thanks, I wasn't sure who to add as a reviewer. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44248 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[PATCH] D44561: [ARM] Pass half or i16 types for NEON intrinsics

2018-03-19 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer added a comment. Thanks a lot for your help and reviews. https://reviews.llvm.org/D44561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44155: Fix support for try_acquire_capability

2018-03-19 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Ping. https://reviews.llvm.org/D44155 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44426: Fix llvm + clang build with Intel compiler

2018-03-19 Thread Nicolai Hähnle via Phabricator via cfe-commits
nhaehnle added a comment. Is that compiler really supported? Look at this: void operator delete(void *) = delete; It's been there in the code since early 2015. The bitwise OR on ELF::xxx has been there even longer. Are you telling me that we officially support a compiler, but nobody has ac

[PATCH] D44539: [Sema][Objective-C] Add check to warn when property of objc type has assign attribute

2018-03-19 Thread Alfred Zien via Phabricator via cfe-commits
QF5690 added reviewers: aaron.ballman, benhamilton. QF5690 added a comment. Hey, saw many revisions around obj-c and sema that you are reviewing. Can you help me with this one? Repository: rC Clang https://reviews.llvm.org/D44539 ___ cfe-commits

[PATCH] D44426: Fix llvm + clang build with Intel compiler

2018-03-19 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. @nhaehnle And that's the problem. There's no build machine for intel compiler and nobody cares. And if somebody like me want to build it - there's no solution rather than searching for workarounds yourself. This patch is not that complex in the end as you see so it should

[PATCH] D44155: Fix support for try_acquire_capability

2018-03-19 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Please upload patches with full context (`-U9`) :) https://reviews.llvm.org/D44155 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44155: Fix support for try_acquire_capability

2018-03-19 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman updated this revision to Diff 138900. aaron.ballman added a comment. Now: with more context! https://reviews.llvm.org/D44155 Files: lib/Analysis/ThreadSafety.cpp test/SemaCXX/warn-thread-safety-analysis.cpp Index: test/SemaCXX/warn-thread-safety-analysis.cpp

[PATCH] D44155: Fix support for try_acquire_capability

2018-03-19 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D44155#1041584, @lebedev.ri wrote: > Please upload patches with full context (`-U9`) :) Ugh, yes. TortoiseSVN has no option for this, so I perpetually forget. https://reviews.llvm.org/D44155 ___

[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

2018-03-19 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327833: [clang-tidy] New check bugprone-unused-return-value (authored by alexfh, committed by ). Herald added subscribers: llvm-commits, klimek. Changed prior to commit: https://reviews.llvm.org/D41655?

[clang-tools-extra] r327833 - [clang-tidy] New check bugprone-unused-return-value

2018-03-19 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Mar 19 06:02:32 2018 New Revision: 327833 URL: http://llvm.org/viewvc/llvm-project?rev=327833&view=rev Log: [clang-tidy] New check bugprone-unused-return-value Summary: Detects function calls where the return value is unused. Checked functions can be configured. Reviewe

[PATCH] D44607: Recompute invalidated iterator in insertTargetAndModeArgs

2018-03-19 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff accepted this revision. sepavloff added a comment. This revision is now accepted and ready to land. LGTM. Thank you! Repository: rC Clang https://reviews.llvm.org/D44607 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[PATCH] D44588: [OpenMP][Clang] Pass global thread ID to outlined function

2018-03-19 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. Tests? Repository: rC Clang https://reviews.llvm.org/D44588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

r327836 - [ARM] Pass half or i16 types for NEON intrinsics

2018-03-19 Thread Sjoerd Meijer via cfe-commits
Author: sjoerdmeijer Date: Mon Mar 19 06:22:49 2018 New Revision: 327836 URL: http://llvm.org/viewvc/llvm-project?rev=327836&view=rev Log: [ARM] Pass half or i16 types for NEON intrinsics For generating NEON intrinsics, this determines the NEON data type, and whether it should be a half type or a

[PATCH] D44561: [ARM] Pass half or i16 types for NEON intrinsics

2018-03-19 Thread Sjoerd Meijer via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327836: [ARM] Pass half or i16 types for NEON intrinsics (authored by SjoerdMeijer, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D44561?vs=1

[PATCH] D44607: Recompute invalidated iterator in insertTargetAndModeArgs

2018-03-19 Thread Hector Martin via Phabricator via cfe-commits
marcan added a comment. Note that I don't have commit access, so someone else will have to commit it for me :) Repository: rC Clang https://reviews.llvm.org/D44607 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

[PATCH] D36828: Updated a usage of createTemporaryFile that does not expect file to be created.

2018-03-19 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. Self-LGTMing since it's a trivial follow-up to an accepted change. https://reviews.llvm.org/D36828 ___ cfe-commits mailing list cfe

r327802 - Resolve unused variable 'VR' warning in RetainCountChecker.cpp

2018-03-19 Thread Bjorn Pettersson via cfe-commits
Author: bjope Date: Sun Mar 18 09:07:20 2018 New Revision: 327802 URL: http://llvm.org/viewvc/llvm-project?rev=327802&view=rev Log: Resolve unused variable 'VR' warning in RetainCountChecker.cpp Getting rid of error: unused variable 'VR' [-Werror,-Wunused-variable] warning/error at lib/Static

[PATCH] D44222: [AArch64] Add vmulxh_lane FP16 intrinsics

2018-03-19 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer abandoned this revision. SjoerdMeijer added a comment. This is implemented in https://reviews.llvm.org/D44591. https://reviews.llvm.org/D44222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D44591: [AArch64] Add vmulxh_lane FP16 vector intrinsic

2018-03-19 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer accepted this revision. SjoerdMeijer added a comment. This revision is now accepted and ready to land. This looks good to me, but we need a companion LLVM patch and add codegen tests for this to: CodeGen/AArch64/fp16_intrinsic_lane.ll. https://reviews.llvm.org/D44591 ___

[PATCH] D38455: [clang-tidy] new cppcoreguidelines-narrowing-conversions check.

2018-03-19 Thread Clement Courbet via Phabricator via cfe-commits
courbet updated this revision to Diff 138910. courbet added a comment. Herald added a subscriber: cfe-commits. Do not trigger on `some_int += std::floor(some_float)`; Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D38455 Files: clang-tidy/cppcoreguidelines/CMakeLists.txt cla

[PATCH] D36828: Updated a usage of createTemporaryFile that does not expect file to be created.

2018-03-19 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327852: Updated a usage of createTemporaryFile that does not expect file to be created. (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://revi

r327852 - Updated a usage of createTemporaryFile that does not expect file to be created.

2018-03-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Mar 19 07:20:25 2018 New Revision: 327852 URL: http://llvm.org/viewvc/llvm-project?rev=327852&view=rev Log: Updated a usage of createTemporaryFile that does not expect file to be created. Summary: This fixes a usage of createTemporaryFile in clang repo after a change i

[PATCH] D21508: Diagnose friend function template redefinitions

2018-03-19 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. Other compilers successfully recognize errors (checked using https://godbolt.org/). For instance, the code: template inline void func_35(T *x); template struct C35a { template friend void func_35(T *x) {} }; template struct C35b { template friend vo

[PATCH] D44588: [OpenMP][Clang] Pass global thread ID to outlined function

2018-03-19 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea abandoned this revision. gtbercea added a comment. After some internal discussion with @ABataev he is going to replace the manual computation of the thread ID with a call to the runtime in a new patch. Repository: rC Clang https://reviews.llvm.org/D44588 _

[clang-tools-extra] r327854 - run-clang-tidy: forward clang-tidy exit status

2018-03-19 Thread Miklos Vajna via cfe-commits
Author: vmiklos Date: Mon Mar 19 07:43:59 2018 New Revision: 327854 URL: http://llvm.org/viewvc/llvm-project?rev=327854&view=rev Log: run-clang-tidy: forward clang-tidy exit status Exit with a non-zero value in case any of the underlying clang-tidy invocations exit with a non-zero value. This is

[PATCH] D44366: run-clang-tidy: forward clang-tidy exit status

2018-03-19 Thread Miklos Vajna via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE327854: run-clang-tidy: forward clang-tidy exit status (authored by vmiklos, committed by ). Herald added a subscriber: cfe-commits. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44366

[PATCH] D44628: Backport changes from llvm/.clang_tidy to clang/.clang_tidy configs

2018-03-19 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a subscriber: simark. ilya-biryukov added a comment. Found by @simark while working on https://reviews.llvm.org/D44272. Repository: rC Clang https://reviews.llvm.org/D44628 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[PATCH] D44628: Backport changes from llvm/.clang_tidy to clang/.clang_tidy configs

2018-03-19 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: alexfh. ilya-biryukov added a subscriber: simark. ilya-biryukov added a comment. Found by @simark while working on https://reviews.llvm.org/D44272. LLVM .clang_tidy seems to be more up-to-date. Repository: rC Clang https:/

[PATCH] D41102: Setup clang-doc frontend framework

2018-03-19 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. I was just thinking of disabling the one test that has an issue (class-in-function) on Windows -- the filename is only used in generating *some* USRs, so all of the other ones are fine. We ran into some issues with that though, since `UNSUPPORTED: system-windows` d

r327860 - [CMake] Use libc++ and compiler-rt as default libraries in Fuchsia toolchain

2018-03-19 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Mar 19 08:19:19 2018 New Revision: 327860 URL: http://llvm.org/viewvc/llvm-project?rev=327860&view=rev Log: [CMake] Use libc++ and compiler-rt as default libraries in Fuchsia toolchain Fuchsia already defaults to libc++ and compiler-rt, but we want to use these as default

[PATCH] D41102: Setup clang-doc frontend framework

2018-03-19 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D41102#1041773, @juliehockett wrote: > I was just thinking of disabling the one test that has an issue > (class-in-function) on Windows -- the filename is only used in generating > *some* USRs, so all of the other ones are fine. We ran int

[PATCH] D39930: [CMake] Use libc++ and compiler-rt as default libraries in Fuchsia toolchain

2018-03-19 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327860: [CMake] Use libc++ and compiler-rt as default libraries in Fuchsia toolchain (authored by phosek, committed by ). Changed prior to commit: https://reviews.llvm.org/D39930?vs=138882&id=138936#toc

[PATCH] D41102: Setup clang-doc frontend framework

2018-03-19 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. In https://reviews.llvm.org/D41102#1041791, @lebedev.ri wrote: > Have you tried something more broad, like > `UNSUPPORTED: mingw32,win32` > ? That wasn't working either, confusingly, at least on the local windows machine I have. Repository: rL LLVM https://

[PATCH] D44630: [ms] Parse #pragma optimize and ignore it behind its own flag

2018-03-19 Thread Hans Wennborg via Phabricator via cfe-commits
hans created this revision. hans added reviewers: thakis, rnk. This allows users to turn off warnings about this pragma specifically, while still receiving warnings about other ignored pragmas. https://reviews.llvm.org/D44630 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Bas

[PATCH] D44272: [clangd] Support incremental document syncing

2018-03-19 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdLSPServer.cpp:164 + if (!Contents) { +log(llvm::toString(Contents.takeError())); +return; We should signal an error to the client by calling `replyError` Comment at: clangd/

[PATCH] D44631: [clang-format] Remove empty lines before }[; ] // comment

2018-03-19 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added subscribers: cfe-commits, klimek. This addresses bug 36766 and a FIXME in tests about empty lines before `}[;] // comment` lines. Repository: rC Clang https://reviews.llvm.org/D44631 Files: lib/Format/UnwrappedLineFormatter.cpp unittests/Form

r327861 - [clang-format] Remove empty lines before }[;] // comment

2018-03-19 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Mon Mar 19 08:33:40 2018 New Revision: 327861 URL: http://llvm.org/viewvc/llvm-project?rev=327861&view=rev Log: [clang-format] Remove empty lines before }[;] // comment Summary: This addresses bug 36766 and a FIXME in tests about empty lines before `}[;] // comment` lines.

[PATCH] D44631: [clang-format] Remove empty lines before }[; ] // comment

2018-03-19 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rC327861: [clang-format] Remove empty lines before }[;] // comment (authored by krasimir, committed by ). Changed prior to

[PATCH] D44632: [clang-format] Add a few more Core Graphics identifiers to ObjC heuristic

2018-03-19 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton created this revision. benhamilton added reviewers: jolesiak, djasper. Herald added subscribers: cfe-commits, klimek. We received reports of the Objective-C style guesser getting a false negative on header files like: CGSize SizeOfThing(MyThing thing); This adds more Core Graphics id

[PATCH] D44628: Backport changes from llvm/.clang_tidy to clang/.clang_tidy configs

2018-03-19 Thread Simon Marchi via Phabricator via cfe-commits
simark requested changes to this revision. simark added inline comments. This revision now requires changes to proceed. Comment at: .clang-tidy:8 - key: readability-identifier-naming.FunctionCase -value: lowerCase +value: camelBack + -

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

2018-03-19 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Sorry for the delay. Comment at: include/clang/Sema/CodeCompleteConsumer.h:565 + /// \brief For this completion result correction is required. + Optional Corr = None; + Having a string replacement without an actual range to repl

[PATCH] D44630: [ms] Parse #pragma optimize and ignore it behind its own flag

2018-03-19 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm, thanks! Comment at: lib/Parse/ParsePragma.cpp:2970 + + if (Tok.isNot(tok::l_paren)) { +PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) << "optimize";

[PATCH] D44605: [Driver] Default to DWARF 5 for Fuchsia

2018-03-19 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. I should also point out that even in DWARF v5 mode LLVM does not yet emit DWARF 5 variants of all sections as DWARF v5 support in LLVM is not yet feature-complete. Repository: rC Clang https://reviews.llvm.org/D44605 __

[PATCH] D41102: Setup clang-doc frontend framework

2018-03-19 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Huh, something weird is going on there. What about the other way around, `REQUIRES: linux` ? Repository: rL LLVM https://reviews.llvm.org/D41102 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

[PATCH] D44272: [clangd] Support incremental document syncing

2018-03-19 Thread Simon Marchi via Phabricator via cfe-commits
simark marked 4 inline comments as done. simark added inline comments. Comment at: clangd/ClangdLSPServer.cpp:164 + if (!Contents) { +log(llvm::toString(Contents.takeError())); +return; ilya-biryukov wrote: > We should signal an error to the client by ca

[PATCH] D44248: [clangd][cmake] Provide libatomic when there is no native support for 64bit atomics

2018-03-19 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D44248#1041531, @sdardis wrote: > Thanks, I wasn't sure who to add as a reviewer. Authors/reviewers of recent patches for the same files are usually good approximations :) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D4424

r327863 - [Driver] Avoid invalidated iterator in insertTargetAndModeArgs

2018-03-19 Thread Serge Pavlov via cfe-commits
Author: sepavloff Date: Mon Mar 19 09:13:43 2018 New Revision: 327863 URL: http://llvm.org/viewvc/llvm-project?rev=327863&view=rev Log: [Driver] Avoid invalidated iterator in insertTargetAndModeArgs Doing an .insert() can potentially invalidate iterators by reallocating the vector's storage. When

[PATCH] D44607: Recompute invalidated iterator in insertTargetAndModeArgs

2018-03-19 Thread Serge Pavlov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327863: [Driver] Avoid invalidated iterator in insertTargetAndModeArgs (authored by sepavloff, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/

[PATCH] D44634: [clang-format] Detect Objective-C for #import

2018-03-19 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton created this revision. benhamilton added reviewers: jolesiak, djasper. Herald added subscribers: cfe-commits, klimek. Previously, the Objective-C heuristic failed to detect headers which #imported Objective-C system framework(s) and declared C functions on top them. This extends the h

[PATCH] D41938: [Analyzer] SValBuilder Comparison Rearrangement (with Restrictions and Analyzer Option)

2018-03-19 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added inline comments. Comment at: lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:330 + nonloc::ConcreteInt(Max), SVB.getConditionType()); + if (auto DV = IsCappedFromAbove.getAs()) { +if (State->assume(*DV, false)) geo

[PATCH] D41938: [Analyzer] SValBuilder Comparison Rearrangement (with Restrictions and Analyzer Option)

2018-03-19 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 138954. baloghadamsoftware added a comment. Updated according to the comments. https://reviews.llvm.org/D41938 Files: include/clang/StaticAnalyzer/Core/AnalyzerOptions.h lib/StaticAnalyzer/Core/AnalyzerOptions.cpp lib/StaticAnalyzer/Core/Si

[PATCH] D44426: Fix llvm + clang build with Intel compiler

2018-03-19 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Adding @mibintc to take a look, as she's a good representative of the ICC dev team. https://reviews.llvm.org/D44426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D41938: [Analyzer] SValBuilder Comparison Rearrangement (with Restrictions and Analyzer Option)

2018-03-19 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware marked 12 inline comments as done. baloghadamsoftware added inline comments. Comment at: lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:326 + + llvm::APSInt Max = AT.getMaxValue() >> 2; // Divide by 4. + SVal IsCappedFromAbove = george.karpenk

r327867 - [OPENMP, NVPTX] Emit correct thread id.

2018-03-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Mar 19 10:04:07 2018 New Revision: 327867 URL: http://llvm.org/viewvc/llvm-project?rev=327867&view=rev Log: [OPENMP, NVPTX] Emit correct thread id. We emitted fake thread id for the outined function in NVPTX codegen. Patch adds emission of the real thread id. Modified:

Re: r327738 - [MS] Don't escape MS C++ names with \01

2018-03-19 Thread Rafael Avila de Espindola via cfe-commits
Thanks! Reid Kleckner via cfe-commits writes: > Author: rnk > Date: Fri Mar 16 13:36:49 2018 > New Revision: 327738 > > URL: http://llvm.org/viewvc/llvm-project?rev=327738&view=rev > Log: > [MS] Don't escape MS C++ names with \01 > > It is not needed after LLVM r327734. Now it will be easier to

[PATCH] D44539: [Sema][Objective-C] Add check to warn when property of objc type has assign attribute

2018-03-19 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added a comment. I wonder if this wouldn't be better as a clang-tidy check: https://github.com/llvm-mirror/clang-tools-extra/tree/master/clang-tidy/objc Repository: rC Clang https://reviews.llvm.org/D44539 ___ cfe-commits mailing lis

r327868 - [OPENMP] Fix build with MSVC, NFC.

2018-03-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Mar 19 10:18:13 2018 New Revision: 327868 URL: http://llvm.org/viewvc/llvm-project?rev=327868&view=rev Log: [OPENMP] Fix build with MSVC, NFC. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp URL: htt

[PATCH] D44272: [clangd] Support incremental document syncing

2018-03-19 Thread Simon Marchi via Phabricator via cfe-commits
simark marked 3 inline comments as done. simark added inline comments. Comment at: clangd/DraftStore.cpp:61 + const Position &Start = Change.range->start; + size_t StartIndex = positionToOffset(Contents, Start); + if (StartIndex > Contents.length()) { -

r327870 - [ObjC] Allow declaring __weak pointer fields in C structs in ARC.

2018-03-19 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Mon Mar 19 10:38:40 2018 New Revision: 327870 URL: http://llvm.org/viewvc/llvm-project?rev=327870&view=rev Log: [ObjC] Allow declaring __weak pointer fields in C structs in ARC. This patch uses the infrastructure added in r326307 for enabling non-trivial fields to be declar

[PATCH] D44095: [ObjC] Allow declaring __weak pointer fields in C structs in ObjC-ARC

2018-03-19 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. This was reverted in r327294 because it caused module-enabled builders to fail after I moved CXXRecordDecl::CanPassInRegisters to RecordDecl. I'm recommitting this patch with fixes to ASTDeclReader and ASTWriter. Repository: rC Clang https://reviews.llvm.org/D44095

[PATCH] D44619: [CodeGen] Add cleanup scope to EmitInlinedInheritingCXXConstructorCall

2018-03-19 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Code looks good, but we should make the test more robust and self-documenting. Comment at: test/CodeGenCXX/inheriting-constructor-cleanup.cpp:22 +// CHECK-LABEL: define void @_Z1fv

r327873 - [OPENMP, NVPTX] Reworked castToType() function, NFC.

2018-03-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Mar 19 10:53:56 2018 New Revision: 327873 URL: http://llvm.org/viewvc/llvm-project?rev=327873&view=rev Log: [OPENMP, NVPTX] Reworked castToType() function, NFC. Reworked function castToType to use more frontend functionality rather than the backend. Modified: cfe/tr

[PATCH] D44638: [clang-format] Fix ObjC selectors with multiple params passed to macro

2018-03-19 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton created this revision. benhamilton added reviewers: jolesiak, djasper, Wizard. Herald added subscribers: cfe-commits, klimek. Objective-C selectors can with arguments be in the form: foo: foo:bar: foo:bar:baz: These can be passed to a macro, like NS_SWIFT_NAME(): https://developer.a

[PATCH] D36918: [Sema] Take into account the current context when checking the accessibility of a member function pointer

2018-03-19 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. ping https://reviews.llvm.org/D36918 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44606: [analyzer] Fix the crash in `IteratorChecker.cpp` when `SymbolConjured` has a null Stmt.

2018-03-19 Thread Peter Szecsi via Phabricator via cfe-commits
szepet added a comment. Nice catch, it looks good to me! Thank you! One small nit for future debugging people: Could you insert a comment line in the test case where you explain what is this all about? E.g what you just have written in the description: "invalidateRegions() will construct the Sy

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai created this revision. smeenai added reviewers: ahatanak, compnerd, majnemer, rjmccall, rnk. The inline assembly generated for the ARC autorelease elision marker must have a funclet token if it's emitted inside a funclet, otherwise the inline assembly (and all subsequent code in the funcle

[clang-tools-extra] r327887 - [clang-move] Fix the failing test caused by changes in clang-format.

2018-03-19 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Mar 19 12:13:03 2018 New Revision: 327887 URL: http://llvm.org/viewvc/llvm-project?rev=327887&view=rev Log: [clang-move] Fix the failing test caused by changes in clang-format. Modified: clang-tools-extra/trunk/test/clang-move/move-used-helper-decls.cpp Modified: cla

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. LGTM. We should really just switch the reclaim to be marked with a bundle in the first place, but that's not a reasonable thing to ask you to do. Repository: rC Clang https://reviews.

[PATCH] D44426: Fix llvm + clang build with Intel compiler

2018-03-19 Thread Melanie Blower via Phabricator via cfe-commits
mibintc added a comment. I added some inline comments. You are using the Intel 18.0 compiler on Windows - what version of Visual Studio is in the environment? Comment at: include/llvm-c/Target.h:25 -#if defined(_MSC_VER) && !defined(inline) +#if defined(_MSC_VER) && !defined

r327892 - [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Mon Mar 19 12:34:39 2018 New Revision: 327892 URL: http://llvm.org/viewvc/llvm-project?rev=327892&view=rev Log: [CodeGen] Add funclet token to ARC marker The inline assembly generated for the ARC autorelease elision marker must have a funclet token if it's emitted inside a f

[PATCH] D44643: [Lex] Change HeaderSearchOptions arguments to std::string.

2018-03-19 Thread Frederich Munch via Phabricator via cfe-commits
marsupial updated this revision to Diff 138982. https://reviews.llvm.org/D44643 Files: include/clang/Lex/HeaderSearchOptions.h Index: include/clang/Lex/HeaderSearchOptions.h === --- include/clang/Lex/HeaderSearchOptions.h +++ inc

[PATCH] D44643: [Lex] Change HeaderSearchOptions arguments to std::string.

2018-03-19 Thread Frederich Munch via Phabricator via cfe-commits
marsupial created this revision. marsupial added reviewers: eugene, boris. marsupial added a project: clang. marsupial updated this revision to Diff 138982. Arguments passed to HeaderSearchOptions methods are stored as std::strings, having them converted to a StringRef at the call site can result

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327892: [CodeGen] Add funclet token to ARC marker (authored by smeenai, committed by ). Changed prior to commit: https://reviews.llvm.org/D44640?vs=138973&id=138983#toc Repository: rL LLVM https://r

[PATCH] D44640: [CodeGen] Add funclet token to ARC marker

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327892: [CodeGen] Add funclet token to ARC marker (authored by smeenai, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D44640?vs=138973&id=138

[PATCH] D44630: [ms] Parse #pragma optimize and ignore it behind its own flag

2018-03-19 Thread Nico Weber via Phabricator via cfe-commits
thakis accepted this revision. thakis added a comment. Awesome, thanks! One nit below: Comment at: include/clang/Basic/DiagnosticParseKinds.td:973 +def warn_pragma_optimize : Warning< + "'#pragma optimize' is not supported; use '#pragma clang optimize on|off' instead">, + In

[PATCH] D43494: [Modules] Fix creating fake definition data for lambdas.

2018-03-19 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. I think we have agreement on this change. If there are no objections, I plan to commit it on Wednesday, March 21. https://reviews.llvm.org/D43494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D44645: [test] Fix Cross-DSO CFI Android sanitizer test for -rtlib=compiler-rt

2018-03-19 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. mgorny added a reviewer: eugenis. Herald added subscribers: dberris, srhines. mgorny added inline comments. Comment at: test/Driver/sanitizer-ld.c:517 // CHECK-CFI-CROSS-DSO-ANDROID: "{{.*}}ld{{(.exe)?}}" // CHECK-CFI-CROSS-DSO-ANDROID-NOT: libclan

[PATCH] D44645: [test] Fix Cross-DSO CFI Android sanitizer test for -rtlib=compiler-rt

2018-03-19 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: test/Driver/sanitizer-ld.c:517 // CHECK-CFI-CROSS-DSO-ANDROID: "{{.*}}ld{{(.exe)?}}" // CHECK-CFI-CROSS-DSO-ANDROID-NOT: libclang_rt. (an alternative would be to replace this 'NOT' clause with more specific library n

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT created this revision. DHowett-MSFT added reviewers: rnk, majnemer. DHowett-MSFT added a project: clang. Herald added subscribers: cfe-commits, eraman. The MSVC compiler rejects `__forceinline` on variadic functions with the following warning (at /https://reviews.llvm.org/W4): C47

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT added a comment. Apologies if I've chosen the wrong set of reviewers. Repository: rC Clang https://reviews.llvm.org/D44646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [clang-tools-extra] r327833 - [clang-tidy] New check bugprone-unused-return-value

2018-03-19 Thread Galina Kistanova via cfe-commits
Hello Alexander, This commit broke at least two of our builders: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/26909 http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast . . . Failing Tests (1): Clang Tools :: clang-tidy/bug

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a reviewer: compnerd. smeenai added a comment. @DHowett-MSFT the reviewers look fine to me. Reid is the code owner for clang's MSVC compat support. David doesn't work on this stuff directly anymore, I think, but he's still pretty active in code reviews for it. I'm adding Saleem, w

[PATCH] D44435: Add the module name to __cuda_module_ctor and __cuda_module_dtor for unique function names

2018-03-19 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: unittests/CodeGen/IncrementalProcessingTest.cpp:176-178 + +// In CUDA incremental processing, a CUDA ctor or dtor will be generated for +// every statement if a fatbinary file exists. SimeonEhrig wrote: > tra wrote: > > Sim

[PATCH] D39562: [CodeGen][ObjC] Fix an assertion failure caused by copy elision

2018-03-19 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Alright, LGTM. https://reviews.llvm.org/D39562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D44646: Sema: in msvc compatibility mode, don't allow forceinline on variadics

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT updated this revision to Diff 138995. DHowett-MSFT added a comment. Fixed formatting. Repository: rC Clang https://reviews.llvm.org/D44646 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDeclAttr.cpp test/Sema/ms-forceinline-on-variadic.cpp Index: test/Sem

[PATCH] D44580: Sema: allow comparison between blocks & block-compatible objc types

2018-03-19 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT updated this revision to Diff 138996. DHowett-MSFT added a comment. Ran `clang-format` over changed lines. Reuploaded diff with full context. Repository: rC Clang https://reviews.llvm.org/D44580 Files: lib/Sema/SemaExpr.cpp test/SemaObjC/block-compare.mm Index: test/SemaOb

[clang-tools-extra] r327901 - [clangd][nfc] Give name to a magic constant

2018-03-19 Thread Jan Korous via cfe-commits
Author: jkorous Date: Mon Mar 19 13:26:15 2018 New Revision: 327901 URL: http://llvm.org/viewvc/llvm-project?rev=327901&view=rev Log: [clangd][nfc] Give name to a magic constant Modified: clang-tools-extra/trunk/clangd/index/Index.h Modified: clang-tools-extra/trunk/clangd/index/Index.h URL:

[clang-tools-extra] r327902 - [clangd] Fix undefined behavior due to misaligned type cast

2018-03-19 Thread Jan Korous via cfe-commits
Author: jkorous Date: Mon Mar 19 13:26:18 2018 New Revision: 327902 URL: http://llvm.org/viewvc/llvm-project?rev=327902&view=rev Log: [clangd] Fix undefined behavior due to misaligned type cast The current code was casting pointer to a misaligned type which is undefined behavior. Found by compil

[clang-tools-extra] r327885 - [clang-move] Fix move-used-helper-decls.cpp test.

2018-03-19 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Mar 19 12:05:53 2018 New Revision: 327885 URL: http://llvm.org/viewvc/llvm-project?rev=327885&view=rev Log: [clang-move] Fix move-used-helper-decls.cpp test. Modified: clang-tools-extra/trunk/test/clang-move/move-used-helper-decls.cpp Modified: clang-tools-extra/tru

  1   2   >