[PATCH] D30776: [coroutines] Fix diagnostics depending on the first coroutine statement.

2017-03-09 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. Herald added a subscriber: mehdi_amini. Some coroutine diagnostics need to point to the location of the first coroutine keyword in the function, like when diagnosing a `return` inside a coroutine. Previously we did this by storing each *valid* coroutine statement in

[libunwind] r297364 - Fix up the places where AddressSpace.hpp is included.

2017-03-09 Thread Ed Schouten via cfe-commits
Author: ed Date: Thu Mar 9 02:04:07 2017 New Revision: 297364 URL: http://llvm.org/viewvc/llvm-project?rev=297364&view=rev Log: Fix up the places where AddressSpace.hpp is included. The AddressSpace.hpp header declares two classes: LocalAddressSpace and RemoteAddressSpace. These classes are only

[PATCH] D30773: Make git-clang-format python 3 compatible

2017-03-09 Thread Kim Gräsman via Phabricator via cfe-commits
kimgr added a comment. Some nits from a Python3 hacker. Comment at: tools/clang-format/git-clang-format:143 for filename in ignored_files: -print ' ', filename +print(' ', filename) if changed_lines: I find `print('template', tai

[PATCH] D30773: Make git-clang-format python 3 compatible

2017-03-09 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked 4 inline comments as done. EricWF added inline comments. Comment at: tools/clang-format/git-clang-format:323 allowed_extensions = frozenset(allowed_extensions) - for filename in dictionary.keys(): + for filename in list(dictionary.keys()): base_ext = filen

[PATCH] D30773: Make git-clang-format python 3 compatible

2017-03-09 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked 2 inline comments as done. EricWF added inline comments. Comment at: tools/clang-format/git-clang-format:323 allowed_extensions = frozenset(allowed_extensions) - for filename in dictionary.keys(): + for filename in list(dictionary.keys()): base_ext = filen

[PATCH] D30773: Make git-clang-format python 3 compatible

2017-03-09 Thread Kim Gräsman via Phabricator via cfe-commits
kimgr added inline comments. Comment at: tools/clang-format/git-clang-format:323 allowed_extensions = frozenset(allowed_extensions) - for filename in dictionary.keys(): + for filename in list(dictionary.keys()): base_ext = filename.rsplit('.', 1) EricWF

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

2017-03-09 Thread András Leitereg via Phabricator via cfe-commits
leanil updated this revision to Diff 91144. leanil added a comment. Fix enable_if detection in pointer and reference types. Improve test coverage for these cases. Repository: rL LLVM https://reviews.llvm.org/D30547 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/ForwardingReference

[clang-tools-extra] r297367 - [clang-tidy] Update the doc according to r297311.

2017-03-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Mar 9 03:15:16 2017 New Revision: 297367 URL: http://llvm.org/viewvc/llvm-project?rev=297367&view=rev Log: [clang-tidy] Update the doc according to r297311. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/readability-function-size.rst Modified: clang-tools

[PATCH] D30773: Make git-clang-format python 3 compatible

2017-03-09 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 91145. EricWF added a comment. This still isn't working in python3 due to more bytes vs str issues, but this is my progress so far. https://reviews.llvm.org/D30773 Files: tools/clang-format/git-clang-format Index: tools/clang-format/git-clang-format

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

2017-03-09 Thread András Leitereg via Phabricator via cfe-commits
leanil marked 3 inline comments as done. leanil added inline comments. Comment at: clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp:31 + ->getName() + .find("enable_if") != StringRef::npos; + }; aaron.ballman wrote: > This should

Re: [clang-tools-extra] r297367 - [clang-tidy] Update the doc according to r297311.

2017-03-09 Thread Alexander Kornienko via cfe-commits
Thank you! Completely forgot about this. On Thu, Mar 9, 2017 at 10:15 AM, Haojian Wu via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: hokein > Date: Thu Mar 9 03:15:16 2017 > New Revision: 297367 > > URL: http://llvm.org/viewvc/llvm-project?rev=297367&view=rev > Log: > [clang-tidy]

[PATCH] D30693: [mips][msa] Remove range checks for non-immediate sld.[bhwd] instructions

2017-03-09 Thread Simon Dardis via Phabricator via cfe-commits
sdardis accepted this revision. sdardis added a comment. This revision is now accepted and ready to land. LGTM. Minor nit: there's some spurious whitespace that can be removed, see my inlined comment. Comment at: test/CodeGen/builtins-mips-msa.c:701 v2i64_r = __msa_sld_d(v2

[PATCH] D30567: [clang-tidy] Fix treating non-space whitespaces in checks list.

2017-03-09 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius added a comment. Hi Alex and sorry for the late reply. The main use case is a more readable `.clang-tidy` configuration checks. Before this correction one can use something like this: --- Checks: ' ,*, ,-cert-dcl03-c, ' ... It works, but is hardly comprehensible to

[PATCH] D27334: [OpenCL] Ambiguous function call.

2017-03-09 Thread Egor Churaev via Phabricator via cfe-commits
echuraev added a comment. In https://reviews.llvm.org/D27334#614826, @Anastasia wrote: > In https://reviews.llvm.org/D27334#614389, @bader wrote: > > > In https://reviews.llvm.org/D27334#613504, @Anastasia wrote: > > > > > In https://reviews.llvm.org/D27334#612858, @bader wrote: > > > > > > > In

[clang-tools-extra] r297371 - [include-fixer] Remove line number from Symbol identity

2017-03-09 Thread Sam McCall via cfe-commits
Author: sammccall Date: Thu Mar 9 04:47:44 2017 New Revision: 297371 URL: http://llvm.org/viewvc/llvm-project?rev=297371&view=rev Log: [include-fixer] Remove line number from Symbol identity Summary: Remove line number from Symbol identity. For our purposes (include-fixer and clangd autocomplet

[PATCH] D30685: [include-fixer] Remove line number from Symbol identity

2017-03-09 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297371: [include-fixer] Remove line number from Symbol identity (authored by sammccall). Changed prior to commit: https://reviews.llvm.org/D30685?vs=90990&id=91149#toc Repository: rL LLVM https://re

[PATCH] D30777: Added `applyAtomicChanges` function.

2017-03-09 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ... which applies a set of `AtomicChange`s on code. https://reviews.llvm.org/D30777 Files: include/clang/Tooling/Refactoring/AtomicChange.h lib/Tooling/Refactoring/AtomicChange.cpp unittests/Tooling/RefactoringTest.cpp Index: unittests/Tooling/RefactoringTes

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

2017-03-09 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: lib/Lex/Lexer.cpp:457 +static bool isNewLineEscaped(const char *BufferStart, const char *Str) { + while (Str > BufferStart && isWhitespace(*Str)) +

[PATCH] D30777: Added `applyAtomicChanges` function.

2017-03-09 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: include/clang/Tooling/Refactoring/AtomicChange.h:129 +struct ApplyChangesSpec { + // If true, cleans up redundant/erroneous around changed code with + // clang-format's cleanup functionality, e.g. redundant commas around deleted ---

[PATCH] D30693: [mips][msa] Remove range checks for non-immediate sld.[bhwd] instructions

2017-03-09 Thread Stefan Maksimovic via Phabricator via cfe-commits
smaksimovic updated this revision to Diff 91158. smaksimovic added a comment. Removed whitespace. https://reviews.llvm.org/D30693 Files: lib/Sema/SemaChecking.cpp test/CodeGen/builtins-mips-msa-error.c test/CodeGen/builtins-mips-msa.c Index: test/CodeGen/builtins-mips-msa.c

[PATCH] D30777: Added `applyAtomicChanges` function.

2017-03-09 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 91163. ioeric marked 2 inline comments as done. ioeric added a comment. - Addressed comments; stylized code. https://reviews.llvm.org/D30777 Files: include/clang/Tooling/Refactoring/AtomicChange.h lib/Tooling/Refactoring/AtomicChange.cpp unittests/Tool

[PATCH] D30777: Added `applyAtomicChanges` function.

2017-03-09 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: include/clang/Tooling/Refactoring/AtomicChange.h:147-149 +/// This completely ignores the file path in each change and replaces them with +/// \p FilePath, i.e. callers are responsible for ensuring all changes are for +/// the same file.

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-09 Thread Andi via Phabricator via cfe-commits
Abpostelnicu added a comment. Daniel what do you think about the last version of the patch? I don't want to have this stalled since we really need this modifications in order to be able to run clang-format on our repository. Repository: rL LLVM https://reviews.llvm.org/D30487 ___

[PATCH] D30158: [clang-tidy] modernize: Find usage of random_shuffle and replace it with shuffle.

2017-03-09 Thread Mads Ravn via Phabricator via cfe-commits
madsravn added a comment. Any updates on this? https://reviews.llvm.org/D30158 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30776: [coroutines] Fix diagnostics depending on the first coroutine statement.

2017-03-09 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov accepted this revision. GorNishanov added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D30776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D30762: [ubsan] Add a nullability sanitizer

2017-03-09 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs added inline comments. Comment at: lib/CodeGen/CGDecl.cpp:1911 +if (auto Nullability = Ty->getNullability(getContext())) { + if (Nullability && *Nullability == NullabilityKind::NonNull) { +SanitizerScope SanScope(this); aprantl wrote: >

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-09 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. I think the patch is fine, except for the name of the flag. It is not breaking inheritance ;). Maybe BreakBeforeInhertianceColonAndComma, but that's pretty long still. I think maybe we can shorten this to BreakBeforeInhertianceComma, as it never makes sense to break be

[PATCH] D30773: Make git-clang-format python 3 compatible

2017-03-09 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: tools/clang-format/git-clang-format:293 +def to_bytes(str): +# Encode to UTF-8 to get binary data. Pretty much a nit but using variable names that match type names can be a bit confusing here. Co

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-09 Thread Andi via Phabricator via cfe-commits
Abpostelnicu updated this revision to Diff 91174. Abpostelnicu added a comment. Yes that's a better name :) Repository: rL LLVM https://reviews.llvm.org/D30487 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/ContinuationIndenter.cpp lib/Format/Format.

r297389 - Retry: [ubsan] Detect UB loads from bitfields

2017-03-09 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Thu Mar 9 10:06:27 2017 New Revision: 297389 URL: http://llvm.org/viewvc/llvm-project?rev=297389&view=rev Log: Retry: [ubsan] Detect UB loads from bitfields It's possible to load out-of-range values from bitfields backed by a boolean or an enum. Check for UB loads from bitf

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-09 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. A few nits, otherwise looks good. Comment at: include/clang/Format/Format.h:426 + /// \brief If ``true``, in the class inheritance expression clang-format will + /// brea

Re: [PATCH] D30773: Make git-clang-format python 3 compatible

2017-03-09 Thread Nico Weber via cfe-commits
Consider landing the obvious bits (print function, mostly) separately and use this only for the interesting bits. On Thu, Mar 9, 2017 at 11:10 AM, Michał Górny via Phabricator via cfe-commits wrote: > mgorny added inline comments. > > > > Comment at: tools/clang-format/git-clang

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

2017-03-09 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia 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] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-09 Thread Kim Gräsman via Phabricator via cfe-commits
kimgr added a comment. Oops, the flag is called `BreakBeforeInhertianceComma` with a misspelling throughout. May want to search for `inhertiance` throughout and see if there are more cases. Comment at: docs/ClangFormatStyleOptions.rst:531 +**BreakBeforeInhertianceComma** (`

[PATCH] D30268: Avoid copy of __atoms when char_type is char

2017-03-09 Thread Aditya Kumar via Phabricator via cfe-commits
hiraditya added a comment. ping https://reviews.llvm.org/D30268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30762: [ubsan] Add a nullability sanitizer

2017-03-09 Thread Vedant Kumar via Phabricator via cfe-commits
vsk marked 8 inline comments as done. vsk added a comment. Thanks for your comments, and sorry for jumping the gun earlier with an updated diff. I'll attach a fixed-up diff shortly. Comment at: lib/CodeGen/CGDecl.cpp:1911 +if (auto Nullability = Ty->getNullability(getConte

[PATCH] D30762: [ubsan] Add a nullability sanitizer

2017-03-09 Thread Vedant Kumar via Phabricator via cfe-commits
vsk updated this revision to Diff 91180. vsk added a comment. - Add a test for the mixed _Nonnull arg + __attribute__((nonnull)) arg case. - Reword docs per Adrian's comments, fix up doxygen comments, add better code comments, drop redundant "Nullability" truthiness checks. https://reviews.llvm

[PATCH] D30762: [ubsan] Add a nullability sanitizer

2017-03-09 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added inline comments. Comment at: docs/UndefinedBehaviorSanitizer.rst:101 + ``-fsanitize=nullability-assign``, and the argument check with + ``-fsanitize=nullability-arg``. While violating nullability rules does + not result in undefined behavior, it is oft

[PATCH] D30610: [clang-tidy] Added options to cppcoreguidelines-special-member-functions check

2017-03-09 Thread Florian Gross via Phabricator via cfe-commits
fgross updated this revision to Diff 91183. fgross added a comment. Added examples to options doc. https://reviews.llvm.org/D30610 Files: clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.h docs/clang-tidy/checks/cppcoreg

[PATCH] D30610: [clang-tidy] Added options to cppcoreguidelines-special-member-functions check

2017-03-09 Thread Florian Gross via Phabricator via cfe-commits
fgross updated this revision to Diff 91188. fgross added a comment. Diff was missing cppcoreguidelines-special-member-functions-relaxed.cpp... https://reviews.llvm.org/D30610 Files: clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp clang-tidy/cppcoreguidelines/SpecialMemberFuncti

[PATCH] D30762: [ubsan] Add a nullability sanitizer

2017-03-09 Thread Filipe Cabecinhas via Phabricator via cfe-commits
filcab added a comment. Please make the tests tighter using `CHECK-NEXT` when possible. Much easier if later anyone needs to debug differences in IR. Comment at: docs/UndefinedBehaviorSanitizer.rst:102 + violating nullability rules does not result in undefined behavior, it

r297397 - [DebugInfo] Append extended dereferencing mechanism to variables' DIExpression for targets that support more than one address space

2017-03-09 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Thu Mar 9 12:06:23 2017 New Revision: 297397 URL: http://llvm.org/viewvc/llvm-project?rev=297397&view=rev Log: [DebugInfo] Append extended dereferencing mechanism to variables' DIExpression for targets that support more than one address space Differential Revision: https:

[PATCH] D29923: Send UndefMacroDirective to MacroDefined callback

2017-03-09 Thread Manman Ren via Phabricator via cfe-commits
manmanren added a comment. Please update the patch with context: http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface Thanks, Manman Comment at: unittests/Basic/SourceManagerTest.cpp:251 std::string Name; - bool isDefinition; // if false, it is

[PATCH] D29901: Modular Codegen: Add/use a bit in serialized function definitions to track whether they are the subject of modular codegen

2017-03-09 Thread David Blaikie via Phabricator via cfe-commits
dblaikie updated this revision to Diff 91193. dblaikie added a comment. sync/resolve https://reviews.llvm.org/D29901 Files: include/clang/AST/ASTContext.h include/clang/AST/ExternalASTSource.h include/clang/Sema/MultiplexExternalSemaSource.h include/clang/Serialization/ASTReader.h lib

[PATCH] D29901: Modular Codegen: Add/use a bit in serialized function definitions to track whether they are the subject of modular codegen

2017-03-09 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Ping I've got a relatively small patch to add support for debug info types after this one & working on a patch on top of that to enable one/the other/both of these (to test their value independently/together). Might be more expedient to sit down & push through them al

[PATCH] D30777: Added `applyAtomicChanges` function.

2017-03-09 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: include/clang/Tooling/Refactoring/AtomicChange.h:139 + // kNone: Don't format anything. + // kViolations: Format lines exceeding 80 columns. + enum FormatOption { kAll, kNone, kViolations }; Should probably be "exceed

[PATCH] D27627: [WIP] Supporting C++ based kernel languages on AMDGPU Target

2017-03-09 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl added a comment. Once you rebase, can you also update AMDGPUTargetInfo::getDWARFAddressSpace to use AddrSpaceKind? https://reviews.llvm.org/D27627 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[PATCH] D26800: [Sema] Make __attribute__((notnull)) inheritable through function parameters

2017-03-09 Thread Matt Bettinson via Phabricator via cfe-commits
bettinson updated this revision to Diff 91204. bettinson added a comment. Updated the test name. Sorry for the delay! https://reviews.llvm.org/D26800 Files: include/clang/Basic/Attr.td test/Sema/nonnull.c Index: test/Sema/nonnull.c =

[PATCH] D30768: [PATCH][VFS] Ignore broken symlinks in the directory iterator.

2017-03-09 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Hi Juergen, Thanks for working on this. Comment at: include/clang/Basic/VirtualFileSystem.h:164 EC = Impl->increment(); -if (EC || !Impl->CurrentEntry.isStatusKnown()) +if (!Impl->CurrentEntry.isStatusKnown()) Impl.reset(); // Normali

Re: Patch for Bug 30413, including test case

2017-03-09 Thread Lobron, David via cfe-commits
Hi Akira, > My concern is that the patch changes the encoding of @encode(id) on > Darwin, which I think isn’t what you are trying to fix. If you compile the > following code with command “clang -cc1 -triple x86_64-apple-macosx”, the > type encoding changes after applying the patch. > > const c

Re: Patch for Bug 30413, including test case

2017-03-09 Thread Akira Hatanaka via cfe-commits
Hi David, The patch looks good to me. > On Mar 9, 2017, at 1:01 PM, Lobron, David wrote: > > Hi Akira, > >> My concern is that the patch changes the encoding of @encode(id) >> on Darwin, which I think isn’t what you are trying to fix. If you compile >> the following code with command “clang

[PATCH] D27810: FileManager: mark virtual file entries as valid entries

2017-03-09 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Please attach a testcase! https://reviews.llvm.org/D27810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r297412 - Add -cc1 flag -ast-dump-all to perform an AST dump including entities that haven't yet been deserialized.

2017-03-09 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Mar 9 16:00:01 2017 New Revision: 297412 URL: http://llvm.org/viewvc/llvm-project?rev=297412&view=rev Log: Add -cc1 flag -ast-dump-all to perform an AST dump including entities that haven't yet been deserialized. Modified: cfe/trunk/include/clang/AST/DeclBase.h

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

2017-03-09 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. Great, thanks. One question below and a format nit. Comment at: lib/CodeGen/CodeGenAction.cpp:177 +if (LM.Internalize) { + Err = Linker::linkModules( + *getModule(), std::move(LM.Module), LM.LinkFlags, Need

[PATCH] D30768: [PATCH][VFS] Ignore broken symlinks in the directory iterator.

2017-03-09 Thread Juergen Ributzka via Phabricator via cfe-commits
ributzka added inline comments. Comment at: lib/Basic/VirtualFileSystem.cpp:1873 vfs::directory_iterator I = FS->dir_begin(State->top()->getName(), EC); -if (EC) +if (EC && EC != std::errc::no_such_file_or_directory) return *this; bruno wrote:

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

2017-03-09 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson accepted this revision. tejohnson added a comment. This revision is now accepted and ready to land. LGTM with the format fix I pointed out. Comment at: lib/CodeGen/CodeGenAction.cpp:186 +} else { + Err = Linker::linkModules(*getModule(), std::move(LM.

[PATCH] D30593: Add correct "-isystem"/"-isysroot" warning handling to static analysis' BugReporter.

2017-03-09 Thread Kevin Marshall via Phabricator via cfe-commits
kmarshall added a comment. OK. I'll make bugs for the false positives I'm confident about. Repository: rL LLVM https://reviews.llvm.org/D30593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D30733: [Driver] Add arch-specific rpath for libc++

2017-03-09 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama added inline comments. Comment at: lib/Driver/ToolChain.cpp:652 +// libc++ may be installed per arch. +addArchSpecificRPath(*this, Args, CmdArgs); break; `addArchSpecificRPath` is a static function in Tools.cpp and isn't visible here. https:

[PATCH] D30798: [analyzer] Turn suppress-c++-stdlib on by default

2017-03-09 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna created this revision. We have several reports of false positives coming from libc++. For example, there are reports of false positives in std::regex, std::wcout, and also a bunch of issues are reported in https://reviews.llvm.org/D30593. In many cases, the analyzer trips over the com

[PATCH] D30768: [PATCH][VFS] Ignore broken symlinks in the directory iterator.

2017-03-09 Thread Juergen Ributzka via Phabricator via cfe-commits
ributzka added inline comments. Comment at: include/clang/Basic/VirtualFileSystem.h:164 EC = Impl->increment(); -if (EC || !Impl->CurrentEntry.isStatusKnown()) +if (!Impl->CurrentEntry.isStatusKnown()) Impl.reset(); // Normalize the end iterator to Impl == nul

[PATCH] D30593: Add correct "-isystem"/"-isysroot" warning handling to static analysis' BugReporter.

2017-03-09 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. @kmarshall, We are going to turn this off by default, see https://reviews.llvm.org/D30798. Please, do file a bug that lists all the issues you are seeing and desirably instructions on how to reproduce. (Please, list even the cases you are not 100% sure are false posi

[PATCH] D30733: [Driver] Add arch-specific rpath for libc++

2017-03-09 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs requested changes to this revision. jroelofs added a comment. This revision now requires changes to proceed. As I said on https://reviews.llvm.org/D30214, it is inappropriate to be installing libc++ in the resource directory... please **do not** do that. https://reviews.llvm.org/D30733

[PATCH] D30798: [analyzer] Turn suppress-c++-stdlib on by default

2017-03-09 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. LGTM, https://reviews.llvm.org/D30798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D30798: [analyzer] Turn suppress-c++-stdlib on by default

2017-03-09 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297429: [analyzer] Turn suppress-c++-stdlib on by default (authored by zaks). Changed prior to commit: https://reviews.llvm.org/D30798?vs=91236&id=91238#toc Repository: rL LLVM https://reviews.llvm.

r297429 - [analyzer] Turn suppress-c++-stdlib on by default

2017-03-09 Thread Anna Zaks via cfe-commits
Author: zaks Date: Thu Mar 9 18:33:19 2017 New Revision: 297429 URL: http://llvm.org/viewvc/llvm-project?rev=297429&view=rev Log: [analyzer] Turn suppress-c++-stdlib on by default We have several reports of false positives coming from libc++. For example, there are reports of false positives in

[PATCH] D30798: [analyzer] Turn suppress-c++-stdlib on by default

2017-03-09 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. I've committed the change, but would very much appreciate community feedback here if if there is any! Repository: rL LLVM https://reviews.llvm.org/D30798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

r297436 - [AMDGPU] Add builtin functions readlane ds_permute mov_dpp

2017-03-09 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Thu Mar 9 19:30:46 2017 New Revision: 297436 URL: http://llvm.org/viewvc/llvm-project?rev=297436&view=rev Log: [AMDGPU] Add builtin functions readlane ds_permute mov_dpp Differential Revision: https://reviews.llvm.org/D30551 Modified: cfe/trunk/include/clang/Basic/Built

[PATCH] D30551: [AMDGPU] Add builtin functions readlane ds_permute mov_dpp

2017-03-09 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297436: [AMDGPU] Add builtin functions readlane ds_permute mov_dpp (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D30551?vs=90520&id=91243#toc Repository: rL LLVM https://re

[PATCH] D12689: [libc++][static linking] std streams are not initialized prior to their use in static object constructors

2017-03-09 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D12689#515120, @eastig wrote: > The issue is reported as: > https://llvm.org/bugs/show_bug.cgi?id=28954 We do need to fix this bug; I posted to the PR so we can discuss approach there. https://reviews.llvm.org/D12689 ___

[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

2017-03-09 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 91246. malaperle-ericsson added a comment. Remove ifdexf https://reviews.llvm.org/D30675 Files: clangd/ClangDMain.cpp Index: clangd/ClangDMain.cpp === --- clangd/ClangDMain.cpp +

[PATCH] D30762: [ubsan] Add a nullability sanitizer

2017-03-09 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. One question for Anna (inline). I will update the diff with the documentation/code comments/renaming fixes once I hear back. Thanks again for the comments! Comment at: docs/UndefinedBehaviorSanitizer.rst:101 + ``-fsanitize=nullability-assign``, and th

[PATCH] D30776: [coroutines] Fix diagnostics depending on the first coroutine statement.

2017-03-09 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov requested changes to this revision. GorNishanov added a comment. This revision now requires changes to proceed. One thought I had with respect to removing array of statements: We need to check during Sema that await_ready returns a type contextually convertible to bool and await_susp

[PATCH] D30776: [coroutines] Fix diagnostics depending on the first coroutine statement.

2017-03-09 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. Good to know. I'll update this tomorrow. https://reviews.llvm.org/D30776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30806: [nonnull] Teach Clang to attach the nonnull LLVM attribute to declarations and calls instead of just definitions, and then teach it to *not* attach such attributes even if the source c

2017-03-09 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc created this revision. Herald added a subscriber: mcrosier. This follows the design direction discussed on cfe-dev here: http://lists.llvm.org/pipermail/cfe-dev/2017-January/052066.html The idea is that for C standard library builtins, even if the library vendor chooses to annotate thei

[PATCH] D30776: [coroutines] Fix diagnostics depending on the first coroutine statement.

2017-03-09 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added a comment. In https://reviews.llvm.org/D30776#697233, @EricWF wrote: > Good to know. I'll update this tomorrow. Well, that is just the thought. Possibly we can check for the types of await_ready and await_suspend in BuildResolvedCoawaitExpr. Then, we don't have to keep the v

[PATCH] D30762: [ubsan] Add a nullability sanitizer

2017-03-09 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added inline comments. Comment at: docs/UndefinedBehaviorSanitizer.rst:101 + ``-fsanitize=nullability-assign``, and the argument check with + ``-fsanitize=nullability-arg``. While violating nullability rules does + not result in undefined behavior, it is oft

[PATCH] D30809: [coroutines] Add codegen for await and yield expressions

2017-03-09 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov created this revision. Herald added a subscriber: mehdi_amini. Emit suspend expression which roughly looks like: auto && x = CommonExpr(); if (!x.await_ready()) { llvm_coro_save(); x.await_suspend(...); (*) llvm_coro_suspend(); (**) } x.await_resume(); wher

LLVM buildmaster will be restarted in the nearest hour

2017-03-09 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted in the nearest hour. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30810: Preserve vec3 type.

2017-03-09 Thread JinGu Kang via Phabricator via cfe-commits
jaykang10 created this revision. Preserve vec3 type with CodeGen option. https://reviews.llvm.org/D30810 Files: include/clang/Driver/CC1Options.td include/clang/Frontend/CodeGenOptions.def lib/CodeGen/CGExpr.cpp lib/Frontend/CompilerInvocation.cpp test/CodeGenOpenCL/preserve_vec3.cl

[PATCH] D30733: [Driver] Add arch-specific rpath for libc++

2017-03-09 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld marked an inline comment as done. Hahnfeld added a comment. In https://reviews.llvm.org/D30733#697108, @jroelofs wrote: > As I said on https://reviews.llvm.org/D30214, it is inappropriate to be > installing libc++ in the resource directory... please **do not** do that. Can you give re