r332576 - Fix rL332458: [AST] Added a helper to extract a user-friendly text of a comment.

2018-05-16 Thread Clement Courbet via cfe-commits
Author: courbet Date: Wed May 16 23:46:15 2018 New Revision: 332576 URL: http://llvm.org/viewvc/llvm-project?rev=332576&view=rev Log: Fix rL332458: [AST] Added a helper to extract a user-friendly text of a comment. Older gcc versions do not support raw string literals within macros. Modified:

[PATCH] D46998: [XRay][clang+compiler-rt] Make XRay depend on a C++ standard lib

2018-05-16 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris created this revision. dberris added reviewers: dblaikie, echristo. This is related to http://llvm.org/PR32274. When building with XRay, always depend on a C++ standard library. We're doing this to automate the linking of the C++ ABI functionality that the modes use by default. In partic

[PATCH] D46929: Fix a mangling failure on clang-cl C++17

2018-05-16 Thread Taiju Tsuiki via Phabricator via cfe-commits
tzik added a comment. In https://reviews.llvm.org/D46929#1101780, @rnk wrote: > I searched around, and I noticed that `VTableContext::getMethodVTableIndex` > has the same implied contract that the caller must always provide a canonical > declaration or things will break. It looks like it has th

[PATCH] D46929: Fix a mangling failure on clang-cl C++17

2018-05-16 Thread Taiju Tsuiki via Phabricator via cfe-commits
tzik updated this revision to Diff 147244. Repository: rC Clang https://reviews.llvm.org/D46929 Files: lib/AST/VTableBuilder.cpp lib/CodeGen/CGCXX.cpp lib/CodeGen/ItaniumCXXABI.cpp lib/CodeGen/MicrosoftCXXABI.cpp test/CodeGenCXX/PR37481.cpp Index: test/CodeGenCXX/PR37481.cpp ===

[libcxx] r332571 - [libcxx] [test] Remove unused local typedef in test/std/numerics/rand/rand.eng/rand.eng.lcong/default.pass.cpp

2018-05-16 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Wed May 16 21:59:34 2018 New Revision: 332571 URL: http://llvm.org/viewvc/llvm-project?rev=332571&view=rev Log: [libcxx] [test] Remove unused local typedef in test/std/numerics/rand/rand.eng/rand.eng.lcong/default.pass.cpp Modified: libcxx/trunk/test/std/numerics/rand/rand

[PATCH] D46820: Fix __uuidof handling on non-type template parameter in C++17

2018-05-16 Thread Taiju Tsuiki via Phabricator via cfe-commits
tzik marked an inline comment as done. tzik added inline comments. Comment at: test/SemaCXX/PR24986.cpp:12 + f<&__uuidof(0)>(); +} thakis wrote: > Maybe this test could be in test/SemaCXX/ms-uuid.cpp instead? OK, moved there. Repository: rC Clang https://re

[PATCH] D46820: Fix __uuidof handling on non-type template parameter in C++17

2018-05-16 Thread Taiju Tsuiki via Phabricator via cfe-commits
tzik updated this revision to Diff 147238. Repository: rC Clang https://reviews.llvm.org/D46820 Files: lib/Sema/SemaTemplate.cpp test/SemaCXX/ms-uuid.cpp Index: test/SemaCXX/ms-uuid.cpp === --- test/SemaCXX/ms-uuid.cpp +++ t

[PATCH] D46452: [sanitizer] Don't add --export-dynamic for Myriad

2018-05-16 Thread Walter Lee via Phabricator via cfe-commits
waltl updated this revision to Diff 147233. waltl added a comment. Address CR comments Repository: rL LLVM https://reviews.llvm.org/D46452 Files: clang/lib/Driver/ToolChains/CommonArgs.cpp Index: clang/lib/Driver/ToolChains/CommonArgs.cpp =

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D46665#1102348, @rsmith wrote: > In https://reviews.llvm.org/D46665#1102290, @rjmccall wrote: > > > I believe static and dynamic linkers — at least on ELF and Mach-O — will > > always drop weak symbols for strong ones. Now, I think that isn'

[PATCH] D45900: CodeGen: Fix invalid bitcast for lifetime.start/end

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

[libcxx] r332567 - Add void casts to suppress nodiscard on linear_congruential_engine.

2018-05-16 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Wed May 16 19:58:26 2018 New Revision: 332567 URL: http://llvm.org/viewvc/llvm-project?rev=332567&view=rev Log: Add void casts to suppress nodiscard on linear_congruential_engine. Modified: libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp libc

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D46665#1102413, @efriedma wrote: > What exactly is the asan odr checker actually checking for? The distinction > between common/linkonce_odr/linkonce/weak_odr/weak only affects IR > optimizers, not code generation. It's checking that there

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. What exactly is the asan odr checker actually checking for? The distinction between common/linkonce_odr/linkonce/weak_odr/weak only affects IR optimizers, not code generation. Repository: rC Clang https://reviews.llvm.org/D46665

[PATCH] D46834: [Sema][Cxx17] Error message for C++17 static_assert(pred) without string literal

2018-05-16 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In https://reviews.llvm.org/D46834#1102407, @rsmith wrote: > In https://reviews.llvm.org/D46834#1102395, @dexonsmith wrote: > > > In https://reviews.llvm.org/D46834#1102391, @rsmith wrote: > > > > > The policy certainly seems designed around the CLI use case. For > >

[PATCH] D46834: [Sema][Cxx17] Error message for C++17 static_assert(pred) without string literal

2018-05-16 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D46834#1102395, @dexonsmith wrote: > In https://reviews.llvm.org/D46834#1102391, @rsmith wrote: > > > The policy certainly seems designed around the CLI use case. For serialized > > diagnostics, it would make sense to either serialize the snipp

[PATCH] D46995: [test-suite] Enable CUDA complex tests with libc++ now that D25403 is resolved.

2018-05-16 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. Herald added subscribers: llvm-commits, sanjoy. Herald added a reviewer: EricWF. Repository: rT test-suite https://reviews.llvm.org/D46995 Files: External/CUDA/complex.cu Index: External/CUDA/complex.cu ===

[PATCH] D46834: [Sema][Cxx17] Error message for C++17 static_assert(pred) without string literal

2018-05-16 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In https://reviews.llvm.org/D46834#1102391, @rsmith wrote: > In https://reviews.llvm.org/D46834#1101586, @jkorous wrote: > > > We reconsidered this in light of the policy - thanks for pointing that out > > Richard! > > Just to be sure that I understand it - the poli

[PATCH] D46993: [CUDA] Make std::min/max work when compiling in C++14 mode with a C++11 stdlib.

2018-05-16 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! https://reviews.llvm.org/D46993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D46834: [Sema][Cxx17] Error message for C++17 static_assert(pred) without string literal

2018-05-16 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D46834#1101586, @jkorous wrote: > We reconsidered this in light of the policy - thanks for pointing that out > Richard! > Just to be sure that I understand it - the policy is meant for CLI and not > serialized diagnostics, right? The polic

[PATCH] D46994: [test-suite] Test CUDA in C++14 mode with C++11 stdlibs.

2018-05-16 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. Herald added subscribers: llvm-commits, mgorny, sanjoy. Previously (https://reviews.llvm.org/D46993) std::min/max didn't work in C++14 mode with a C++11 stdlib; we'd assumed that compiler std=c++14 implied stdlib in C++14 mode. Reposit

[PATCH] D46993: [CUDA] Make std::min/max work when compiling in C++14 mode with a C++11 stdlib.

2018-05-16 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. jlebar added a reviewer: rsmith. Herald added a subscriber: sanjoy. https://reviews.llvm.org/D46993 Files: clang/lib/Headers/cuda_wrappers/algorithm Index: clang/lib/Headers/cuda_wrappers/algorithm =

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D46665#1102361, @efriedma wrote: > The only difference between weak_odr and linkonce_odr is that the LLVM > optimizers can discard linkonce_odr globals. From your description, you want > to remove the odr-ness, by changing the linkage to "lin

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. The only difference between weak_odr and linkonce_odr is that the LLVM optimizers can discard linkonce_odr globals. From your description, you want to remove the odr-ness, by changing the linkage to "linkonce", I think? That said, I don't think the usage here violates

Re: r276514 - [cxx1z-constexpr-lambda] Make a lambda's closure type eligible as a literal-type in C++1z

2018-05-16 Thread Richard Smith via cfe-commits
On 17 February 2017 at 18:03, Richard Smith wrote: > On 22 July 2016 at 21:05, Faisal Vali via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: faisalv >> Date: Fri Jul 22 23:05:19 2016 >> New Revision: 276514 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=276514&view=rev >> Lo

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D46665#1102290, @rjmccall wrote: > I believe static and dynamic linkers — at least on ELF and Mach-O — will > always drop weak symbols for strong ones. Now, I think that isn't LLVM's > posted semantics for linkonce_odr, but to me that means t

[PATCH] D46990: [Fixed Point Arithmetic] Validation Test for Saturated Multiplication

2018-05-16 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr, jakehehrlich. leonardchan added a project: clang. This patch contains changes for multiplication on saturated _Fract types. Since we already upcast the underlying integer for the fixed point type, we can do a simpl

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. I believe static and dynamic linkers — at least on ELF and Mach-O — will always drop weak symbols for strong ones. Now, I think that isn't LLVM's posted semantics for linkonce_odr, but to me that means that LLVM's semantics are inadequate, not that we should decline t

[PATCH] D46987: [Fixed Point Arithmetic] Validation Test for Saturated Subtraction on Signed _Fracts

2018-05-16 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr, jakehehrlich. leonardchan added a project: clang. This patch includes the logic for subtraction on saturated _Fract types and a test for thm. - Also fixed incorrect minimum value for each _Fract type - Getters for

r332544 - [analyzer] Change the warning message for GCD antipattern checker

2018-05-16 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed May 16 15:46:47 2018 New Revision: 332544 URL: http://llvm.org/viewvc/llvm-project?rev=332544&view=rev Log: [analyzer] Change the warning message for GCD antipattern checker Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp cfe/tr

r332546 - [analyzer] Extend ObjCAutoreleaseWriteChecker to catch block declarations with autoreleasing variables

2018-05-16 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed May 16 15:47:05 2018 New Revision: 332546 URL: http://llvm.org/viewvc/llvm-project?rev=332546&view=rev Log: [analyzer] Extend ObjCAutoreleaseWriteChecker to catch block declarations with autoreleasing variables Differential Revision: https://reviews.llvm.org/D4

r332545 - [ASTMatchers] Introduce a blockDecl matcher for matching block declarations

2018-05-16 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed May 16 15:47:03 2018 New Revision: 332545 URL: http://llvm.org/viewvc/llvm-project?rev=332545&view=rev Log: [ASTMatchers] Introduce a blockDecl matcher for matching block declarations Blocks can be matched just as well as functions or Objective-C methods. Diffe

[PATCH] D46986: [Fixed Point Arithmetic] Validation Test for Fixed Point Binary Operations and Saturated Addition

2018-05-16 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr, jakehehrlich. leonardchan added a project: clang. This patch contains tests for validating the logic behind each builtin operation on fixed point types and tests on addition between saturated _Fract types. - More

[libcxx] r332543 - Condition usage of locale stdlib functions on Android API version

2018-05-16 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed May 16 15:40:12 2018 New Revision: 332543 URL: http://llvm.org/viewvc/llvm-project?rev=332543&view=rev Log: Condition usage of locale stdlib functions on Android API version Some *_l functions were not available in some versions of Bionic. This CL checks that the NDK version

[PATCH] D46982: Do not enable RTTI with -fexceptions, for PS4

2018-05-16 Thread Sunil Srivastava via Phabricator via cfe-commits
Sunil_Srivastava created this revision. Sunil_Srivastava added a reviewer: filcab. Herald added a subscriber: cfe-commits. NFC for targets other than PS4. This patch is a change in behavior for PS4, in that PS4 will no longer enable RTTI when -fexceptions is specified (RTTI and Exceptions are dis

[PATCH] D44931: [WebAssembly] Use Windows EH instructions for Wasm EH

2018-05-16 Thread David Majnemer via Phabricator via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/CGException.cpp:1164 + CurrentFuncletPad); + llvm::BasicBlock *CatchStartBlock = nullptr; + if (EHPersonality::get(*this).isWasmPersonality()) { Maybe this should be called WasmCatchStartBlock?

[PATCH] D46665: [Itanium] Emit type info names with external linkage.

2018-05-16 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. This is causing ASan's ODR violation detector to fire. I think the problematic case looks like this: TU 1: struct X; /*...*/ typeid(X*); /*...*/ TU 2: struct X { virtual void f(); }; void X::f() {} Now, TU 1 will emit a `linkonce_odr` definition of the `_ZTS`

[PATCH] D46024: [clang-format] Add SpaceBeforeCpp11BracedList option.

2018-05-16 Thread Ross Kirsling via Phabricator via cfe-commits
rkirsling added a comment. If there are no objections to this change, may I request a commit based on the approval that @jfb provided? Repository: rC Clang https://reviews.llvm.org/D46024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[PATCH] D44352: [Concepts] Constrained template parameters

2018-05-16 Thread Saar Raz via Phabricator via cfe-commits
saar.raz updated this revision to Diff 147190. saar.raz added a comment. Adjusted to changes in dependent patches. Repository: rC Clang https://reviews.llvm.org/D44352 Files: include/clang/AST/DeclTemplate.h include/clang/AST/RecursiveASTVisitor.h include/clang/AST/TemplateBase.h inc

[PATCH] D46652: [clang-cl, PCH] Implement support for MS-style PCH through headers

2018-05-16 Thread Mike Rice via Phabricator via cfe-commits
mikerice added a comment. In https://reviews.llvm.org/D46652#1101952, @kimgr wrote: > > - Can you test what happens when you do `clang-cl.exe /Yc stdafx.h /Tp > stdafx.h`, i.e. compile the header directly as C++ code and generate .pch > from it? The normal MSVC modus operandi is to have st

[PATCH] D43357: [Concepts] Function trailing requires clauses

2018-05-16 Thread Saar Raz via Phabricator via cfe-commits
saar.raz updated this revision to Diff 147188. saar.raz added a comment. - Fixed handling of empty/non-expression after trailing requires keyword. - Unified satisfaction check for templated/non-templated constraint exprs Repository: rC Clang https://reviews.llvm.org/D43357 Files: include/c

[PATCH] D46979: [Fixed Point Arithmetic] Test for Conversion Between Valid Builtin Types

2018-05-16 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr, jakehehrlich. leonardchan added a project: clang. This patch contains changes and a test for checking that fixed point types can be converted between all other valid types. Fixed point types can be converted betwee

[PATCH] D41910: [Concepts] Constrained partial specializations and function overloads.

2018-05-16 Thread Saar Raz via Phabricator via cfe-commits
saar.raz updated this revision to Diff 147187. saar.raz added a comment. - Adjusted constraint normalization to piecewise constraint substitution - Normalized constraints are now represented as described in the standard (a non-substituted expression along with a list of "template arguments"). R

Re: r332458 - [AST] Added a helper to extract a user-friendly text of a comment.

2018-05-16 Thread Galina Kistanova via cfe-commits
Also few other builders are affected: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test http://lab.llvm.org:8011/builders/clang-lld-x86_64-2stage http://lab.llvm.org:8011/builders/clang-with-lto-ubuntu Thanks Galina On Wed, May 16, 2018 at 12:58 PM, Galina Kistanova wrote: > Hell

[PATCH] D46975: Implement deduction guides for `std::deque`

2018-05-16 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. I should probably add some tests for the implicit deduction guides, too. https://reviews.llvm.org/D46975 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D46747: [Sema] Use dotted form of macOS version for unguarded availability FixIts

2018-05-16 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington accepted this revision. erik.pilkington added a comment. Great, LGTM! https://reviews.llvm.org/D46747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D46747: [Sema] Use dotted form of macOS version for unguarded availability FixIts

2018-05-16 Thread Jan Korous via Phabricator via cfe-commits
jkorous updated this revision to Diff 147184. jkorous added a comment. This revision is now accepted and ready to land. After some internal discussion we agreed that we can simplify things and get consistent behaviour by using dot everywhere in diagnostics. This is pretty much revert of r219124

Re: [clang-tools-extra] r332363 - [clangd] Populate #include insertions as additional edits in completion items.

2018-05-16 Thread Eric Liu via cfe-commits
r332520 fixed the broken build in clangd. On Wed, May 16, 2018 at 9:48 PM Eric Liu wrote: > Looking... sorry that I missed the email from this bot. > > On Wed, May 16, 2018 at 9:43 PM Galina Kistanova > wrote: > >> Hello Eric, >> >> This commit broke one of our builders: >> http://lab.llvm.org:

[PATCH] D46975: Implement deduction guides for `std::deque`

2018-05-16 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists created this revision. mclow.lists added a reviewer: EricWF. Based off of http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0433r2.html https://reviews.llvm.org/D46975 Files: include/deque test/std/containers/sequences/deque/deque.cons/deduct.pass.cpp Index: test/std/c

[clang-tools-extra] r332520 - Second attempt to fix buildbot failure caused by r332363

2018-05-16 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed May 16 13:31:38 2018 New Revision: 332520 URL: http://llvm.org/viewvc/llvm-project?rev=332520&view=rev Log: Second attempt to fix buildbot failure caused by r332363 http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/26501 Modified: clang-tools-extra

[PATCH] D46485: Add python tool to dump and construct header maps

2018-05-16 Thread Jan Korous via Phabricator via cfe-commits
jkorous added a comment. LGTM but my review was fairly superficial. Comment at: utils/hmaptool/hmaptool:55 +# The number of buckets must be a power of two. +if num_buckets == 0 or (num_buckets & num_buckets - 1) != 0: +raise SystemExit("e

[PATCH] D46942: Add vfs::FileSystem::getRealPath

2018-05-16 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 147167. ioeric added a comment. - Add vfs::FileSystem::getRealPath; change getCanonicalName to use getRealPath Repository: rC Clang https://reviews.llvm.org/D46942 Files: include/clang/Basic/VirtualFileSystem.h lib/Basic/FileManager.cpp lib/Basic/Vi

[PATCH] D46863: [X86] Use __builtin_convertvector to implement some of the packed integer to packed float conversion intrinsics.

2018-05-16 Thread David Kreitzer via Phabricator via cfe-commits
DavidKreitzer added a comment. This looks good to me, Craig. I am not worried about the constant folding issue, as I think constant folding these conversion intrinsics (assuming round-to-nearest) is a perfectly valid optimization in the absence of FENV_ACCESS. (FWIW, we don't do this constant f

[PATCH] D46652: [clang-cl, PCH] Implement support for MS-style PCH through headers

2018-05-16 Thread Kim Gräsman via Phabricator via cfe-commits
kimgr added a comment. I've done some terrible things with MSVC PCHs over the years, so I'll pile on some more questions: - Can you test what happens when you do `clang-cl.exe /Yc stdafx.h /Tp stdafx.h`, i.e. compile the header directly as C++ code and generate .pch from it? The normal MSVC m

[PATCH] D45702: [clang-tidy] Add a new check, readability-simplify-subscript-expr, that simplifies subscript expressions.

2018-05-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Committed in r332519, thank you for the patch! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D45702 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[clang-tools-extra] r332519 - Add a new check, readability-simplify-subscript-expr, that diagnoses array subscript expressions that can be simplified.

2018-05-16 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed May 16 13:12:06 2018 New Revision: 332519 URL: http://llvm.org/viewvc/llvm-project?rev=332519&view=rev Log: Add a new check, readability-simplify-subscript-expr, that diagnoses array subscript expressions that can be simplified. Currently, diagnoses code that calls

[clang-tools-extra] r332518 - [clang-move] Fix a potential bug where realpath doesn't work on VFS.

2018-05-16 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed May 16 13:10:10 2018 New Revision: 332518 URL: http://llvm.org/viewvc/llvm-project?rev=332518&view=rev Log: [clang-move] Fix a potential bug where realpath doesn't work on VFS. Modified: clang-tools-extra/trunk/clang-move/ClangMove.cpp Modified: clang-tools-extra/tru

[PATCH] D46659: [clang-tidy/google-readability-casting] Disable check for Objective-C++

2018-05-16 Thread Ben Hamilton via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL332516: [clang-tidy/google-readability-casting] Disable check for Objective-C++ (authored by benhamilton, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.ll

[clang-tools-extra] r332516 - [clang-tidy/google-readability-casting] Disable check for Objective-C++

2018-05-16 Thread Ben Hamilton via cfe-commits
Author: benhamilton Date: Wed May 16 13:07:19 2018 New Revision: 332516 URL: http://llvm.org/viewvc/llvm-project?rev=332516&view=rev Log: [clang-tidy/google-readability-casting] Disable check for Objective-C++ Summary: Previously, `google-readability-casting` was disabled for Objective-C. The Go

[PATCH] D46659: [clang-tidy/google-readability-casting] Disable check for Objective-C++

2018-05-16 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added inline comments. Comment at: clang-tidy/google/AvoidCStyleCastsCheck.cpp:103-104 // The rest of this check is only relevant to C++. - if (!getLangOpts().CPlusPlus) + // We also disable it for Objective-C++. + if (!getLangOpts().CPlusPlus || getLangOpts().O

[PATCH] D44954: [clangd] Add "member" symbols to the index

2018-05-16 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. @ioeric You mentioned in https://reviews.llvm.org/D46751 that it would make sense to add a flag to disable indexing members. Could you comment on that? What kind of granularity were you thinking? Would a "member" flag cover both class members (member vars and function

[clang-tools-extra] r332515 - Attempt to fix buildbot failure caused by r332363

2018-05-16 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed May 16 12:59:49 2018 New Revision: 332515 URL: http://llvm.org/viewvc/llvm-project?rev=332515&view=rev Log: Attempt to fix buildbot failure caused by r332363 Log: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/26399 Modified: clang-tools-extra/t

Re: r332458 - [AST] Added a helper to extract a user-friendly text of a comment.

2018-05-16 Thread Galina Kistanova via cfe-commits
Hello Ilya, This commit broke build step for couple of our builders: http://lab.llvm.org:8011/builders/clang-with-lto-ubuntu/builds/8541 http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu . . . FAILED: tools/clang/unittests/AST/CMakeFiles/ASTTests.dir/CommentTextTest.cpp.o /usr/bin/c++

Re: [clang-tools-extra] r332363 - [clangd] Populate #include insertions as additional edits in completion items.

2018-05-16 Thread Eric Liu via cfe-commits
Looking... sorry that I missed the email from this bot. On Wed, May 16, 2018 at 9:43 PM Galina Kistanova wrote: > Hello Eric, > > This commit broke one of our builders: > http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/26399 > > . . . > 387.403 [725/64/4163] Building CXX obj

Re: [clang-tools-extra] r332363 - [clangd] Populate #include insertions as additional edits in completion items.

2018-05-16 Thread Galina Kistanova via cfe-commits
Hello Eric, This commit broke one of our builders: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/26399 . . . 387.403 [725/64/4163] Building CXX object tools/clang/tools/extra/clangd/CMakeFiles/clangDaemon.dir/CodeComplete.cpp.o FAILED: tools/clang/tools/extra/clangd/CMakeFi

[PATCH] D46489: [HIP] Let assembler output bitcode for amdgcn

2018-05-16 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl abandoned this revision. yaxunl added a comment. I have updated https://reviews.llvm.org/D46476 to skip backend and assembler phases for amdgcn, therefore this patch is no longer needed. https://reviews.llvm.org/D46489 ___ cfe-commits mailin

[PATCH] D46476: [HIP] Add action builder for HIP

2018-05-16 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 147156. yaxunl added a comment. Skip backend and assemmbler phases for amdgcn since it does not support linking of object files. https://reviews.llvm.org/D46476 Files: lib/Driver/Driver.cpp test/Driver/cuda-phases.cu Index: test/Driver/cuda-phases.cu =

[PATCH] D46659: [clang-tidy/google-readability-casting] Disable check for Objective-C++

2018-05-16 Thread Stephane Moore via Phabricator via cfe-commits
stephanemoore accepted this revision. stephanemoore added inline comments. Comment at: clang-tidy/google/AvoidCStyleCastsCheck.cpp:103-104 // The rest of this check is only relevant to C++. - if (!getLangOpts().CPlusPlus) + // We also disable it for Objective-C++. + if (!ge

[PATCH] D46971: [DWARF] Get RA from RA register even if it appears unused

2018-05-16 Thread whitequark via Phabricator via cfe-commits
whitequark updated this revision to Diff 147153. whitequark added a comment. Reuploaded diff with context. Repository: rUNW libunwind https://reviews.llvm.org/D46971 Files: src/DwarfInstructions.hpp Index: src/DwarfInstructions.hpp

[PATCH] D46971: [DWARF] Get RA from RA register even if it appears unused

2018-05-16 Thread whitequark via Phabricator via cfe-commits
whitequark created this revision. whitequark added a reviewer: compnerd. Herald added a subscriber: JDevlieghere. If prolog info lists the RA register as unused, it means that the current stack frame corresponds to a leaf function which never needs to save the RA register. The RA register is of co

[PATCH] D46443: Add missing cstdalign header

2018-05-16 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 added a comment. ping Repository: rCXX libc++ https://reviews.llvm.org/D46443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] r332513 - [OR1K] Add the EPCR special-purpose register to register state.

2018-05-16 Thread whitequark via cfe-commits
Author: whitequark Date: Wed May 16 12:09:48 2018 New Revision: 332513 URL: http://llvm.org/viewvc/llvm-project?rev=332513&view=rev Log: [OR1K] Add the EPCR special-purpose register to register state. This makes it possible to unwind hardware exception stack frames, which necessarily save every r

[libunwind] r332512 - [OR1K] Add a dedicated PC register to register state.

2018-05-16 Thread whitequark via cfe-commits
Author: whitequark Date: Wed May 16 12:09:41 2018 New Revision: 332512 URL: http://llvm.org/viewvc/llvm-project?rev=332512&view=rev Log: [OR1K] Add a dedicated PC register to register state. Before this commit, R9, the link register, was used as PC register. However, a stack frame may have R9 not

[PATCH] D46652: [clang-cl, PCH] Implement support for MS-style PCH through headers

2018-05-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. @hans @thakis, do you remember how these flags are supposed to work? I've forgotten anything I ever knew about them... https://reviews.llvm.org/D46652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

[PATCH] D46909: [Sema] Fix assertion when constructor is disabled with partially specialized template.

2018-05-16 Thread Volodymyr Sapsai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL332509: [Sema] Fix assertion when constructor is disabled with partially specialized… (authored by vsapsai, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://revi

r332509 - [Sema] Fix assertion when constructor is disabled with partially specialized template.

2018-05-16 Thread Volodymyr Sapsai via cfe-commits
Author: vsapsai Date: Wed May 16 11:28:58 2018 New Revision: 332509 URL: http://llvm.org/viewvc/llvm-project?rev=332509&view=rev Log: [Sema] Fix assertion when constructor is disabled with partially specialized template. The added test case was triggering assertion > Assertion failed: > (!Spec

[PATCH] D46929: Fix a mangling failure on clang-cl C++17

2018-05-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. I searched around, and I noticed that `VTableContext::getMethodVTableIndex` has the same implied contract that the caller must always provide a canonical declaration or things will break. It looks like it has three callers, and they all do this. We should probably sink the

[PATCH] D46909: [Sema] Fix assertion when constructor is disabled with partially specialized template.

2018-05-16 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Thanks for the quick review, Richard. I'll keep in mind the idea with comparing results of multiple lookups when I work on other partial specialization-related bugs. https://reviews.llvm.org/D46909 ___ cfe-commits mailing

[PATCH] D45177: CStringChecker, check strlcpy/strlcat

2018-05-16 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/CStringChecker.cpp:1560-1566 // If the size is known to be zero, we're done. if (StateZeroSize && !StateNonZeroSize) { StateZeroSize = StateZeroSize->BindExpr(CE, LCtx, DstVal);

[PATCH] D45702: [clang-tidy] Add a new check, readability-simplify-subscript-expr, that simplifies subscript expressions.

2018-05-16 Thread Shuai Wang via Phabricator via cfe-commits
shuaiwang added a comment. In https://reviews.llvm.org/D45702#1101136, @aaron.ballman wrote: > In https://reviews.llvm.org/D45702#1097294, @shuaiwang wrote: > > > Addressed review comments. > > > This patch was approved; do you need someone to commit this for you? Yes please :) Repository:

[PATCH] D46939: [Timers] TimerGroup: add constructor from StringMap

2018-05-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL332506: [Timers] TimerGroup: add constructor from StringMap (authored by lebedevri, committed by ). Changed prior to commit: https://reviews.llvm.org/D46939?vs=147055&id=147140#toc Reposito

[PATCH] D46937: [Timers] TimerGroup::printJSONValue(): print doubles with no precision loss

2018-05-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL332504: [Timers] TimerGroup::printJSONValue(): print doubles with no precision loss (authored by lebedevri, committed by ). Changed prior to commit: https://reviews.llvm.org/D46937?vs=147053&id=147138#t

[PATCH] D46938: [Timers] TimerGroup: make printJSONValues() method public

2018-05-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL332505: [Timers] TimerGroup: make printJSONValues() method public (authored by lebedevri, committed by ). Changed prior to commit: https://reviews.llvm.org/D46938?vs=147054&id=147139#toc Repository:

[PATCH] D46936: [Timers] TimerGroup::printJSONValues(): print mem timer with .mem suffix

2018-05-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL332503: [Timers] TimerGroup::printJSONValues(): print mem timer with .mem suffix (authored by lebedevri, committed by ). Changed prior to commit: https://reviews.llvm.org/D46936?vs=147052&id=147137#toc

[PATCH] D46602: [clang-tidy] Store checks profiling info as YAML files

2018-05-16 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: clang-tidy/tool/ClangTidyMain.cpp:188 +format to stderr. When this option is passed, +these per-TU profiles are instead stored as YAML.)"), + cl::value_desc("prefix"), Quux

[PATCH] D46602: [clang-tidy] Store checks profiling info as YAML files

2018-05-16 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added inline comments. Comment at: clang-tidy/tool/ClangTidyMain.cpp:188 +format to stderr. When this option is passed, +these per-TU profiles are instead stored as YAML.)"), + cl::value_desc("prefix"), Dri

[PATCH] D46964: Implement class deduction guides for `std::array`

2018-05-16 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists created this revision. mclow.lists added a reviewer: EricWF. According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0433r2.html Once this is reviewed, I'll do the rest of the sequence containers. https://reviews.llvm.org/D46964 Files: include/array test/std/cont

[PATCH] D46846: [Attr] Fix loss of enum forward decl from decl context

2018-05-16 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny updated this revision to Diff 147130. jdenny retitled this revision from "[Attr] Fix printing attrs for enum forward decl at file scope" to "[Attr] Fix loss of enum forward decl from decl context". jdenny edited the summary of this revision. jdenny added a comment. Made the suggested chang

[PATCH] D46963: [Fixed Point Arithmetic] Test for All Builtin Operations

2018-05-16 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 147131. Repository: rC Clang https://reviews.llvm.org/D46963 Files: lib/AST/ASTContext.cpp lib/CodeGen/CGExprScalar.cpp test/Frontend/fixed_point_all_builtin_operations.c Index: test/Frontend/fixed_point_all_builtin_operations.c

[PATCH] D46603: [Support] TimerGroup changes

2018-05-16 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. > Not sure yet whether i will land them right away, or wait for clang-tidy part. I think it's better to land, as otherwise you risk merge conflicts, and implicit conflicts (git reports no errors, but the resulting code is bad) can be very annoying. Repository

[PATCH] D46603: [Support] TimerGroup changes

2018-05-16 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D46603#1101047, @lebedev.ri wrote: > In https://reviews.llvm.org/D46603#1100455, @george.karpenkov wrote: > > > I see four separate changes: s/.sys/mem one (can be committed without > > review), exposing printJSONValues and consequent addin

[PATCH] D46937: [Timers] TimerGroup::printJSONValue(): print doubles with no precision loss

2018-05-16 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov accepted this revision. george.karpenkov added a comment. This revision is now accepted and ready to land. LGTM Repository: rL LLVM https://reviews.llvm.org/D46937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[PATCH] D46944: [analyzer] Use sufficiently large types for index/size calculation.

2018-05-16 Thread Bevin Hansson via Phabricator via cfe-commits
ebevhan added inline comments. Comment at: lib/StaticAnalyzer/Core/RegionStore.cpp:1344 // This is a signed value, since it's used in arithmetic with signed indices. - return svalBuilder.makeIntVal(RegionSize / EleSize, false); + return svalBuilder.makeIntVal(RegionSize / El

[PATCH] D46963: [Fixed Point Arithmetic] Test for All Builtin Operations

2018-05-16 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr, jakehehrlich. leonardchan added a project: clang. This patch includes a test for checking that all supported builtin operations can be syntactically declared with fixed point types. Tests for asserting the correctn

[PATCH] D46602: [clang-tidy] Store checks profiling info as YAML files

2018-05-16 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 147120. lebedev.ri marked 2 inline comments as done. lebedev.ri added a comment. Rename getter/setter functions. Thank you for taking a look! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D46602 Files: clang-tidy/ClangTidy.cpp clang

[PATCH] D46834: [Sema][Cxx17] Error message for C++17 static_assert(pred) without string literal

2018-05-16 Thread Jan Korous via Phabricator via cfe-commits
jkorous abandoned this revision. jkorous added a comment. We reconsidered this in light of the policy - thanks for pointing that out Richard! Just to be sure that I understand it - the policy is meant for CLI and not serialized diagnostics, right? Repository: rC Clang https://reviews.llvm.

[PATCH] D43352: Add support for __declspec(code_seg("segname"))

2018-05-16 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Woops, forgot the tests when commiting, so see R332492 for the lit tests. Repository: rC Clang https://reviews.llvm.org/D43352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

r332492 - Add lit tests forgotten for R332470

2018-05-16 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Wed May 16 10:04:47 2018 New Revision: 332492 URL: http://llvm.org/viewvc/llvm-project?rev=332492&view=rev Log: Add lit tests forgotten for R332470 I forgot to svn-add the lit tests for R332470. Added here! Added: cfe/trunk/test/CodeGenCXX/code_seg1.cpp (with pro

r332491 - [Modules] Do not diagnose missing import in recovery mode if there isn't a decl to lookup

2018-05-16 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Wed May 16 10:00:24 2018 New Revision: 332491 URL: http://llvm.org/viewvc/llvm-project?rev=332491&view=rev Log: [Modules] Do not diagnose missing import in recovery mode if there isn't a decl to lookup Clang often tries to create implicit module import for error recovery, whi

[PATCH] D46958: [ASTImporter] Fix missing implict CXXRecordDecl

2018-05-16 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin accepted this revision. a.sidorin added a comment. This revision is now accepted and ready to land. So, we fail to add injected name to a CXXRecordDecl that has a described class template? Nice catch! LGTM. Repository: rC Clang https://reviews.llvm.org/D46958 ___

[PATCH] D46960: [Fixed Point Arithmetic] Predefined Precision Macros

2018-05-16 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr, jakehehrlich. leonardchan added a project: clang. This patch contains the addition of the precision macros for integral and fractional bits according to clause 7.18a.3 of http://www.open-std.org/jtc1/sc22/wg14/www/

  1   2   3   >