[PATCH] D52117: Generate llvm.loop.parallel_accesses instead of llvm.mem.parallel_loop_access metadata.

2018-10-03 Thread Pekka Jääskeläinen via Phabricator via cfe-commits
pekka.jaaskelainen accepted this revision. pekka.jaaskelainen added a comment. This revision is now accepted and ready to land. I glimpsed over this without spotting anything crucial. My Clang code base knowledge is a bit lightweight though so you might want to wait for an another reviewer. On t

[PATCH] D52418: [driver][mips] Enable integrated assembler for MIPS64 except N32 ABI selected

2018-10-03 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan added a comment. Ping? Repository: rC Clang https://reviews.llvm.org/D52418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52791: [Diagnostics] Check for misleading pointer declarations

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. void test(void) { int *a; int* b; } TranslationUnitDecl `-FunctionDecl line:4:6 test 'void ()' `-CompoundStmt |-DeclStmt | `-VarDecl col:10 a 'int *' `-DeclStmt `-VarDecl col:10 b 'int *' Why not 'int*' in ast dump? https://reviews.llv

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/Sema/SemaChecking.cpp:110 +/// are usually useless +static unsigned AdjustPrecision(unsigned precision) { + return (precision * 59 + 195) / 196; rsmith wrote: > xbolva00 wrote: > > xbolva00 wrote: > > > xbolva00 wr

[PATCH] D42608: Driver: Prefer vendor supplied gcc toolchain

2018-10-03 Thread Tom Stellard via Phabricator via cfe-commits
tstellar added a comment. I've implemented an alternative solution here that I think is a little more robust: https://reviews.llvm.org/D52861 Repository: rC Clang https://reviews.llvm.org/D42608 ___ cfe-commits mailing list cfe-commits@lists.llv

[PATCH] D52861: Driver: Prefer gcc toolchains with libgcc_s.so when not static linking libgcc

2018-10-03 Thread Tom Stellard via Phabricator via cfe-commits
tstellar created this revision. Fedora ships cross-compilers on all platforms, so a user could end up with a gcc x86_64 cross-compiler installed on an x86_64 system. clang maintains a list of supported triples for each target and when all else is equal will prefer toolchains with triples that app

[PATCH] D52858: [WebAssembly] saturating arithmetic builtins

2018-10-03 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:59 +BUILTIN(__builtin_wasm_add_saturate_s_i8x16, "V16cV16cV16c", "ncV:128:") +BUILTIN(__builtin_wasm_add_saturate_u_i8x16, "V16cV16cV16c", "ncV:128:") Don't copy the "V:

[PATCH] D52852: [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-03 Thread Thomas Lively via Phabricator via cfe-commits
tlively added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:46 +BUILTIN(__builtin_wasm_extract_lane_s_i16x8, "iV8sIi", "ncV:128:") +BUILTIN(__builtin_wasm_extract_lane_u_i16x8, "iV8sIi", "ncV:128:") +BUILTIN(__builtin_wasm_extract_lane_i32x4, "iV4iIi",

[PATCH] D52858: [WebAssembly] saturating arithmetic builtins

2018-10-03 Thread Thomas Lively via Phabricator via cfe-commits
tlively updated this revision to Diff 168224. tlively added a comment. - Rebase Repository: rC Clang https://reviews.llvm.org/D52858 Files: include/clang/Basic/BuiltinsWebAssembly.def lib/CodeGen/CGBuiltin.cpp test/CodeGen/builtins-wasm.c Index: test/CodeGen/builtins-wasm.c ==

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-03 Thread Thomas Lively via Phabricator via cfe-commits
tlively updated this revision to Diff 168223. tlively added a comment. - Force constant folding for lane Repository: rC Clang https://reviews.llvm.org/D52856 Files: include/clang/Basic/BuiltinsWebAssembly.def lib/CodeGen/CGBuiltin.cpp test/CodeGen/builtins-wasm.c Index: test/CodeGen/b

[PATCH] D52852: [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-03 Thread Thomas Lively via Phabricator via cfe-commits
tlively updated this revision to Diff 168222. tlively marked an inline comment as done. tlively added a comment. - use isIntegerConstantExpr to force constant folding of lanes Repository: rC Clang https://reviews.llvm.org/D52852 Files: include/clang/Basic/BuiltinsWebAssembly.def lib/Code

[PATCH] D52840: Include Python binding tests in CMake rules

2018-10-03 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. Yes, I've tested it on Linux. I'll commit it once the dep is approved, and hopefully build bots will answer if they work across all platforms. Repository: rC Clang https://reviews.llvm.org/D52840 ___ cfe-commits mailing l

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added inline comments. Comment at: clang-query/Query.cpp:48 +"Set whether to dump binding ASTs.\n" +" set print-output (true|false) " +"Set whether to print matched text.\n" Is the 'print' output useful at all? I'm thinking

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

2018-10-03 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr added a comment. The motivating use case always pairs `noderef` with an `address_space` attribute, and it's already invalid to convert between pointer types in different address spaces without a cast. So I don't think we have a strong opinion one way or the other. In the abstract, I'd

[PATCH] D52859: [clang-query] Add option to print matcher expression

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
steveire created this revision. steveire added a reviewer: aaron.ballman. Herald added a subscriber: cfe-commits. This is useful if using clang-query -f with a file containing multiple matchers. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52859 Files: clang-query/Query.cpp

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 168218. steveire added a comment. Commit message Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52857 Files: clang-query/Query.cpp clang-query/Query.h clang-query/QueryParser.cpp clang-query/QuerySession.h unittests/clang-query/Q

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 168217. steveire added a comment. Format Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52857 Files: clang-query/Query.cpp clang-query/Query.h clang-query/QueryParser.cpp clang-query/QuerySession.h unittests/clang-query/QueryEngi

[PATCH] D52858: [WebAssembly] saturating arithmetic builtins

2018-10-03 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff. Herald added subscribers: cfe-commits, kristina, sunfish, jgravelle-google, sbc100. Depends on https://reviews.llvm.org/D52856. Repository: rC Clang https://reviews.llvm.org/D52858 Files: include/clang/Basic/Builtin

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-03 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:55 +BUILTIN(__builtin_wasm_replace_lane_i32x4, "V4iV4iIii", "ncV:128:") +BUILTIN(__builtin_wasm_replace_lane_i64x2, "V2WiV2WiIiWi", "ncV:128:") +BUILTIN(__builtin_wasm_replace_lane_f32x4, "V4fV

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
steveire created this revision. steveire added a reviewer: aaron.ballman. Herald added a subscriber: cfe-commits. Replace it with granular options. This makes it possible to - Have both diag and dump active at once - Extend the output with other queryable content in the future. Repository: r

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-03 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:55 +BUILTIN(__builtin_wasm_replace_lane_i32x4, "V4iV4iIii", "ncV:128:") +BUILTIN(__builtin_wasm_replace_lane_i64x2, "V2WiV2WiIiWi", "ncV:128:") +BUILTIN(__builtin_wasm_replace_lane_f32x4,

[PATCH] D51855: [constexpr] Fix ICE when memcpy() is given a pointer to an incomplete array

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Looks good. Thanks again, and sorry for the delay. https://reviews.llvm.org/D51855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

[PATCH] D51789: [clang] Add the exclude_from_explicit_instantiation attribute

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Sema/Sema.cpp:648 + !FD->getMostRecentDecl()->isInlined() && + !FD->hasAttr()) continue; What's the purp

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-03 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff. Herald added subscribers: cfe-commits, kristina, sunfish, jgravelle-google, sbc100. Depends on https://reviews.llvm.org/D52852. Repository: rC Clang https://reviews.llvm.org/D52856 Files: include/clang/Basic/Builtin

[PATCH] D51329: [Attribute/Diagnostics] Print macro instead of whole attribute for address_space

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D51329#1229061, @leonardchan wrote: > @rsmith So I chose to go with the type sugar route since we would prefer to > have multiple attributes in one attribute list. This type just contains the > underlying type and the macro identifier original

[PATCH] D52513: [Modules] Do not emit file modification error when -fno-validate-pch is set

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. The consequence of this will be that we use a stale PCH / PCM file if files have changed, rather than emitting an "out of date" error if / when we decide we need to reference a modified file that was used to build the AST file. That can lead to bad things happening: any

[PATCH] D52521: [Sema] DR727: Ensure we pick up enclosing template instantiation arguments for a class-scope explicit specialization.

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: clang/include/clang/AST/DeclTemplate.h:1771-1779 + void setIsSpecializedMember(bool V = true) { IsSpecializedMember = V; } + + /// If this class template specialization was declared at class scope (DR727). + /// For example, the speci

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

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. This seems like an unreasonably long flag name. Can you try to find a shorter name for it? Repository: rC Clang https://reviews.llvm.org/D52615 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D52695: [clang][Parse] Diagnose useless null statements (PR39111)

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I feel indifferent about this warning, but clearly you care about it enough to work on it, and it's a pretty low-cost feature from a maintenance perspective, so I suppose it's fine. Comment at: include/clang/Basic/DiagnosticParseKinds.td:56-58 +def war

[PATCH] D52791: [Diagnostics] Check for misleading pointer declarations

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D52791#1254559, @rsmith wrote: > int *ptr, (a), b, c; > Another possible heuristic for suppressing the check: only warn if there is whitespace before the identifier. So: int* a, b; // warning int *a, b; // no warning

[PATCH] D52855: Fix source loc for tokens that immediately follow an escaped newline

2018-10-03 Thread Brad Moody via Phabricator via cfe-commits
bmoody created this revision. bmoody added a reviewer: rsmith. Herald added a subscriber: cfe-commits. Previously the location of a token immediately following an escaped newline was the location of the backslash character in the escaped newline. The change to test/SemaTemplate/instantiation-dep

[PATCH] D52791: [Diagnostics] Check for misleading pointer declarations

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I think we need some documented guidelines on what is and is not an appropriate warning for Clang. I think it's reasonable to warn in cases where we are confident that the code means something other than what the programmer or a later reader is likely to expect; it's les

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-03 Thread Bill Wendling via Phabricator via cfe-commits
void added a comment. This is related to https://reviews.llvm.org/D4276, which I believe has been deleted. However, I believe that a modified version of that patch will work. The idea of this patch is *not* to be fully compatible with gcc's implementation, but to expand clang's implementation o

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay abandoned this revision. MaskRay added a comment. Thanks for your prompt response https://reviews.llvm.org/rC343747 . I'll abandon this revision! Repository: rC Clang https://reviews.llvm.org/D52853 ___ cfe-commits mailing list cfe-commi

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-03 Thread Bill Wendling via Phabricator via cfe-commits
void created this revision. void added reviewers: jyknight, eli.friedman, resistor, janusz. Herald added subscribers: cfe-commits, kristina. A __builtin_constant_p may end up with a constant after inlining. Use the is.constant intrinsic if we're unable to determine if it's a constant. See: https:

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaChecking.cpp:110 +/// are usually useless +static unsigned AdjustPrecision(unsigned precision) { + return (precision * 59 + 195) / 196; xbolva00 wrote: > xbolva00 wrote: > > xbolva00 wrote: > > > craig.toppe

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. Tracked in rdar://44992170. Marking the test as unsupported for now. Repository: rC Clang https://reviews.llvm.org/D52853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

[PATCH] D52852: [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-03 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:46 +BUILTIN(__builtin_wasm_extract_lane_s_i16x8, "iV8sIi", "ncV:128:") +BUILTIN(__builtin_wasm_extract_lane_u_i16x8, "iV8sIi", "ncV:128:") +BUILTIN(__builtin_wasm_extract_lane_i32x4, "iV4i

[PATCH] D52800: Java import sorting in clang-format

2018-10-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/Format.cpp:1823 + unsigned LongestMatchLength = 0; + for (unsigned i = 0; i < Style.JavaImportGroups.size(); i++) { +std::string GroupPrefix = Style.JavaImportGroups[i]; nit: LLVM Style uses CamelCase f

r343747 - [analyzer] [quickfix] Temporarily disabling a failing test.

2018-10-03 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Oct 3 17:07:45 2018 New Revision: 343747 URL: http://llvm.org/viewvc/llvm-project?rev=343747&view=rev Log: [analyzer] [quickfix] Temporarily disabling a failing test. Modified: cfe/trunk/test/Analysis/trustnonnullchecker_test.m Modified: cfe/trunk/test/Ana

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. *reads the comments* no, NDEBUG won't work. Ok, we'll take care of this, thanks! Repository: rC Clang https://reviews.llvm.org/D52853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

[PATCH] D52386: [Lexer] Add udefined_behavior_sanitizer feature

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D52386#1254483, @leonardchan wrote: > In https://reviews.llvm.org/D52386#1254437, @rsmith wrote: > > > I'm not at all convinced that this is a good thing. There isn't such a > > thing as "undefined behavior sanitizer". Rather, there are a whole

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. And, of course, we'll need to change `__OPTIMIZE__` to `NDEBUG`. Also thanks for reporting the problem! Repository: rC Clang https://reviews.llvm.org/D52853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://list

[PATCH] D52852: [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-03 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:46 +BUILTIN(__builtin_wasm_extract_lane_s_i16x8, "iV8sIi", "ncV:128:") +BUILTIN(__builtin_wasm_extract_lane_u_i16x8, "iV8sIi", "ncV:128:") +BUILTIN(__builtin_wasm_extract_lane_i32x4, "iV4iIi",

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Hmm, wait, right, i might have an idea of what's going on. I think we need to revert. Repository: rC Clang https://reviews.llvm.org/D52853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. In https://reviews.llvm.org/D52853#1254486, @NoQ wrote: > This should have been fixed by https://reviews.llvm.org/D52848. > > This is a very important fundamental assertion, we definitely should not > remove it. Sorry I don't understand the code at all but I get a diff

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

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/Basic/AttrDocs.td:3513 + int x = 2; + int &y = x; // warning: 'noderef' can only be used on an array or pointer type + Should `noderef` appear somewhere in this example? :) Comment at:

[PATCH] D52848: [analyzer] Do not crash if the assumption added in TrustNonNullChecker is enough to make the state unfeasible

2018-10-03 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. This change appears to break `test/Analysis/trustnonnullchecker_test.m` in non-optimized (__OPTIMIZE__ not defined) mode. Can you take a look? Repository: rC Clang https://reviews.llvm.org/D52848 ___ cfe-commits mailing

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. This should have been fixed by https://reviews.llvm.org/D52848. This is a very important fundamental assertion, we definitely should not remove it. Repository: rC Clang https://reviews.llvm.org/D52853 ___ cfe-commits mailin

[PATCH] D52853: [Analyzer] Try fixing ConstraintManager::assumeDual

2018-10-03 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay created this revision. MaskRay added reviewers: NoQ, george.karpenkov, dcoughlin. Herald added subscribers: cfe-commits, Szelethus, mikhail.ramalho, a.sidorin, JDevlieghere, szepet, xazax.hun. This fixes test/Analysis/trustnonnullchecker_test.m in Debug mode. Repository: rC Clang htt

[PATCH] D52386: [Lexer] Add udefined_behavior_sanitizer feature

2018-10-03 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added a comment. In https://reviews.llvm.org/D52386#1254437, @rsmith wrote: > I'm not at all convinced that this is a good thing. There isn't such a thing > as "undefined behavior sanitizer". Rather, there are a whole bunch of > different checks that fall under the same umbrella. Th

r343744 - [llvm-nm] Update clang tests based on changed llvm-nm output

2018-10-03 Thread Jordan Rupprecht via cfe-commits
Author: rupprecht Date: Wed Oct 3 16:40:04 2018 New Revision: 343744 URL: http://llvm.org/viewvc/llvm-project?rev=343744&view=rev Log: [llvm-nm] Update clang tests based on changed llvm-nm output Modified: cfe/trunk/test/CodeGen/thinlto_backend.ll Modified: cfe/trunk/test/CodeGen/thinlto_ba

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk marked 3 inline comments as done. rnk added inline comments. Comment at: clang/www/get_started.html:179 svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm STL_MSFT wrote: > Can these be HTTPS? (I had to figure out HTTPS incantations for `git

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk updated this revision to Diff 168205. rnk added a comment. - Use https: where possible over http: - Fix CMake VS generator invocation https://reviews.llvm.org/D52843 Files: clang/www/get_started.html Index: clang/www/get_started.html ==

[PATCH] D52849: [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn

2018-10-03 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added a comment. Thanks for your suggestions and code review. I appreciate it. Repository: rL LLVM https://reviews.llvm.org/D52849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D52847: [clang-doc] Handle anonymous namespaces

2018-10-03 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett updated this revision to Diff 168200. juliehockett marked 2 inline comments as done. https://reviews.llvm.org/D52847 Files: clang-tools-extra/clang-doc/Representation.cpp clang-tools-extra/clang-doc/Representation.h clang-tools-extra/clang-doc/Serialize.cpp clang-tools-extra/

[PATCH] D52386: [Lexer] Add udefined_behavior_sanitizer feature

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I'm not at all convinced that this is a good thing. There isn't such a thing as "undefined behavior sanitizer". Rather, there are a whole bunch of different checks that fall under the same umbrella. This test seems on the surface to be about as meaningless as `__has_feat

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

2018-10-03 Thread Richard Smith via cfe-commits
On Tue, 2 Oct 2018 at 01:18, Stephan Bergmann via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 28/09/2018 03:16, Richard Smith via cfe-commits wrote: > > Author: rsmith > > Date: Thu Sep 27 18:16:43 2018 > > New Revision: 343285 > > > > URL: http://llvm.org/viewvc/llvm-project?rev=343285&

[PATCH] D52852: [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-03 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff. Herald added subscribers: cfe-commits, kristina, sunfish, jgravelle-google, sbc100. Repository: rC Clang https://reviews.llvm.org/D52852 Files: include/clang/Basic/BuiltinsWebAssembly.def lib/CodeGen/CGBuiltin.cpp

[PATCH] D52849: [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn

2018-10-03 Thread Nick Desaulniers via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343740: [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn (authored by nickdesaulniers, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.

r343740 - [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn

2018-10-03 Thread Nick Desaulniers via cfe-commits
Author: nickdesaulniers Date: Wed Oct 3 16:09:29 2018 New Revision: 343740 URL: http://llvm.org/viewvc/llvm-project?rev=343740&view=rev Log: [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn Summary: For types deduced from typedef's and typeof's, don't warn for duplicate declarati

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-03 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 168192. https://reviews.llvm.org/D52838 Files: include/clang/Basic/BuiltinsAArch64.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h lib/Sema/SemaChecking.cpp test/CodeGen/arm64-microsoft-intrinsics.c Index: test/CodeGen/arm64-microsoft-intrinsics

[PATCH] D50179: [AArch64][ARM] Context sensitive meaning of option "crypto"

2018-10-03 Thread Eli Friedman via Phabricator via cfe-commits
efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D50179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-03 Thread Zachary Turner via Phabricator via cfe-commits
zturner added inline comments. Comment at: clang/www/get_started.html:246 +"C:\Program Files (x86)\Microsoft Visual + Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64 + zturner wrote: > STL_MSFT wrote: > > This assumes the Pro

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-03 Thread Zachary Turner via Phabricator via cfe-commits
zturner added inline comments. Comment at: clang/www/get_started.html:246 +"C:\Program Files (x86)\Microsoft Visual + Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64 + STL_MSFT wrote: > This assumes the Professional SKU; perh

r343738 - Revert "[ASTMatchers] Fix DynamicASTMatchersTests again"

2018-10-03 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Oct 3 15:56:26 2018 New Revision: 343738 URL: http://llvm.org/viewvc/llvm-project?rev=343738&view=rev Log: Revert "[ASTMatchers] Fix DynamicASTMatchersTests again" This reverts commit 8a6631a983ec9c1d22cc77c5f55a524a651740f0. The last fix seems good in Debug mode. Mod

r343736 - [analyzer] [tests] [quickfix] Make more test more resilient for non-defaut -std.

2018-10-03 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Wed Oct 3 15:48:00 2018 New Revision: 343736 URL: http://llvm.org/viewvc/llvm-project?rev=343736&view=rev Log: [analyzer] [tests] [quickfix] Make more test more resilient for non-defaut -std. It is important to specify the version of the standard because tests should test

[PATCH] D52849: [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn

2018-10-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM, thanks! Repository: rC Clang https://reviews.llvm.org/D52849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

[PATCH] D52848: [analyzer] Do not crash if the assumption added in TrustNonNullChecker is enough to make the state unfeasible

2018-10-03 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343735: [analyzer] Do not crash if the assumption added in TrustNonNullChecker is… (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https:/

[PATCH] D52847: [clang-doc] Handle anonymous namespaces

2018-10-03 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: clang-tools-extra/clang-doc/Representation.cpp:193-216 +llvm::SmallString<16> Info::extractFileName() { + switch (IT) { + case InfoType::IT_namespace: +// The case of anonymous namespaces is taken care of in serialization, so +

r343735 - [analyzer] Do not crash if the assumption added in TrustNonNullChecker is enough to make the state unfeasible

2018-10-03 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Oct 3 15:31:09 2018 New Revision: 343735 URL: http://llvm.org/viewvc/llvm-project?rev=343735&view=rev Log: [analyzer] Do not crash if the assumption added in TrustNonNullChecker is enough to make the state unfeasible rdar://43541814 Differential Revision: htt

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-03 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT added inline comments. Comment at: clang/www/get_started.html:160 http://www.cmake.org/cmake/resources/software.html";> http://www.cmake.org/cmake/resources/software.html +Visual Studio 2015 or later This URL redirects to `https://c

[PATCH] D52248: [SEMA] ignore duplicate declaration specifiers from typeof exprs

2018-10-03 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added a comment. Created: https://reviews.llvm.org/D52849 Repository: rC Clang https://reviews.llvm.org/D52248 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52849: [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn

2018-10-03 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers created this revision. nickdesaulniers added a reviewer: rsmith. Herald added a subscriber: cfe-commits. For types deduced from typedef's and typeof's, don't warn for duplicate declaration specifiers in C90 unless -pedantic. Create a third diagnostic type for duplicate declaration

[PATCH] D52248: [SEMA] ignore duplicate declaration specifiers from typeof exprs

2018-10-03 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers abandoned this revision. nickdesaulniers added a comment. Well that didn't do what I wanted...(sorry, still learning arc). Going to abandon this and push a much simpler fix. Repository: rC Clang https://reviews.llvm.org/D52248 _

[PATCH] D52248: [SEMA] ignore duplicate declaration specifiers from typeof exprs

2018-10-03 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers updated this revision to Diff 168183. nickdesaulniers added a comment. [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn For types deduced from typedef's and typeof's, don't warn for duplicate declaration specifiers in C90 unless -pedantic. Create a third diagnosti

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added inline comments. Comment at: clang/www/get_started.html:197 +If you are using Visual Studio 2017: + cmake -G "Visual Studio 15 2017 Win64" ..\llvm +This will generate x64 binaries by default, which should perform better. smeenai wrote

[PATCH] D52791: [Diagnostics] Check for misleading pointer declarations

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. Yes, I am gonna work on it after I finish my some other patch :) https://reviews.llvm.org/D52791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 updated this revision to Diff 168176. xbolva00 added a comment. - Support for Float16 https://reviews.llvm.org/D52835 Files: lib/Sema/SemaChecking.cpp test/Sema/ext_vector_casts.c test/Sema/impcast-integer-float.c Index: test/Sema/impcast-integer-float.c

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 updated this revision to Diff 168173. xbolva00 added a comment. - Check also int128_t to float https://reviews.llvm.org/D52835 Files: lib/Sema/SemaChecking.cpp test/Sema/ext_vector_casts.c test/Sema/impcast-integer-float.c Index: test/Sema/impcast-integer-float.c ===

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/Sema/SemaChecking.cpp:110 +/// are usually useless +static unsigned AdjustPrecision(unsigned precision) { + return (precision * 59 + 195) / 196; xbolva00 wrote: > xbolva00 wrote: > > craig.topper wrote: > > > scano

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 updated this revision to Diff 168171. xbolva00 added a comment. - Addressed some comments https://reviews.llvm.org/D52835 Files: lib/Sema/SemaChecking.cpp test/Sema/ext_vector_casts.c test/Sema/impcast-integer-float.c Index: test/Sema/impcast-integer-float.c

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-03 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. read_register only allows reading reserved registers because reading an allocatable register is meaningless (the compiler can store arbitrary data in allocatable registers). The same applies to __getReg; given that, I would assume real code doesn't use anything other

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/Sema/SemaChecking.cpp:110 +/// are usually useless +static unsigned AdjustPrecision(unsigned precision) { + return (precision * 59 + 195) / 196; xbolva00 wrote: > craig.topper wrote: > > scanon wrote: > > > erichke

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-03 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: clang/www/get_started.html:197 +If you are using Visual Studio 2017: + cmake -G "Visual Studio 15 2017 Win64" ..\llvm +This will generate x64 binaries by default, which should perform better. Does the Win64

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/Sema/SemaChecking.cpp:110 +/// are usually useless +static unsigned AdjustPrecision(unsigned precision) { + return (precision * 59 + 195) / 196; craig.topper wrote: > scanon wrote: > > erichkeane wrote: > > > Hmm..

[PATCH] D52840: Include Python binding tests in CMake rules

2018-10-03 Thread Stephen Kelly via Phabricator via cfe-commits
steveire accepted this revision. steveire added a comment. This revision is now accepted and ready to land. I didn't run it, but CMake-wise this looks fine. (I trust you did) I notice some tests use from tests.cindex.util import foo while others use from .util import foo You might want to

r343722 - [ASTMatchers] Fix DynamicASTMatchersTests again

2018-10-03 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Oct 3 14:00:44 2018 New Revision: 343722 URL: http://llvm.org/viewvc/llvm-project?rev=343722&view=rev Log: [ASTMatchers] Fix DynamicASTMatchersTests again Modified: cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp Modified: cfe/trunk/unittests/ASTMatchers/Dyn

[PATCH] D47344: LWG 2843 "Unclear behavior of std::pmr::memory_resource::do_allocate()"

2018-10-03 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone updated this revision to Diff 168169. Quuxplusone edited the summary of this revision. Quuxplusone added a reviewer: ldionne. Quuxplusone added a comment. Herald added a subscriber: libcxx-commits. Rebased on master. Added @ldionne as reviewer. Repository: rCXX libc++ https://revi

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: lib/Sema/SemaChecking.cpp:110 +/// are usually useless +static unsigned AdjustPrecision(unsigned precision) { + return (precision * 59 + 195) / 196; scanon wrote: > erichkeane wrote: > > Hmm I don't terribly un

r343721 - [test] Fix -Wunused-variable in rC343665

2018-10-03 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Oct 3 13:53:53 2018 New Revision: 343721 URL: http://llvm.org/viewvc/llvm-project?rev=343721&view=rev Log: [test] Fix -Wunused-variable in rC343665 Modified: cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp Modified: cfe/trunk/unittests/ASTMatchers/Dynamic/Pa

r343720 - Remove stray character from docs

2018-10-03 Thread Stephen Kelly via cfe-commits
Author: steveire Date: Wed Oct 3 13:53:02 2018 New Revision: 343720 URL: http://llvm.org/viewvc/llvm-project?rev=343720&view=rev Log: Remove stray character from docs Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h URL:

r343719 - Update documentation for correctness

2018-10-03 Thread Stephen Kelly via cfe-commits
Author: steveire Date: Wed Oct 3 13:52:57 2018 New Revision: 343719 URL: http://llvm.org/viewvc/llvm-project?rev=343719&view=rev Log: Update documentation for correctness Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h

r343716 - Sort list of matchers

2018-10-03 Thread Stephen Kelly via cfe-commits
Author: steveire Date: Wed Oct 3 13:52:45 2018 New Revision: 343716 URL: http://llvm.org/viewvc/llvm-project?rev=343716&view=rev Log: Sort list of matchers Modified: cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp Modified: cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp URL: http://llvm.org

r343717 - Add matchers missing from dynamic AST registry

2018-10-03 Thread Stephen Kelly via cfe-commits
Author: steveire Date: Wed Oct 3 13:52:51 2018 New Revision: 343717 URL: http://llvm.org/viewvc/llvm-project?rev=343717&view=rev Log: Add matchers missing from dynamic AST registry Modified: cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp Modified: cfe/trunk/lib/ASTMatchers/Dynamic/Registry.

r343715 - [analyzer] [tests] [quickfix] Make the test more resilient for a non-defaut std configuration

2018-10-03 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Oct 3 13:46:50 2018 New Revision: 343715 URL: http://llvm.org/viewvc/llvm-project?rev=343715&view=rev Log: [analyzer] [tests] [quickfix] Make the test more resilient for a non-defaut std configuration Modified: cfe/trunk/test/Analysis/html_diagnostics/rele

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/Sema/SemaChecking.cpp:10883 + precision = AdjustPrecision(precision); + FloatValue.toString(PrettyTargetValue, precision); + IntValue.toString(PrettySourceValue); erichkeane wrote: > I won

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-03 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/Sema/SemaChecking.cpp:10862 + if (Source->isIntegerType() && Target->isFloatingType()) { +const llvm::fltSemantics *FloatSem = nullptr; +if (Target->isSpecificBuiltinType(BuiltinType::Float)) { erichkeane w

[PATCH] D52791: [Diagnostics] Check for misleading pointer declarations

2018-10-03 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete added a comment. There's a false positive. int **A, *B; // false positive: declaring a variable of type 'int *'; did you mean to declare a pointer? And IMO this should also warn: int **A, B; // no warning currently https://reviews.llvm.org/D52791 ___

[PATCH] D52800: Java import sorting in clang-format

2018-10-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. Another example: we have to be careful with something like this as we don't want to break correct code: import x; import a.loong. c; import y; Comment at: unittests/Format/SortImportsTestJava.cpp:130 + "// that do\n" +

  1   2   >