[PATCH] D42895: [libclang] Add `CXSymbolRole role` to CXIdxEntityRefInfo

2018-02-05 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. I feel quite ok about this patch. Can you please add unit-tests? Repository: rC Clang https://reviews.llvm.org/D42895 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42947: Support special acronyms inside property names and allow plural forms

2018-02-05 Thread Yan Zhang via Phabricator via cfe-commits
Wizard updated this revision to Diff 132938. Wizard added a comment. resolve conflict in doc Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42947 Files: clang-tidy/objc/PropertyDeclarationCheck.cpp test/clang-tidy/objc-property-declaration.m Index:

[PATCH] D42947: Support special acronyms inside property names and allow plural forms

2018-02-05 Thread Yan Zhang via Phabricator via cfe-commits
Wizard created this revision. Herald added subscribers: cfe-commits, klimek. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42947 Files: clang-tidy/objc/PropertyDeclarationCheck.cpp docs/clang-tidy/checks/objc-property-declaration.rst

[PATCH] D42945: [libc++] Fix misleading indentation.

2018-02-05 Thread Bruce Mitchener via Phabricator via cfe-commits
brucem created this revision. Herald added a reviewer: EricWF. This was picked up via clang-tidy's readability-misleading-indentation check. Repository: rCXX libc++ https://reviews.llvm.org/D42945 Files: include/__string include/algorithm Index: include/algorithm

[libcxx] r324312 - No, really this time mark 3034 as 'Patch Ready'

2018-02-05 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Feb 5 19:24:21 2018 New Revision: 324312 URL: http://llvm.org/viewvc/llvm-project?rev=324312=rev Log: No, really this time mark 3034 as 'Patch Ready' Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL:

[libcxx] r324310 - Mark issue 3034 as 'Patch Ready'

2018-02-05 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Feb 5 19:23:16 2018 New Revision: 324310 URL: http://llvm.org/viewvc/llvm-project?rev=324310=rev Log: Mark issue 3034 as 'Patch Ready' Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL:

Re: [libcxx] r324182 - [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types.

2018-02-05 Thread Eric Fiselier via cfe-commits
Sorry about that guys, I was AFK most of the day today. Thanks for cleaning up my mess. On Feb 5, 2018 7:08 PM, "Nirav Davé" wrote: > I reverted r324182, r324185, and r324192 in r324309. Things should be > unstuck now. > > -Nirav > > On Mon, Feb 5, 2018 at 9:06 PM, Nirav

Re: [libcxx] r324182 - [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types.

2018-02-05 Thread Nirav Davé via cfe-commits
I reverted r324182, r324185, and r324192 in r324309. Things should be unstuck now. -Nirav On Mon, Feb 5, 2018 at 9:06 PM, Nirav Davé wrote: > It looks like we need to revert 324182 and 324194. I'll revert on I > reverify on trunk. > >

[libcxx] r324309 - Revert "[libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types."

2018-02-05 Thread Nirav Dave via cfe-commits
Author: niravd Date: Mon Feb 5 19:03:37 2018 New Revision: 324309 URL: http://llvm.org/viewvc/llvm-project?rev=324309=rev Log: Revert "[libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types." Revert "Fix initialization of array with GCC." Revert "Make

r324308 - Fix crash on invalid.

2018-02-05 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Mon Feb 5 18:58:21 2018 New Revision: 324308 URL: http://llvm.org/viewvc/llvm-project?rev=324308=rev Log: Fix crash on invalid. Don't call a method when the pointer is null. Modified: cfe/trunk/lib/Sema/SemaExpr.cpp cfe/trunk/test/SemaCXX/lambda-expressions.cpp

[PATCH] D42942: [clangd] Collect definitions when indexing.

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This does seem to get at least the simple cases right: ID: 0EF8AF4D08B11EBF3FFB8004CE702991B15F Name:SymbolsFromYAML Scope: 'clang::clangd::' SymInfo: Kind:Function Lang:C

Re: [libcxx] r324182 - [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types.

2018-02-05 Thread Nirav Davé via cfe-commits
It looks like we need to revert 324182 and 324194. I'll revert on I reverify on trunk. ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42942: [clangd] Collect definitions when indexing.

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added reviewers: ioeric, hokein. Herald added subscribers: cfe-commits, jkorous-apple, ilya-biryukov, klimek. (This isn't done! Needs new tests, and some random cleanups should be split out. Looking for some early feedback.) Within a TU: - as now,

[libcxx] r324307 - More patches ready

2018-02-05 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Feb 5 17:59:28 2018 New Revision: 324307 URL: http://llvm.org/viewvc/llvm-project?rev=324307=rev Log: More patches ready Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL:

[PATCH] D42876: [analyzer] Support returning objects by value.

2018-02-05 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ planned changes to this revision. NoQ added a comment. Destructor for the returned temporary is still evaluated conservatively: class C { public: int , C(int &_x, int &_y) : x(_x), y(_y) { ++x; } C(const C ) : x(c.x), y(c.y) { ++x; } ~C() { ++y; } }; C make(int ,

[PATCH] D42768: AST: add an extension to support SwiftCC on MS ABI

2018-02-05 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. The Itanium C++ ABI specifies a convention of using the source-level syntax in the mangling of vendor extensions. This gives a fairly natural naming convention for such extensions. That would suggest that the identifier to use here is `__swiftcall__`, not `__swift_cc` /

[PATCH] D40903: [Sanitizers] Basic Solaris sanitizer support (PR 33274)

2018-02-05 Thread Aleksey Shlyapnikov via Phabricator via cfe-commits
alekseyshl added a comment. Rainer, check https://reviews.llvm.org/rC324302 out, you probably want to add test cases for Solaris to test/Driver/sanitizer-ld.c too. Repository: rC Clang https://reviews.llvm.org/D40903 ___ cfe-commits mailing

[PATCH] D42938: [Sema] Emit -Winteger-overflow for arguments in function calls, ObjC messages.

2018-02-05 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai updated this revision to Diff 132917. vsapsai added a comment. - Improve tests: check when function argument is a function call itself. https://reviews.llvm.org/D42938 Files: clang/lib/Sema/SemaChecking.cpp clang/test/Sema/integer-overflow.c

r324302 - Fix test/Driver/sanitizer-ld.c broken by D40903

2018-02-05 Thread Alex Shlyapnikov via cfe-commits
Author: alekseyshl Date: Mon Feb 5 16:50:18 2018 New Revision: 324302 URL: http://llvm.org/viewvc/llvm-project?rev=324302=rev Log: Fix test/Driver/sanitizer-ld.c broken by D40903 Differential revision: https://reviews.llvm.org/D40903 Modified: cfe/trunk/test/Driver/sanitizer-ld.c

[PATCH] D42672: [CFG] [analyzer] Heavier CFGConstructor elements.

2018-02-05 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: include/clang/Analysis/CFG.h:153 + + ConstructionContext() = default; + ConstructionContext(CXXConstructExpr *Constructor, Stmt *Trigger) xazax.hun wrote: > Maybe I am getting this wrong, but I think in this case the

[PATCH] D42938: [Sema] Emit -Winteger-overflow for arguments in function calls, ObjC messages.

2018-02-05 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added reviewers: ahatanak, nicholas, rsmith. Herald added a subscriber: jkorous-apple. Objective-C properties aren't handled on purpose as they require different approach. rdar://problem/35539384 https://reviews.llvm.org/D42938 Files:

[PATCH] D42672: [CFG] [analyzer] Heavier CFGConstructor elements.

2018-02-05 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 132908. NoQ marked an inline comment as done. NoQ added a comment. Fix uninitialized variables. https://reviews.llvm.org/D42672 Files: include/clang/Analysis/AnalysisDeclContext.h include/clang/Analysis/CFG.h

r324296 - [Sanitizers] Basic Solaris sanitizer support (PR 33274)

2018-02-05 Thread Alex Shlyapnikov via cfe-commits
Author: alekseyshl Date: Mon Feb 5 15:59:13 2018 New Revision: 324296 URL: http://llvm.org/viewvc/llvm-project?rev=324296=rev Log: [Sanitizers] Basic Solaris sanitizer support (PR 33274) Summary: This patch (on top of https://reviews.llvm.org/D35755) provides the clang side necessary to enable

[PATCH] D40903: [Sanitizers] Basic Solaris sanitizer support (PR 33274)

2018-02-05 Thread Aleksey Shlyapnikov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC324296: [Sanitizers] Basic Solaris sanitizer support (PR 33274) (authored by alekseyshl, committed by ). Repository: rC Clang https://reviews.llvm.org/D40903 Files: include/clang/Driver/ToolChain.h

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

2018-02-05 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added subscribers: compnerd, smeenai. smeenai added a comment. This seems ... suboptimal. It breaks existing code in the sense that their code was already broken, and the compiler is just diagnosing it correctly now. Note that Apple themselves recommend casting and using a proper printf

[PATCH] D42561: [PR36008] Avoid -Wsign-compare warning for enum constants in typeof expressions

2018-02-05 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 132901. arphaman marked 4 inline comments as done. arphaman added a comment. Herald added a subscriber: jkorous-apple. Address review comments and fix the inverted check case. https://reviews.llvm.org/D42561 Files: lib/Sema/SemaChecking.cpp

[libcxx] r324292 - Add issues in 'Review'

2018-02-05 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Feb 5 15:50:49 2018 New Revision: 324292 URL: http://llvm.org/viewvc/llvm-project?rev=324292=rev Log: Add issues in 'Review' Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL:

[libcxx] r324290 - Remove ; use instead. See https://libcxx.llvm.org/TS_deprecation.html

2018-02-05 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Feb 5 15:43:34 2018 New Revision: 324290 URL: http://llvm.org/viewvc/llvm-project?rev=324290=rev Log: Remove ; use instead. See https://libcxx.llvm.org/TS_deprecation.html Removed: libcxx/trunk/test/std/experimental/string.view/ Modified:

r324286 - IRGen: Move vtable load after argument evaluation.

2018-02-05 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Mon Feb 5 15:09:13 2018 New Revision: 324286 URL: http://llvm.org/viewvc/llvm-project?rev=324286=rev Log: IRGen: Move vtable load after argument evaluation. This change reduces the live range of the loaded function pointer, resulting in a slight code size decrease (~10KB in

[PATCH] D42725: IRGen: Move vtable load after argument evaluation.

2018-02-05 Thread Peter Collingbourne via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324286: IRGen: Move vtable load after argument evaluation. (authored by pcc, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D42704: [clang-format] Do not break Objective-C string literals inside array literals

2018-02-05 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added a comment. @stephanemoore: It appears all warnings are enabled by default unless they are in class `DefaultIgnore`: https://github.com/llvm-mirror/clang/blob/6de2efd1953adaa9a190b2cdfbe7b5c15f6d6efe/include/clang/Basic/Diagnostic.td#L105 This diagnostic is not in

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

2018-02-05 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. arphaman added reviewers: ahatanak, vsapsai. Herald added subscribers: jkorous-apple, kristof.beyls, aemerson. The -Wformat recently started warning for the following code because of the added support for analysis for the '%zi' specifier. NSInteger i =

[PATCH] D42915: [clangd] Use URIs in index symbols.

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This looks OK so far, where is it going? It doesn't make sense to put URIs in if we only ever use `file:`. I guess others will be produced by some kind of extension point on SymbolCollector. That will specify URI schemes we should try, allow you to replace the whole

[PATCH] D41889: [libcxxabi][demangler] Clean up and llvm-ify the type parser

2018-02-05 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324282: [demangler] Refactor the type parser (authored by epilk, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D41889?vs=132747=132891#toc

[libcxxabi] r324282 - [demangler] Refactor the type parser

2018-02-05 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Mon Feb 5 14:41:20 2018 New Revision: 324282 URL: http://llvm.org/viewvc/llvm-project?rev=324282=rev Log: [demangler] Refactor the type parser Differential revision: https://reviews.llvm.org/D41889 Modified: libcxxabi/trunk/src/cxa_demangle.cpp Modified:

[PATCH] D41102: Setup clang-doc frontend framework

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a subscriber: bkramer. sammccall added a comment. In https://reviews.llvm.org/D41102#998180, @thakis wrote: > This should be in clang-tools-extra next to clang-tidy, clang-include-fixer, > clangd etc, not in the main compiler repo, right? I agree. I see there was earlier

[PATCH] D42573: [clangd] The new threading implementation

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Very nice! Thanks for adding the docs to TUScheduler implementation, makes a big difference. Rest is almost all readability/comment bits. Substantive stuff is: - getUsedBytes() looks racy - I'm not sure we're choosing the right preamble My understanding is the

[PATCH] D41240: [Solaris] __float128 is supported on Solaris/x86

2018-02-05 Thread Rainer Orth via Phabricator via cfe-commits
ro added a comment. ping^2 Repository: rC Clang https://reviews.llvm.org/D41240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41241: [Solaris] Only define _REENTRANT if -pthread

2018-02-05 Thread Rainer Orth via Phabricator via cfe-commits
ro added a comment. ping^4 Repository: rC Clang https://reviews.llvm.org/D41241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40903: [Sanitizers] Basic Solaris sanitizer support (PR 33274)

2018-02-05 Thread Rainer Orth via Phabricator via cfe-commits
ro added a comment. Could anyone please commit this for me? Thanks. Rainer Repository: rC Clang https://reviews.llvm.org/D40903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D41242: [Solaris] Silence -pthread warning on Solaris

2018-02-05 Thread Rainer Orth via Phabricator via cfe-commits
ro added a comment. Could anyone please commit this for me? Thanks. Rainer Repository: rC Clang https://reviews.llvm.org/D41242 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42704: [clang-format] Do not break Objective-C string literals inside array literals

2018-02-05 Thread Stephane Moore via Phabricator via cfe-commits
stephanemoore added a comment. The summary states that -Wobjc-string-concatenation is enabled by default? I looked through `include/clang/Basic/DiagnosticGroups.td` and did not see evidence that `ObjCStringConcatenation` is under `All`. Am I missing something? Is -Wobjc-string-concatenation

[PATCH] D42800: Let CUDA toolchain support amdgpu target

2018-02-05 Thread Greg Rodgers via Phabricator via cfe-commits
gregrodgers added a comment. Here my replys to the inline comments. Everything should be fixed in the next revision. Comment at: include/clang/Basic/Cuda.h:79 COMPUTE_72, + COMPUTE_GCN, }; t-tye wrote: > Suggest using amdgcn which matches the

[clang-tools-extra] r324277 - [clangd] Add a cstring include for strerror.

2018-02-05 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Mon Feb 5 14:10:39 2018 New Revision: 324277 URL: http://llvm.org/viewvc/llvm-project?rev=324277=rev Log: [clangd] Add a cstring include for strerror. Apparently this doesn't get included transitively on some systems. Modified: clang-tools-extra/trunk/clangd/Context.cpp

[PATCH] D42887: [Driver] Add option to manually control discarding value names in LLVM IR.

2018-02-05 Thread Justin Bogner via Phabricator via cfe-commits
bogner added inline comments. Comment at: lib/Driver/ToolChains/Clang.cpp:3269-3274 + const bool IsAssertBuild = #ifdef NDEBUG - CmdArgs.push_back("-disable-llvm-verifier"); - // Discard LLVM value names in -asserts builds. - CmdArgs.push_back("-discard-value-names"); +

[PATCH] D42745: [analyzer] Add support for __builtin_constant_p to BuiltinFunctionChecker

2018-02-05 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Oh, i see what you did here. I thought you're evaluating the argument, but you're evaluating the whole builtin function call. In this case you don't need the else-branch: `EvaluateAsInt` will always succeed. Moreover, you can merge your code with the

[PATCH] D42704: [clang-format] Do not break Objective-C string literals inside array literals

2018-02-05 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added a comment. Ping ping! Repository: rC Clang https://reviews.llvm.org/D42704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41102: Setup clang-doc frontend framework

2018-02-05 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. This should be in clang-tools-extra next to clang-tidy, clang-include-fixer, clangd etc, not in the main compiler repo, right? https://reviews.llvm.org/D41102 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D41102: Setup clang-doc frontend framework

2018-02-05 Thread Jake Ehrlich via Phabricator via cfe-commits
jakehehrlich added a comment. Additional note: This diff is a diff from your last commit not the full diff relative to origin/master which is what should be up here. Comment at: tools/clang-doc/ClangDoc.cpp:34 -bool ClangDocVisitor::VisitNamespaceDecl(const NamespaceDecl

Re: [libcxx] r324182 - [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types.

2018-02-05 Thread Nirav Davé via cfe-commits
https://bugs.llvm.org/show_bug.cgi?id=36241 On Mon, Feb 5, 2018 at 10:20 AM Hans Wennborg via cfe-commits < cfe-commits@lists.llvm.org> wrote: > This broke the Chromium build, see > https://bugs.chromium.org/p/chromium/issues/detail?id=809050#c2 > > I see there were a lot of changes landed

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-02-05 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324269: Add support for attribute trivial_abi. (authored by ahatanak, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-02-05 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. ahatanak marked 2 inline comments as done. Closed by commit rC324269: Add support for attribute trivial_abi. (authored by ahatanak, committed by ). Changed prior to commit:

r324269 - Add support for attribute 'trivial_abi'.

2018-02-05 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Mon Feb 5 12:23:22 2018 New Revision: 324269 URL: http://llvm.org/viewvc/llvm-project?rev=324269=rev Log: Add support for attribute 'trivial_abi'. The 'trivial_abi' attribute can be applied to a C++ class, struct, or union. It makes special functions of the annotated

[PATCH] D42680: [ThinLTO] Ignore object files with no ThinLTO modules if -fthinlto-index= is set

2018-02-05 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka updated this revision to Diff 132876. vitalybuka marked 3 inline comments as done. vitalybuka added a comment. empty file test https://reviews.llvm.org/D42680 Files: clang/include/clang/CodeGen/BackendUtil.h clang/lib/CodeGen/BackendUtil.cpp clang/lib/CodeGen/CodeGenAction.cpp

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 132873. Repository: rC Clang https://reviews.llvm.org/D42645 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp test/Analysis/mmap-writeexec.c

[PATCH] D42924: Don't pass ForDefinition_t in places it is redundant.

2018-02-05 Thread Rafael Avila de Espindola via Phabricator via cfe-commits
espindola created this revision. espindola added reviewers: sfertile, rnk. I found this while looking at the ppc failures caused by the dso_local change. The issue was that the patch would produce the wrong answer for available_externally. Having ForDefinition_t available in places where the

[PATCH] D42922: [CUDA] Register relocatable GPU binaries

2018-02-05 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld planned changes to this revision. Hahnfeld added a comment. I didn't write tests for this yet, but I wanted to get some early feedback on this and show what I have in mind. Comment at: lib/CodeGen/CGCUDANV.cpp:330-331 // the GPU side. for (const std::string :

[PATCH] D42923: [CUDA] Allow external variables in separate compilation

2018-02-05 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: jlebar, tra, hfinkel. Herald added a subscriber: cfe-commits. According to the CUDA Programming Guide this is prohibited in whole program compilation mode. This makes sense because external references cannot be satisfied in that mode

[PATCH] D42922: [CUDA] Register relocatable GPU binaries

2018-02-05 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: jlebar, tra, hfinkel. Herald added a subscriber: cfe-commits. nvcc generates a unique registration function for each object file that contains relocatable device code. Unique names are achieved with a module id that is also reflected in

[PATCH] D42921: [CUDA] Add option to generate relocatable device code

2018-02-05 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: jlebar, tra. Herald added a subscriber: cfe-commits. Hahnfeld added a dependency: D42920: [CUDA] Fix test cuda-external-tools.cu. Hahnfeld added a reviewer: hfinkel. As a first step, pass '-c/--compile-only' to ptxas so that it doesn't

[PATCH] D42920: [CUDA] Fix test cuda-external-tools.cu

2018-02-05 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: jlebar, tra. Herald added a subscriber: cfe-commits. Hahnfeld added a dependent revision: D42921: [CUDA] Add option to generate relocatable device code. This didn't verify the CHECK prefix before! Repository: rC Clang

[PATCH] D42919: [clangd] Support simpler JSON-RPC stream parsing for lit tests.

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ioeric. Herald added subscribers: cfe-commits, jkorous-apple, ilya-biryukov, klimek. Instead of content-length, we delimit messages with ---. This also removes the need for (most) dos-formatted test files. Repository: rCTE Clang

[PATCH] D42918: [clang-tidy] Update fuchsia-multiple-inheritance to check for templates

2018-02-05 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett created this revision. juliehockett added reviewers: aaron.ballman, alexfh, hokein. Herald added a subscriber: xazax.hun. Updating fuchsia-multiple-inheritance to not crash when a record inherits a template. Fixes PR36052. https://reviews.llvm.org/D42918 Files:

[PATCH] D41834: [Lex] Fix handling numerical literals ending with ' and signed exponent.

2018-02-05 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Ping. https://reviews.llvm.org/D41834 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42800: Let CUDA toolchain support amdgpu target

2018-02-05 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Basic/Targets/AMDGPU.h:85 return TT.getEnvironmentName() == "amdgiz" || + TT.getOS() == llvm::Triple::CUDA || TT.getEnvironmentName() == "amdgizcl"; t-tye wrote: > We still want to use the

[PATCH] D42800: Let CUDA toolchain support amdgpu target

2018-02-05 Thread Tony Tye via Phabricator via cfe-commits
t-tye added inline comments. Comment at: include/clang/Basic/Cuda.h:49-57 + GFX700, + GFX701, + GFX800, + GFX801, + GFX802, + GFX803, + GFX810, Should complete list of processors for the amdgcn architecture be included? See

r324259 - [Options] Make --cuda-path-ignore-env a Flag, NFCI.

2018-02-05 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Mon Feb 5 10:19:40 2018 New Revision: 324259 URL: http://llvm.org/viewvc/llvm-project?rev=324259=rev Log: [Options] Make --cuda-path-ignore-env a Flag, NFCI. This option doesn't take an argument! Modified: cfe/trunk/include/clang/Driver/Options.td Modified:

[PATCH] D42758: Support `#pragma comment(lib, "name")` in the frontend for ELF

2018-02-05 Thread David Majnemer via Phabricator via cfe-commits
majnemer added a comment. docs/LanguageExtensions.html should be updated to mention that we support this extension on all ELF targets. Repository: rC Clang https://reviews.llvm.org/D42758 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42813: [Debug] Annotate compiler generated range-for loop variables.

2018-02-05 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Seems plausible - maybe walking the scopes to count the range-for loops would produce a better number, but would be slower. :/ Dunno. Comment at: lib/Sema/SemaStmt.cpp:2346 +// Assume the variables are nested in the inner scope (loop body). +

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Hi David! The patch looks almost OK. Comment at: lib/StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp:65 + *BT, "Both PROT_WRITE and PROT_EXEC flags are set. This can " + "lead to exploitable memory regions, which could be

[PATCH] D42758: Support `#pragma comment(lib, "name")` in the frontend for ELF

2018-02-05 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd updated this revision to Diff 132853. compnerd added a comment. clang-format missed line, simplify some checks Repository: rC Clang https://reviews.llvm.org/D42758 Files: lib/CodeGen/CodeGenModule.cpp lib/CodeGen/CodeGenModule.h lib/Parse/ParsePragma.cpp

[PATCH] D42915: [clangd] Use URIs in index symbols.

2018-02-05 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added reviewers: hokein, sammccall. Herald added subscribers: cfe-commits, jkorous-apple, ilya-biryukov, klimek. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42915 Files: clangd/index/Index.cpp clangd/index/Index.h

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread David CARLIER via Phabricator via cfe-commits
devnexen added a comment. Correcting last typos in unit test. Repository: rC Clang https://reviews.llvm.org/D42645 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 132850. devnexen edited the summary of this revision. Repository: rC Clang https://reviews.llvm.org/D42645 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt

[PATCH] D42758: Support `#pragma comment(lib, "name")` in the frontend for ELF

2018-02-05 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. This seems pretty OK to me. I'd like to see @probinson s PS4 discussion bottom out, but I don't see any reason to hold this up otherwise. We definitely should leave the format as #pragma comment(keyword, "message"), since there is significant prior art here.

[PATCH] D42913: [clangd] Fix incorrect file path for symbols defined by the compile command-line option.

2018-02-05 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. Herald added subscribers: jkorous-apple, ilya-biryukov, klimek.  Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42913 Files: clangd/index/SymbolCollector.cpp unittests/clangd/SymbolCollectorTests.cpp Index:

[PATCH] D37813: clang-format: better handle namespace macros

2018-02-05 Thread Francois Ferrand via Phabricator via cfe-commits
Typz updated this revision to Diff 132838. Typz added a comment. rebase https://reviews.llvm.org/D37813 Files: include/clang/Format/Format.h lib/Format/Format.cpp lib/Format/FormatToken.h lib/Format/FormatTokenLexer.cpp lib/Format/NamespaceEndCommentsFixer.cpp

[PATCH] D33440: clang-format: better handle statement macros

2018-02-05 Thread Francois Ferrand via Phabricator via cfe-commits
Typz updated this revision to Diff 132837. Typz added a comment. Use StatementMacro detection to improve brace type detection heuristics (in UnwrappedLineParser::calculateBraceTypes). https://reviews.llvm.org/D33440 Files: include/clang/Format/Format.h lib/Format/Format.cpp

[PATCH] D39571: [clangd] DidChangeConfiguration Notification

2018-02-05 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdLSPServer.cpp:302 +// FIXME: This function needs to be properly tested. +void ClangdLSPServer::onChangeConfiguration( simark wrote: > ilya-biryukov wrote: > > simark wrote: > > > simark wrote: > > >

r324246 - [clang-format] Re-land: Fixup #include guard indents after parseFile()

2018-02-05 Thread Mark Zeren via cfe-commits
Author: mzeren-vmw Date: Mon Feb 5 07:59:00 2018 New Revision: 324246 URL: http://llvm.org/viewvc/llvm-project?rev=324246=rev Log: [clang-format] Re-land: Fixup #include guard indents after parseFile() Summary: When a preprocessor indent closes after the last line of normal code we do not

Re: r324062 - [Sema] Add implicit members even for invalid CXXRecordDecls

2018-02-05 Thread Ilya Biryukov via cfe-commits
I'll try to come up with a fix, thanks for spotting that. On Sat, Feb 3, 2018 at 2:24 AM Eric Fiselier wrote: > This causes some stray diagnostics to be emitted in certian cases where a > base class is already invalid: > > Reproducer: >

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 132829. Repository: rC Clang https://reviews.llvm.org/D42645 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp test/Analysis/mmap-writeexec.c

Re: [libcxx] r324182 - [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types.

2018-02-05 Thread Hans Wennborg via cfe-commits
This broke the Chromium build, see https://bugs.chromium.org/p/chromium/issues/detail?id=809050#c2 I see there were a lot of changes landed around the same time, so I'm not sure what to revert here exactly. On Sun, Feb 4, 2018 at 2:03 AM, Eric Fiselier via cfe-commits

[PATCH] D42366: [CodeGen] Fix generation of TBAA tags for may-alias accesses

2018-02-05 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Hal, will you please take a look? Repository: rL LLVM https://reviews.llvm.org/D42366 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 132826. Repository: rC Clang https://reviews.llvm.org/D42645 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp test/Analysis/mmap-writeexec.c

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread David CARLIER via Phabricator via cfe-commits
devnexen added a comment. Your remarks make sense. Ok will update the general "tone" accordingly. Repository: rC Clang https://reviews.llvm.org/D42645 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D42645: New simple Checker for mmap calls

2018-02-05 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs added inline comments. Comment at: include/clang/StaticAnalyzer/Checkers/Checkers.td:399 + def MmapWriteExecChecker : Checker<"MmapWriteExec">, +HelpText<"Check if mmap() call is not both writable and executable">, +DescFile<"MmapWriteExecChecker.cpp">;

[PATCH] D42736: [DebugInfo] Improvements to representation of enumeration types (PR36168)

2018-02-05 Thread Momchil Velikov via Phabricator via cfe-commits
chill updated this revision to Diff 132822. chill added a comment. Changes since last revision: - Add/update test to check that each enumerator belongs to the right enumeration https://reviews.llvm.org/D42736 Files: lib/CodeGen/CGDebugInfo.cpp test/CodeGen/debug-info-enum.cpp

[PATCH] D42680: [ThinLTO] Ignore object files with no ThinLTO modules if -fthinlto-index= is set

2018-02-05 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. This looks ok to me, assuming it produces the empty output file as I expect it should. Please wait for pcc to take a look as well. Comment at: clang/lib/CodeGen/CodeGenAction.cpp:959 +if (!Bm) + return {}; Expected

[PATCH] D42573: [clangd] The new threading implementation

2018-02-05 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 132821. ilya-biryukov marked 13 inline comments as done. ilya-biryukov added a comment. - Removed ASTWorker files, moved all the code to TUScheduler.cpp - Renamed setDone to stop - Added a comment to TUScheduler.cpp - Addressed other review comments

[PATCH] D42573: [clangd] The new threading implementation

2018-02-05 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov marked an inline comment as done. ilya-biryukov added inline comments. Comment at: clangd/ASTWorker.cpp:1 +//===--- ASTWorker.cpp *-C++-*-===// +// sammccall wrote: > This file could really use some

r324239 - Revert "[clang-format] Fixup #include guard indents after parseFile()"

2018-02-05 Thread Mark Zeren via cfe-commits
Author: mzeren-vmw Date: Mon Feb 5 06:47:04 2018 New Revision: 324239 URL: http://llvm.org/viewvc/llvm-project?rev=324239=rev Log: Revert "[clang-format] Fixup #include guard indents after parseFile()" This reverts r324238 | mzeren-vmw | 2018-02-05 06:35:54 -0800 (Mon, 05 Feb 2018) | 35 lines

[PATCH] D42035: [clang-format] Fixup #include guard indents after parseFile()

2018-02-05 Thread Mark Zeren via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324238: [clang-format] Fixup #include guard indents after parseFile() (authored by mzeren-vmw, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

r324238 - [clang-format] Fixup #include guard indents after parseFile()

2018-02-05 Thread Mark Zeren via cfe-commits
Author: mzeren-vmw Date: Mon Feb 5 06:35:54 2018 New Revision: 324238 URL: http://llvm.org/viewvc/llvm-project?rev=324238=rev Log: [clang-format] Fixup #include guard indents after parseFile() Summary: When a preprocessor indent closes after the last line of normal code we do not correctly

[clang-tools-extra] r324235 - [clang-tidy] Fix incorrect code indention in the doc.

2018-02-05 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Feb 5 05:23:48 2018 New Revision: 324235 URL: http://llvm.org/viewvc/llvm-project?rev=324235=rev Log: [clang-tidy] Fix incorrect code indention in the doc. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/objc-property-declaration.rst Modified:

[PATCH] D42640: [clangd] Prototype: collect symbol #include & insert #include in global code completion.

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/ClangdServer.cpp:418 + } else { +auto U = URI::parse(HeaderUri); +if (!U) Pull out a function to compute ToInclude from a uri/abspath? Comment at: clangd/ClangdServer.cpp:425 + +

[clang-tools-extra] r324233 - [clang-tidy] tweak "misc-definitions-in-headers" doc, NFC.

2018-02-05 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Feb 5 05:04:41 2018 New Revision: 324233 URL: http://llvm.org/viewvc/llvm-project?rev=324233=rev Log: [clang-tidy] tweak "misc-definitions-in-headers" doc, NFC. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/misc-definitions-in-headers.rst Modified:

[PATCH] D42573: [clangd] The new threading implementation

2018-02-05 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 132803. ilya-biryukov added a comment. - Changed interface of ASTWorker so that it runs the processing loop itself. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42573 Files: clangd/ASTWorker.cpp clangd/ASTWorker.h

[PATCH] D42573: [clangd] The new threading implementation

2018-02-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Really coming together! Comment at: clangd/ASTWorker.cpp:1 +//===--- ASTWorker.cpp *-C++-*-===// +// This file could really use some high-level comments about the scheduling strategy,

[PATCH] D42901: Test commit - fixing a comment.

2018-02-05 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak created this revision. Herald added subscribers: cfe-commits, klimek. jolesiak added reviewers: krasimir, benhamilton. A test commit. Repository: rC Clang https://reviews.llvm.org/D42901 Files: lib/Format/ContinuationIndenter.h Index: lib/Format/ContinuationIndenter.h

  1   2   >