[PATCH] D30884: When diagnosing taking address of packed members skip __unaligned-qualified expressions

2017-03-13 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 created this revision. Given that we have already explicitly stated in the qualifier that the expression is `__unaligned`, it makes little sense to diagnose that the address of the packed member may not be aligned. https://reviews.llvm.org/D30884 Files: lib/Sema/SemaChecking.cpp

RE: r297468 - [OpenCL] Fix type compatibility check and generic AS mangling.

2017-03-13 Thread Anastasia Stulova via cfe-commits
Hi Galina, Thanks for reporting it! I believe the issue is fixed in r297530. Cheers, Anastasia From: Galina Kistanova [mailto:gkistan...@gmail.com] Sent: 10 March 2017 20:29 To: Anastasia Stulova Cc: cfe-commits Subject: Re: r297468 - [OpenCL] Fix type compatibility check and generic AS

[PATCH] D30643: [OpenCL] Extended diagnostics for atomic initialization

2017-03-13 Thread Alexey Bader via Phabricator via cfe-commits
bader added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8263 +def err_atomic_init_addressspace : Error< + "initialization of atomic variables is restricted to variables in global address space">; def err_atomic_init_constant : Error<

[PATCH] D30860: [clang-format] Add more examples and fix a bug in the py generation script

2017-03-13 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: docs/tools/dump_format_style.py:67 def __str__(self): -return '* ``%s`` %s' % (self.name, doxygen2rst(self.comment)) +return '\n* ``%s``

[PATCH] D30883: clang-format: [JS] do not wrap @see tags.

2017-03-13 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297607: clang-format: [JS] do not wrap @see tags. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D30883?vs=91527=91529#toc Repository: rL LLVM

r297607 - clang-format: [JS] do not wrap @see tags.

2017-03-13 Thread Martin Probst via cfe-commits
Author: mprobst Date: Mon Mar 13 04:39:23 2017 New Revision: 297607 URL: http://llvm.org/viewvc/llvm-project?rev=297607=rev Log: clang-format: [JS] do not wrap @see tags. Summary: @see is special among JSDoc tags in that it is commonly followed by URLs. The JSDoc spec suggests that users should

[PATCH] D30883: clang-format: [JS] do not wrap @see tags.

2017-03-13 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D30883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D30547: [clang-tidy] Forwarding reference overload in constructors

2017-03-13 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: clang-tidy/misc/MiscTidyModule.cpp:70 +CheckFactories.registerCheck( +"misc-forwarding-reference-overload"); CheckFactories.registerCheck("misc-misplaced-const"); malcolm.parsons wrote: >

[PATCH] D30883: clang-format: [JS] do not wrap @see tags.

2017-03-13 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. Herald added a subscriber: klimek. @see is special among JSDoc tags in that it is commonly followed by URLs. The JSDoc spec suggests that users should wrap URLs in an additional {@link url...} tag (@see http://usejsdoc.org/tags-see.html), but this is very commonly

[PATCH] D30547: [clang-tidy] Forwarding reference overload in constructors

2017-03-13 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/misc/MiscTidyModule.cpp:70 +CheckFactories.registerCheck( +"misc-forwarding-reference-overload"); CheckFactories.registerCheck("misc-misplaced-const"); aaron.ballman wrote: > leanil

[PATCH] D30831: [ASTImporter] Import fix of GCCAsmStmts w/ missing symbolic operands

2017-03-13 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Hello Zoltan, Thank you for the patch. There is an inline comment. Comment at: lib/AST/ASTImporter.cpp:5221 IdentifierInfo *ToII = Importer.Import(S->getOutputIdentifier(I)); -if (!ToII) - return nullptr; +// ToII is nullptr when no

[PATCH] D30705: clang-format: [JS] allow breaking after non-null assertions.

2017-03-13 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297606: clang-format: [JS] allow breaking after non-null assertions. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D30705?vs=90988=91526#toc Repository: rL LLVM

r297606 - clang-format: [JS] allow breaking after non-null assertions.

2017-03-13 Thread Martin Probst via cfe-commits
Author: mprobst Date: Mon Mar 13 04:14:23 2017 New Revision: 297606 URL: http://llvm.org/viewvc/llvm-project?rev=297606=rev Log: clang-format: [JS] allow breaking after non-null assertions. Summary: Previously clang-format would not break after any !. However in TypeScript, ! can be used as a

[PATCH] D30792: Use callback for internalizing linked symbols.

2017-03-13 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere abandoned this revision. JDevlieghere added a comment. In https://reviews.llvm.org/D30792#697802, @mehdi_amini wrote: > Off topic, but since this is a rev lock change with LLVM, you can to all of > in a single revision with: >

[PATCH] D30720: [include-fixer] Add fuzzy SymbolIndex, where identifier needn't match exactly.

2017-03-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Looks good from my side. https://reviews.llvm.org/D30720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D30810: Preserve vec3 type.

2017-03-13 Thread JinGu Kang via Phabricator via cfe-commits
jaykang10 marked an inline comment as done. jaykang10 added a comment. In https://reviews.llvm.org/D30810#699006, @ahatanak wrote: > Could you elaborate on the motivation for this change? > > I was wondering why clang (CodeGen) needed the help of a command line option > to decide whether vec3

[PATCH] D30882: Add a callback for __has_include and use it for dependency scanning

2017-03-13 Thread Pete Cooper via Phabricator via cfe-commits
pete created this revision. Herald added a subscriber: nemanjai. This adds a PP callback for the __has_include and __has_include_next directives. Checking for the presence of a header should add it to the list of header dependencies so this overrides the callback in the dependency scanner. I

[PATCH] D30875: [X86] Add checking of the scale argument to scatter/gather builtins

2017-03-13 Thread Igor Breger via Phabricator via cfe-commits
igorb accepted this revision. igorb added a comment. This revision is now accepted and ready to land. LGTM, Could you please add test that check scale and hint parameter errors for BI__builtin_ia32_gatherpfdpd for example. https://reviews.llvm.org/D30875

[PATCH] D30810: Preserve vec3 type.

2017-03-13 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Could you elaborate on the motivation for this change? I was wondering why clang (CodeGen) needed the help of a command line option to decide whether vec3 should be converted to vec4. Can it just preserve vec3 when the architecture is spir?

[PATCH] D30874: clang-format: [JS] do not wrap after interface and type.

2017-03-13 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297605: clang-format: [JS] do not wrap after interface and type. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D30874?vs=91500=91519#toc Repository: rL LLVM

r297605 - clang-format: [JS] do not wrap after interface and type.

2017-03-13 Thread Martin Probst via cfe-commits
Author: mprobst Date: Mon Mar 13 02:10:18 2017 New Revision: 297605 URL: http://llvm.org/viewvc/llvm-project?rev=297605=rev Log: clang-format: [JS] do not wrap after interface and type. Summary: `interface` and `type` are pseudo keywords and cause automatic semicolon insertion when followed by a

[PATCH] D30881: Track skipped files in dependency scanning

2017-03-13 Thread Pete Cooper via Phabricator via cfe-commits
pete created this revision. Its possible for a header to be a symlink to another header. In this case, both are actually the same underlying file, and will both have the same include guards. Because of this, if we #include the header, then #include the symlink, or vice versa, then one will

[PATCH] D30874: clang-format: [JS] do not wrap after interface and type.

2017-03-13 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D30874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

<    1   2