[PATCH] D36315: [mips] Support implicit gpopt with N64 when using -fno-pic

2017-08-04 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan accepted this revision. atanasyan added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D36315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

Buildmaster restart

2017-08-04 Thread Victor Leschuk via cfe-commits
Hello everyone, LLVM buildmaster was updated and restarted, downtime was about 2 minutes. -- Best Regards, Victor Leschuk | Software Engineer |Access Softek ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D36349: [CMake] Build sanitized C++ runtimes for Fuchsia

2017-08-04 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 109852. Repository: rL LLVM https://reviews.llvm.org/D36349 Files: cmake/caches/Fuchsia-stage2.cmake Index: cmake/caches/Fuchsia-stage2.cmake === --- cmake/caches/Fuchsia-stage2.cmake +++ c

[PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-08-04 Thread John McCall via Phabricator via cfe-commits
rjmccall edited reviewers, added: jasonmolenda, spyffe; removed: rjmccall. rjmccall added a comment. Since this is fundamentally an LLDB script, I've tagged a couple of LLDB people to review it. Jason, Sean: the idea here is to make it easier for clang developers to debug unexpected diagnostics

[PATCH] D36349: [CMake] Build sanitized C++ runtimes for Fuchsia

2017-08-04 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Herald added a subscriber: mgorny. Repository: rL LLVM https://reviews.llvm.org/D36349 Files: cmake/caches/Fuchsia-stage2.cmake Index: cmake/caches/Fuchsia-stage2.cmake === --- cmake/caches/Fuchsi

[PATCH] D36259: [OpenCL] Remove extra select functions from opencl-c.h

2017-08-04 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL310160: [OpenCL] Remove extra select functions from opencl-c.h (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D36259?vs=109486&id=109845#toc Repository: rL LLVM https://revi

r310160 - [OpenCL] Remove extra select functions from opencl-c.h

2017-08-04 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Aug 4 19:23:47 2017 New Revision: 310160 URL: http://llvm.org/viewvc/llvm-project?rev=310160&view=rev Log: [OpenCL] Remove extra select functions from opencl-c.h OpenCL spec v2.0 s6.13.6: gentype select (gentype a, gentype b, igentype c) gentype select (gentype a, gent

Re: r305903 - Function with unparsed body is a definition

2017-08-04 Thread Alexander Kornienko via cfe-commits
Thank you for the analysis! It would be nice if you could implement a short term workaround to avoid crashes. Maybe Richard has ideas on what a proper solution should look like. On Wed, Aug 2, 2017 at 8:05 PM, Serge Pavlov wrote: > At first thank you for the nice test case. > > This crash is not

[PATCH] D30748: [Lexer] Finding beginning of token with escaped new line

2017-08-04 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good with one nit. Do you need someone to commit the patch for you after you address the comment? Comment at: lib/Lex/Lexer.cpp:469-477 +if (!isVerticalWhitespace(

r310158 - [ODRHash] Treat some non-templated classes as templated.

2017-08-04 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Aug 4 17:54:19 2017 New Revision: 310158 URL: http://llvm.org/viewvc/llvm-project?rev=310158&view=rev Log: [ODRHash] Treat some non-templated classes as templated. When using nested classes, if the inner class is not templated, but the outer class is templated, the inner

[PATCH] D36250: [coverage] Special-case calls to noreturn functions.

2017-08-04 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. I tested this out on clang's ItaniumMangle.cpp and the crash is resolved. Comment at: lib/CodeGen/CoverageMappingGen.cpp:723 + this->Visit(Child); +handleFileExit(getEnd(E)); + This is doing the right thing. I think it should just

[libcxx] r310156 - [libcxx] [test] Fix URLs in comments and make them HTTPS. NFC.

2017-08-04 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Fri Aug 4 17:44:24 2017 New Revision: 310156 URL: http://llvm.org/viewvc/llvm-project?rev=310156&view=rev Log: [libcxx] [test] Fix URLs in comments and make them HTTPS. NFC. Modified: libcxx/trunk/test/libcxx/thread/thread.condition/PR30202_notify_from_pthread_created

[libcxx] r310157 - [libcxx] [test] Untabify stringstream.cons/string.pass.cpp. NFC.

2017-08-04 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Fri Aug 4 17:44:27 2017 New Revision: 310157 URL: http://llvm.org/viewvc/llvm-project?rev=310157&view=rev Log: [libcxx] [test] Untabify stringstream.cons/string.pass.cpp. NFC. Modified: libcxx/trunk/test/std/input.output/string.streams/stringstream.cons/string.pass.cp

[libcxx] r310155 - [libcxx] [test] Consistently list "c++98, c++03" in chronological order. NFC.

2017-08-04 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Fri Aug 4 17:44:19 2017 New Revision: 310155 URL: http://llvm.org/viewvc/llvm-project?rev=310155&view=rev Log: [libcxx] [test] Consistently list "c++98, c++03" in chronological order. NFC. Modified: libcxx/trunk/test/std/iterators/iterator.range/begin-end.pass.cpp

[PATCH] D35925: [Coverage] Precise region termination with deferred regions

2017-08-04 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. Reverted in r310154, because llvm-cov isn't doing a good job of displaying the new regions properly. I'll re-land this after llvm-cov is fixed. https://reviews.llvm.org/D35925 ___ cfe-commits mailing list cfe-commits@lists.llvm

r310154 - Revert "[Coverage] Precise region termination with deferred regions"

2017-08-04 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Fri Aug 4 17:34:10 2017 New Revision: 310154 URL: http://llvm.org/viewvc/llvm-project?rev=310154&view=rev Log: Revert "[Coverage] Precise region termination with deferred regions" This reverts commit r310010. I don't think there's anything wrong with this commit, but it's c

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added inline comments. Comment at: clang/tools/clang-fuzzer/ClangFuzzer.cpp:20 extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) { std::string s((const char *)data, size); morehouse wrote: > morehouse wrote: > > vitalybuka wrote:

[PATCH] D36250: [coverage] Special-case calls to noreturn functions.

2017-08-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma updated this revision to Diff 109838. efriedma added a comment. Add missing call to handleFileExit(). Not sure I'm really calling it in the right place, but this seems to work. Repository: rL LLVM https://reviews.llvm.org/D36250 Files: lib/CodeGen/CoverageMappingGen.cpp test/Co

[PATCH] D36250: [coverage] Special-case calls to noreturn functions.

2017-08-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma reopened this revision. efriedma added a comment. This revision is now accepted and ready to land. This was reverted. Failing function, from include/clang/AST/Type.h: inline bool Type::isImageType() const { #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) is##Id##Type()

r310147 - Debug Info: Set the DICompileUnit's isOptimized flag when compiling with LTO.

2017-08-04 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Fri Aug 4 16:08:57 2017 New Revision: 310147 URL: http://llvm.org/viewvc/llvm-project?rev=310147&view=rev Log: Debug Info: Set the DICompileUnit's isOptimized flag when compiling with LTO. rdar://problem/27640939 Added: cfe/trunk/test/CodeGen/debug-info-lto.c Modified:

r310145 - Clean up some lambda conversion operator code, NFC

2017-08-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Aug 4 15:38:06 2017 New Revision: 310145 URL: http://llvm.org/viewvc/llvm-project?rev=310145&view=rev Log: Clean up some lambda conversion operator code, NFC We don't need special handling in CodeGenFunction::GenerateCode for lambda block pointer conversion operators anymor

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/tools/clang-fuzzer/ClangFuzzer.cpp:20 extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) { std::string s((const char *)data, size); morehouse wrote: > vitalybuka wrote: > > Do we want replace

Re: r310057 - Revert r304953 for release 5.0.0

2017-08-04 Thread Vitaly Buka via cfe-commits
Probably not, r310056 fails as well On Fri, Aug 4, 2017 at 3:19 PM, Vitaly Buka wrote: > Looks like it's causing > http://lab.llvm.org:8011/builders/sanitizer-x86_64- > linux-bootstrap/builds/1969/steps/build%20clang%2Fmsan/logs/stdio > > FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MIRPrinter

Re: r310057 - Revert r304953 for release 5.0.0

2017-08-04 Thread Vitaly Buka via cfe-commits
Looks like it's causing http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/1969/steps/build%20clang%2Fmsan/logs/stdio FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MIRPrinter.cpp.o /mnt/b/sanitizer-buildbot2/sanitizer-x86_64-linux-bootstrap/build/llvm_build0/bin/clang++ -

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added inline comments. Comment at: clang/tools/clang-fuzzer/CMakeLists.txt:12 +# Hack to bypass LLVM's cmake sources check and allow multiple libraries and +# executables from this directory. +set(LLVM_OPTIONAL_SOURCES morehouse wrote: > v

r310138 - [libclang] Determinize order of platform availability attrs

2017-08-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Aug 4 14:52:25 2017 New Revision: 310138 URL: http://llvm.org/viewvc/llvm-project?rev=310138&view=rev Log: [libclang] Determinize order of platform availability attrs Previously this code was doing std::sort on IdentifierInfo pointers. Now it sorts alphabetically by platfor

r310137 - [Support] Use FILE_SHARE_DELETE to fix RemoveFileOnSignal on Windows

2017-08-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Aug 4 14:52:00 2017 New Revision: 310137 URL: http://llvm.org/viewvc/llvm-project?rev=310137&view=rev Log: [Support] Use FILE_SHARE_DELETE to fix RemoveFileOnSignal on Windows Summary: Tools like clang that use RemoveFileOnSignal on their output files weren't actually able

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/cmake/modules/ProtobufMutator.cmake:13 +-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} +-DCMAKE_BUILD_TYPE=Debug + BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} vitalybuka wrote: > Why this is debug? > I was just usi

r310136 - [libFuzzer] add -fsanitize-coverage-pc-table to -fsanitize=fuzzer

2017-08-04 Thread Kostya Serebryany via cfe-commits
Author: kcc Date: Fri Aug 4 14:35:11 2017 New Revision: 310136 URL: http://llvm.org/viewvc/llvm-project?rev=310136&view=rev Log: [libFuzzer] add -fsanitize-coverage-pc-table to -fsanitize=fuzzer Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp cfe/trunk/test/Driver/fuzzer.c Modified: cf

r310135 - Revert "[OPENMP][DEBUG] Set proper address space info if required by target."

2017-08-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 4 14:27:11 2017 New Revision: 310135 URL: http://llvm.org/viewvc/llvm-project?rev=310135&view=rev Log: Revert "[OPENMP][DEBUG] Set proper address space info if required by target." This reverts commit r310104. Removed: cfe/trunk/test/OpenMP/target_parallel_debu

r310134 - Revert "[OPENMP] Fix for pacify buildbots, NFC."

2017-08-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 4 14:26:25 2017 New Revision: 310134 URL: http://llvm.org/viewvc/llvm-project?rev=310134&view=rev Log: Revert "[OPENMP] Fix for pacify buildbots, NFC." This reverts commit r310120. Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe/trunk/lib/CodeGe

r310132 - Reland "CFI: blacklist STL allocate() from unrelated-casts"

2017-08-04 Thread Vlad Tsyrklevich via cfe-commits
Author: vlad.tsyrklevich Date: Fri Aug 4 14:21:00 2017 New Revision: 310132 URL: http://llvm.org/viewvc/llvm-project?rev=310132&view=rev Log: Reland "CFI: blacklist STL allocate() from unrelated-casts" Reland r310097 with a fix for a debug assertion in NamedDecl.getName() Differential Revision:

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added inline comments. Comment at: clang/cmake/modules/ProtobufMutator.cmake:13 +-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} +-DCMAKE_BUILD_TYPE=Debug + BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} Why this is debug? Comment at: clan

[PATCH] D32210: [Sema][ObjC] Add support for attribute "noescape"

2017-08-04 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: lib/CodeGen/CGCall.cpp:2096 +if (FI.getExtParameterInfo(ArgNo).isNoEscape()) + Attrs.addAttribute(llvm::Attribute::NoCapture); + rjmccall wrote: > ahatanak wrote: > > rjmccall wrote: > > > You should make sure

[PATCH] D32210: [Sema][ObjC] Add support for attribute "noescape"

2017-08-04 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 109814. ahatanak added a comment. Include noescape attribute information in the function prototype and modify the AST printer and name mangling accordingly. Also, make changes to allow implicit conversion from a function that takes noescape parameters to a

r310121 - Revert "Reland "CFI: blacklist STL allocate() from unrelated-casts""

2017-08-04 Thread Vlad Tsyrklevich via cfe-commits
Author: vlad.tsyrklevich Date: Fri Aug 4 13:37:49 2017 New Revision: 310121 URL: http://llvm.org/viewvc/llvm-project?rev=310121&view=rev Log: Revert "Reland "CFI: blacklist STL allocate() from unrelated-casts"" This reverts commit r310105. Removed: cfe/trunk/test/CodeGen/cfi-unrelated-cast.

r310120 - [OPENMP] Fix for pacify buildbots, NFC.

2017-08-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 4 13:29:52 2017 New Revision: 310120 URL: http://llvm.org/viewvc/llvm-project?rev=310120&view=rev Log: [OPENMP] Fix for pacify buildbots, NFC. Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp URL: http://llvm.or

[PATCH] D36272: [CodeGen][x86_64] Enable 'force_align_arg_pointer' attribute at x86_64

2017-08-04 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added a comment. I've added "cfe-commits" as a subscriber since that's how we make sure the review request gets to the mailing list (which is still where review canonically takes place). Repository: rL LLVM https://reviews.llvm.org/D36272 ___

[PATCH] D35847: clang-format: Fix left pointer alignment after delctype/typeof

2017-08-04 Thread Erik Uhlmann via Phabricator via cfe-commits
euhlmann updated this revision to Diff 109805. euhlmann added a comment. Fix bad formatting https://reviews.llvm.org/D35847 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest.cpp =

r310105 - Reland "CFI: blacklist STL allocate() from unrelated-casts"

2017-08-04 Thread Vlad Tsyrklevich via cfe-commits
Author: vlad.tsyrklevich Date: Fri Aug 4 12:50:39 2017 New Revision: 310105 URL: http://llvm.org/viewvc/llvm-project?rev=310105&view=rev Log: Reland "CFI: blacklist STL allocate() from unrelated-casts" Reland r310097 with a unit test fix for MS ABI build bots. Differential Revision: https://rev

r310104 - [OPENMP][DEBUG] Set proper address space info if required by target.

2017-08-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 4 12:46:10 2017 New Revision: 310104 URL: http://llvm.org/viewvc/llvm-project?rev=310104&view=rev Log: [OPENMP][DEBUG] Set proper address space info if required by target. Arguments, passed to the outlined function, must have correct address space info for proper De

[PATCH] D36336: [X86] Add support for __builtin_cpu_init

2017-08-04 Thread Craig Topper via Phabricator via cfe-commits
craig.topper created this revision. This adds __builtin_cpu_init which will emit a call to __cpu_indicator_init in libgcc or compiler-rt. This is needed to support __builtin_cpu_supports/__builtin_cpu_is in an ifunc resolver. https://reviews.llvm.org/D36336 Files: include/clang/Basic/Built

r310099 - Revert "CFI: blacklist STL allocate() from unrelated-casts"

2017-08-04 Thread Vlad Tsyrklevich via cfe-commits
Author: vlad.tsyrklevich Date: Fri Aug 4 12:17:16 2017 New Revision: 310099 URL: http://llvm.org/viewvc/llvm-project?rev=310099&view=rev Log: Revert "CFI: blacklist STL allocate() from unrelated-casts" This reverts commit r310097. Removed: cfe/trunk/test/CodeGen/cfi-unrelated-cast.cpp Modif

r310097 - CFI: blacklist STL allocate() from unrelated-casts

2017-08-04 Thread Vlad Tsyrklevich via cfe-commits
Author: vlad.tsyrklevich Date: Fri Aug 4 12:10:11 2017 New Revision: 310097 URL: http://llvm.org/viewvc/llvm-project?rev=310097&view=rev Log: CFI: blacklist STL allocate() from unrelated-casts Summary: Previously, STL allocators were blacklisted in compiler_rt's cfi_blacklist.txt because they ma

r310098 - [OPENMP] Unify generation of outlined function calls.

2017-08-04 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 4 12:10:54 2017 New Revision: 310098 URL: http://llvm.org/viewvc/llvm-project?rev=310098&view=rev Log: [OPENMP] Unify generation of outlined function calls. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h cfe/t

[PATCH] D36294: CFI: blacklist STL allocate() from unrelated-casts

2017-08-04 Thread Vlad Tsyrklevich via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL310097: CFI: blacklist STL allocate() from unrelated-casts (authored by vlad.tsyrklevich). Repository: rL LLVM https://reviews.llvm.org/D36294 Files: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp cfe/

[clang-tools-extra] r310096 - [clang-tidy] Added clang-tidy test cases related to rL310095

2017-08-04 Thread Florian Gross via cfe-commits
Author: fgross Date: Fri Aug 4 12:01:56 2017 New Revision: 310096 URL: http://llvm.org/viewvc/llvm-project?rev=310096&view=rev Log: [clang-tidy] Added clang-tidy test cases related to rL310095 Differential Revision: https://reviews.llvm.org/D36308 Modified: clang-tools-extra/trunk/test/clan

[PATCH] D36308: Add handling for DeducedType to HasDeclarationMatcher

2017-08-04 Thread Florian Gross via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL310095: [ASTMatcher] Add handling for DeducedType to HasDeclarationMatcher (authored by fgross). Changed prior to commit: https://reviews.llvm.org/D36308?vs=109795&id=109796#toc Repository: rL LLVM

r310095 - [ASTMatcher] Add handling for DeducedType to HasDeclarationMatcher

2017-08-04 Thread Florian Gross via cfe-commits
Author: fgross Date: Fri Aug 4 11:59:19 2017 New Revision: 310095 URL: http://llvm.org/viewvc/llvm-project?rev=310095&view=rev Log: [ASTMatcher] Add handling for DeducedType to HasDeclarationMatcher HasDeclarationMatcher did not handle DeducedType, it always returned false for deduced types. S

[PATCH] D36308: Add handling for DeducedType to HasDeclarationMatcher

2017-08-04 Thread Florian Gross via Phabricator via cfe-commits
fgross updated this revision to Diff 109795. fgross added a comment. Changed comment, added some clang-tidy test cases. https://reviews.llvm.org/D36308 Files: include/clang/ASTMatchers/ASTMatchersInternal.h test/clang-tidy/misc-use-after-move.cpp test/clang-tidy/performance-inefficient-st

[PATCH] D35847: clang-format: Fix left pointer alignment after delctype/typeof

2017-08-04 Thread Erik Uhlmann via Phabricator via cfe-commits
euhlmann updated this revision to Diff 109785. euhlmann added a comment. Pulled out `getPreviousNonComment()` into local variable to avoid calling twice. https://reviews.llvm.org/D35847 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc added a comment. In https://reviews.llvm.org/D36324#832271, @thakis wrote: > Why should this be part of llvm? This seems to come with very heavy > dependencies (protobuf), and LLVM has historically tried to minimize the > number of things it depends on. This fuzzer has already uncovered a

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Why should this be part of llvm? This seems to come with very heavy dependencies (protobuf), and LLVM has historically tried to minimize the number of things it depends on. https://reviews.llvm.org/D36324 ___ cfe-commits ma

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-08-04 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. yaxunl marked 2 inline comments as done. Closed by commit rL310082: Add OpenCL 2.0 atomic builtin functions as Clang builtin (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D28691?vs=109612&id=1097

r310082 - Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-08-04 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Aug 4 11:16:31 2017 New Revision: 310082 URL: http://llvm.org/viewvc/llvm-project?rev=310082&view=rev Log: Add OpenCL 2.0 atomic builtin functions as Clang builtin OpenCL 2.0 atomic builtin functions have a scope argument which is ideally represented as synchronization s

[PATCH] D35372: [clang-tidy] Refactor the code and add a close-on-exec check on memfd_create() in Android module.

2017-08-04 Thread Yan Wang via Phabricator via cfe-commits
yawanng added inline comments. Comment at: clang-tidy/android/CloexecCheck.h:72 + StringRef getSpellingArg(const ast_matchers::MatchFinder::MatchResult &Result, + int n); + hokein wrote: > `n` should be capital `N`. I think we can make

[PATCH] D35372: [clang-tidy] Refactor the code and add a close-on-exec check on memfd_create() in Android module.

2017-08-04 Thread Yan Wang via Phabricator via cfe-commits
yawanng updated this revision to Diff 109778. yawanng marked 13 inline comments as done. https://reviews.llvm.org/D35372 Files: clang-tidy/android/AndroidTidyModule.cpp clang-tidy/android/CMakeLists.txt clang-tidy/android/CloexecCheck.cpp clang-tidy/android/CloexecCheck.h clang-tidy/and

[PATCH] D36148: clang-format: [JS] support fields with case/switch/default labels.

2017-08-04 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL310070: clang-format: [JS] support fields with case/switch/default labels. (authored by mprobst). Repository: rL LLVM https://reviews.llvm.org/D36148 Files: cfe/trunk/lib/Format/UnwrappedLineParser.

r310070 - clang-format: [JS] support fields with case/switch/default labels.

2017-08-04 Thread Martin Probst via cfe-commits
Author: mprobst Date: Fri Aug 4 10:07:15 2017 New Revision: 310070 URL: http://llvm.org/viewvc/llvm-project?rev=310070&view=rev Log: clang-format: [JS] support fields with case/switch/default labels. Summary: `case:` and `default:` would normally parse as labels for a `switch` block. However in

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-08-04 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. Still LGTM. https://reviews.llvm.org/D28691 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[libcxx] r310068 - Merging r309920:

2017-08-04 Thread Hans Wennborg via cfe-commits
Author: hans Date: Fri Aug 4 09:52:25 2017 New Revision: 310068 URL: http://llvm.org/viewvc/llvm-project?rev=310068&view=rev Log: Merging r309920: r309920 | ericwf | 2017-08-02 21:28:10 -0700 (Wed, 02 Aug 2017) | 5 lines Fi

[PATCH] D36327: [OpenCL] Allow targets emit optimized pipe functions for power of 2 type sizes

2017-08-04 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. Herald added a subscriber: tpr. Currently Clang emits call of __read_pipe_2 or __read_pipe_4 for OpenCL read_pipe builtin, with appended type size and alignment arguments, where 2 or 4 indicates the original number of arguments. For certain targets (e.g. amdgpu), t

Re: r309975 - Don't emit undefined-internal warnings for CXXDeductionGuideDecls.

2017-08-04 Thread Hans Wennborg via cfe-commits
r310067. Thanks! On Thu, Aug 3, 2017 at 12:27 PM, Richard Smith wrote: > Can we get this fix onto the 5.0 branch? (Just the changes to lib/ and > test/, the changes to doc/ were accidentally committed and have been > reverted already.) > > On 3 August 2017 at 12:24, Richard Smith via cfe-commits

[PATCH] D35372: [clang-tidy] Refactor the code and add a close-on-exec check on memfd_create() in Android module.

2017-08-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tidy/android/CloexecCheck.cpp:66 + // Check if the may be in the mode string. + const auto ModeStr = dyn_cast(ModeArg->IgnoreParenCasts()); + if (!ModeStr || (ModeStr->getString().find(Mode) != StringRef::npos))

[PATCH] D36324: Integrate Kostya's clang-proto-fuzzer with LLVM.

2017-08-04 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse created this revision. Herald added a subscriber: mgorny. The clang-proto-fuzzer models a subset of C++ as a protobuf and uses libprotobuf-mutator to generate interesting mutations of C++ programs. Clang-proto-fuzzer has already found several bugs in Clang (e.g., https://bugs.llvm.org/s

[PATCH] D30748: [Lexer] Finding beginning of token with escaped new line

2017-08-04 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode updated this revision to Diff 109748. idlecode added a comment. Applied clang-format https://reviews.llvm.org/D30748 Files: include/clang/Lex/Lexer.h lib/Lex/Lexer.cpp unittests/Lex/LexerTest.cpp Index: unittests/Lex/LexerTest.cpp

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-08-04 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked 3 inline comments as done. yaxunl added a comment. Ping. Any other comments? Thanks. Comment at: lib/AST/Expr.cpp:4000-4004 + if (auto AT = T->getAs()) { +return AT->getValueType(); + } else { +return T; + } bader wrote: > No need in el

[PATCH] D36315: [mips] Support implicit gpopt with N64 when using -fno-pic

2017-08-04 Thread Simon Dardis via Phabricator via cfe-commits
sdardis created this revision. Herald added a subscriber: arichardson. As clang defaults to -mno-abicalls when using -fno-pic for N64, implicitly use -mgpopt in that case. https://reviews.llvm.org/D36315 Files: lib/Driver/ToolChains/Clang.cpp test/Driver/mips-features.c Index: test/Drive

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-08-04 Thread Alexey Bader via Phabricator via cfe-commits
bader accepted this revision. bader added inline comments. Comment at: lib/AST/Expr.cpp:4000-4004 + if (auto AT = T->getAs()) { +return AT->getValueType(); + } else { +return T; + } No need in else branch after return: ``` if (...) { return AT->getVa

[PATCH] D30748: [Lexer] Finding beginning of token with escaped new line

2017-08-04 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode updated this revision to Diff 109740. idlecode marked an inline comment as done. https://reviews.llvm.org/D30748 Files: include/clang/Lex/Lexer.h lib/Lex/Lexer.cpp unittests/Lex/LexerTest.cpp Index: unittests/Lex/LexerTest.cpp ==

[PATCH] D30748: [Lexer] Finding beginning of token with escaped new line

2017-08-04 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode marked 3 inline comments as done. idlecode added inline comments. Comment at: lib/Lex/Lexer.cpp:460 +/// \brief Check if new line pointed by Str is escaped. +bool isNewLineEscaped(const char *BufferStart, const char *Str) { + assert(isVerticalWhitespace(Str[0])); --

RE: r308619 - Reland "[mips] Teach the driver to accept -m(no-)gpopt."

2017-08-04 Thread Simon Dardis via cfe-commits
> -Original Message- > From: Simon Atanasyan [mailto:si...@atanasyan.com] > Sent: 04 August 2017 11:29 > To: Simon Dardis > Cc: Clang Commits > Subject: Re: r308619 - Reland "[mips] Teach the driver to accept -m(no- > )gpopt." > > On Thu, Jul 20, 2017 at 5:04 PM, Simon Dardis via cfe-com

[PATCH] D36191: [CodeGen] Don't make availability attributes imply default visibility on macos

2017-08-04 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Is landing this blocked on internal testing? https://reviews.llvm.org/D36191 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D36238: Use "foo-12345.o" instead of "foo.o-12345" as temporary file name.

2017-08-04 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Hm, that's unfortunate. I don't see a good way to rescue this patch. We could keep the lhs of this and always append ".tmp", then tools at least had a way of filtering out the temp files. Hm. https://reviews.llvm.org/D36238 ___

[PATCH] D35355: Fix templated type alias completion when using global completion cache

2017-08-04 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. In https://reviews.llvm.org/D35355#831845, @klimek wrote: > Sorry for missing this - can you add a test? I think I can :) Will add it next week. https://reviews.llvm.org/D35355 ___ cfe-commits mailing list cfe-commits@lists

Re: r310030 - Revert r309984, "Use "foo-12345.o" instead of "foo.o-12345" as temporary file name."

2017-08-04 Thread Nico Weber via cfe-commits
Takumi provides some more details on IRC: The change broke http://bb.pgr.jp/builders/bootstrap-clang-libcxx-lld-i686-linux/builds/655/steps/build_stage2/logs/stdio , which uses modules. He says there's a race-condition: while clang emits ***-{tmp}.pcm, another clang collects *.pcm for the module i

[PATCH] D35355: Fix templated type alias completion when using global completion cache

2017-08-04 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. Sorry for missing this - can you add a test? https://reviews.llvm.org/D35355 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D36308: Add handling for DeducedType to HasDeclarationMatcher

2017-08-04 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. Thanks! LG after comment change. Also, should we add some tests to clang-tidy? :) Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:745 + +// For deduced types

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-08-04 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked 10 inline comments as done. yaxunl added inline comments. Comment at: include/clang/Basic/SyncScope.h:21 +/// \brief Defines the synch scope values used by the atomic builtins and +/// expressions +enum class SyncScope { rjmccall wrote: > If the num

[PATCH] D36150: [clangd] LSP extension to switch between source/header file

2017-08-04 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added inline comments. Comment at: clangd/ProtocolHandlers.cpp:260 + Dispatcher.registerHandler( + "textDocument/switchSourceHeader", + llvm::make_unique(Out, Callbacks)); ilya-biryukov wrote: > ilya-biryukov wrote: > > I don't see this metho

r310057 - Revert r304953 for release 5.0.0

2017-08-04 Thread Stefan Maksimovic via cfe-commits
Author: smaksimovic Date: Fri Aug 4 05:37:34 2017 New Revision: 310057 URL: http://llvm.org/viewvc/llvm-project?rev=310057&view=rev Log: Revert r304953 for release 5.0.0 This is causing failures when compiling clang with -O3 as one of the structures used by clang is passed by value and uses the

[PATCH] D36308: Add handling for DeducedType to HasDeclarationMatcher

2017-08-04 Thread Florian Gross via Phabricator via cfe-commits
fgross created this revision. HasDeclarationMatcher did not handle DeducedType, it always returned false for deduced types. So with code like this: struct X{}; auto x = X{}; This did no longer match: varDecl(hasType(recordDecl(hasName("X" Because HasDeclarationMatcher didn't resol

[PATCH] D36051: [clang-tidy] List the checkers with autofix

2017-08-04 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. In my opinion, this list should be available to the executable for two reasons. 1. External tools, that want to integrate clang-tidy in their workflow should be able to get the information about fixits, since they could collidie with their own textual replacements 2.

[clang-tools-extra] r310051 - [clang-tidy] Add missing documents for "IgnoreMacros" option.

2017-08-04 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 4 04:25:05 2017 New Revision: 310051 URL: http://llvm.org/viewvc/llvm-project?rev=310051&view=rev Log: [clang-tidy] Add missing documents for "IgnoreMacros" option. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-make-shared.rst clang-tool

[PATCH] D35355: Fix templated type alias completion when using global completion cache

2017-08-04 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. one more Ping. this is quite a useful fix that does not cost much https://reviews.llvm.org/D35355 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r310050 - [clang-tidy] Ignore macros in make-unique check.

2017-08-04 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 4 04:18:00 2017 New Revision: 310050 URL: http://llvm.org/viewvc/llvm-project?rev=310050&view=rev Log: [clang-tidy] Ignore macros in make-unique check. Summary: The check doesn't fully support smart-ptr usages inside macros, which may cause incorrect fixes, or even c

[PATCH] D36264: [clang-tidy] Ignore macros in make-unique check.

2017-08-04 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL310050: [clang-tidy] Ignore macros in make-unique check. (authored by hokein). Repository: rL LLVM https://reviews.llvm.org/D36264 Files: clang-tools-extra/trunk/clang-tidy/modernize/MakeSmartPtrChe

[PATCH] D36264: [clang-tidy] Ignore macros in make-unique check.

2017-08-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 109701. hokein marked 2 inline comments as done. hokein added a comment. Address review comments. https://reviews.llvm.org/D36264 Files: clang-tidy/modernize/MakeSmartPtrCheck.cpp clang-tidy/modernize/MakeSmartPtrCheck.h docs/clang-tidy/checks/moderniz

[PATCH] D34873: Fix miscompiled 32bit binaries by mingw

2017-08-04 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. @rnk isn't this related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78936 Assuming this is in fact a gcc bug this will most likely cause a regression with the standalone clang mingw toolchains we are on the verge of having. This is of course assuming clang does not ha

[PATCH] D34331: func.wrap.func.con: Unset function before destroying anything

2017-08-04 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. Don't you need `// UNSUPPORTED: c++98, c++03` since `std::function` is supported in C++11 only? https://reviews.llvm.org/D34331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D36264: [clang-tidy] Ignore macros in make-unique check.

2017-08-04 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. LG with a couple of nits. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:54 + Options.get("MakeSmartPtrFunction", MakeSmartPtrFunctionName)), + IgnoreMacros(Options.get("IgnoreMacros", true)) {}

r310047 - [Driver] Error if ARM mode was selected explicitly for M-profile CPUs.

2017-08-04 Thread Florian Hahn via cfe-commits
Author: fhahn Date: Fri Aug 4 03:40:18 2017 New Revision: 310047 URL: http://llvm.org/viewvc/llvm-project?rev=310047&view=rev Log: [Driver] Error if ARM mode was selected explicitly for M-profile CPUs. Summary: M-class profiles do not support ARM execution mode, so providing -marm/-mno-thumb doe

Re: r308619 - Reland "[mips] Teach the driver to accept -m(no-)gpopt."

2017-08-04 Thread Simon Atanasyan via cfe-commits
On Thu, Jul 20, 2017 at 5:04 PM, Simon Dardis via cfe-commits wrote: > Reland "[mips] Teach the driver to accept -m(no-)gpopt." > > This patch teaches the driver to pass -mgpopt by default to the backend when > it > is supported, i.e. we are using -mno-abicalls. [...] > Modified: cfe/trunk/lib/

[PATCH] D34992: Emit static constexpr member as available_externally definition

2017-08-04 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini marked 6 inline comments as done. mehdi_amini added inline comments. Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2293 /// If ExcludeCtor is true, the duration when the object's constructor runs -/// will not be considered. The caller will need to verify that the

[PATCH] D34992: Emit static constexpr member as available_externally definition

2017-08-04 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini updated this revision to Diff 109694. mehdi_amini marked 12 inline comments as done. mehdi_amini added a comment. Address Richard's comment https://reviews.llvm.org/D34992 Files: clang/lib/CodeGen/CodeGenModule.cpp clang/test/CodeGenCXX/cxx11-extern-constexpr.cpp Index: clang/

[PATCH] D36150: [clangd] LSP extension to switch between source/header file

2017-08-04 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov requested changes to this revision. ilya-biryukov added a comment. This revision now requires changes to proceed. This is probably not a final version, but I feel my comments should be helpful anyway. Also, we're missing testcases now. Comment at: clangd/ClangdLS

r310041 - Fix typo and update documentation.

2017-08-04 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Fri Aug 4 01:41:42 2017 New Revision: 310041 URL: http://llvm.org/viewvc/llvm-project?rev=310041&view=rev Log: Fix typo and update documentation. The hasDeclaration documentation was outdated after r288366. Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Mo

[PATCH] D35847: clang-format: Fix left pointer alignment after delctype/typeof

2017-08-04 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/TokenAnnotator.cpp:1402 +PrevToken->MatchingParen->getPreviousNonComment() && +PrevToken->MatchingParen->getPreviousNonComment()->isOneOf( + tok::kw_typeof, It would be cool if you ex

[PATCH] D36264: [clang-tidy] Ignore macros in make-unique check.

2017-08-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. Please take another look. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:114 - if (Construct) + if (Construct && !Construct->getLocation().isMacroID()) checkConstruct(SM, Construct, Type, New); alexfh wrote: > Seems to b

[PATCH] D36264: [clang-tidy] Ignore macros in make-unique check.

2017-08-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 109691. hokein marked an inline comment as done. hokein added a comment. Add a missing test file. https://reviews.llvm.org/D36264 Files: clang-tidy/modernize/MakeSmartPtrCheck.cpp clang-tidy/modernize/MakeSmartPtrCheck.h docs/clang-tidy/checks/moderniz

  1   2   >