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

2017-03-11 Thread David Majnemer via Phabricator via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/CGCoroutine.cpp:85 + unsigned No = 0; + const char* AwaitKindStr = 0; + switch (Kind) { I'd use a StringRef here. https://reviews.llvm.org/D30809 ___ cfe-c

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

2017-03-11 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov marked 4 inline comments as done. GorNishanov added inline comments. Comment at: lib/CodeGen/CGCoroutine.cpp:32 struct CGCoroData { + AwaitKind CurrentAwaitKind = AwaitKind::Init; majnemer wrote: > Shouldn't this struct be in an anonymous namespac

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

2017-03-11 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov updated this revision to Diff 91486. GorNishanov added a comment. Addressed review feedback - clang-format three functions in CGExprScalar.cpp - got rid of AwaitKindStr array and select appropriate string in the switch statement in buildAwaitKindPrefix https://reviews.llvm.org/D308

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

2017-03-11 Thread David Majnemer via Phabricator via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/CGCoroutine.cpp:26 +enum class AwaitKind { Init, Normal, Yield, Final }; +char const *AwaitKindStr[] = {"init", "await", "yield", "final"}; +} I'd move this into buildSuspendSuffixStr. Com

[PATCH] D30841: [clang-tidy] readability-misleading-indentation: fix chained if

2017-03-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D30841#698634, @fgross wrote: > I just assumed it would traverse in the "right" way, is there any > documentation about AST / matcher traversal? I do not kn

[PATCH] D29772: Create msbuild only when using MSVC

2017-03-11 Thread Mateusz Mikuła via Phabricator via cfe-commits
mati865 added a subscriber: asl. mati865 added a comment. @asl it is still not commited. Something went wrong? Repository: rL LLVM https://reviews.llvm.org/D29772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

Re: [cfe-dev] Disable fms-extensions?

2017-03-11 Thread Nico Weber via cfe-commits
In addition to that: If I remember correctly, -fms-extensions is only enabled if your triple's OS is win32 and your triple's environment is MSVC. It's not enabled when targeting MinGW for example. The reason it's enabled with an foo-windows-msvc triple is that it's required to parse the system's he

Re: Disable fms-extensions?

2017-03-11 Thread Andrey Bokhanko via cfe-commits
Hi Zahira, -fms-extensions can obviously be disabled with -fno-ms-extensions. This won't necessarily mirrors /Za exactly, though -- as according to MS, /Za disables *all* C++ extensions, not only MS-specific ones. I doubt anyone tried to implement a mode that mirrors /Za exactly. Yours, Andrey --

[PATCH] D30848: Implement DR 373 "Lookup on namespace qualified name in using-directive"

2017-03-11 Thread Richard Smith via Phabricator via cfe-commits
rsmith added a comment. Functionally, this looks good. How do the diagnostics look in the case where lookup only finds a non-namespace name? Eg, struct A { struct B {}; }; namespace X = A::B; https://reviews.llvm.org/D30848 ___ cfe-commits mai

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-03-11 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D29221#688697, @hans wrote: > >>> My only nit is that I'd prefer "clang-format" instead of "ClangFormat". > >>> > >>> Manuel: the menu options under Tools currently say "Clang Format > >>> {Selection,Document}". What do you think about usin

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

2017-03-11 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added a comment. + @majnemer who is most familiar with LLVM Coroutines representation. https://reviews.llvm.org/D30809 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2017-03-11 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. Correct, this will suppress some valid warnings that occur due to user errors and valid warnings coming from the standard library. However, I believe this is the right choice right now since we know that the analyzer is not currently effective in understanding invaria

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

2017-03-11 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. Thank you! 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/cfe-commits

[PATCH] D30841: [clang-tidy] readability-misleading-indentation: fix chained if

2017-03-11 Thread Florian Gross via Phabricator via cfe-commits
fgross updated this revision to Diff 91473. fgross added a comment. Replaced std::map with llvm::DenseMap, added comment about traversal. I just assumed it would traverse in the "right" way, is there any documentation about AST / matcher traversal? https://reviews.llvm.org/D30841 Files: cla

[PATCH] D30859: [coroutines] Implement unhandled_exception changes.

2017-03-11 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/D30859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[PATCH] D30854: [ASTMatchers] Add ObjC matchers for fundamental decls

2017-03-11 Thread Dave Lee via Phabricator via cfe-commits
kastiglione added a comment. Thanks @malcolm.parsons. I don't have commit access, will you be able to commit this? https://reviews.llvm.org/D30854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D30859: [coroutines] Implement unhandled_exception changes.

2017-03-11 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 91468. EricWF added a comment. - Remove unused diagnostics about `set_exception` and `current_exception`. https://reviews.llvm.org/D30859 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaCoroutine.c

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

2017-03-11 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode updated this revision to Diff 91466. idlecode added a comment. Addressed Alexander's comments https://reviews.llvm.org/D30748 Files: lib/Lex/Lexer.cpp unittests/Lex/LexerTest.cpp Index: unittests/Lex/LexerTest.cpp ===

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

2017-03-11 Thread Paweł Żukowski via Phabricator via cfe-commits
idlecode marked 3 inline comments as done. idlecode added inline comments. Comment at: lib/Lex/Lexer.cpp:457 +static bool isNewLineEscaped(const char *BufferStart, const char *Str) { + while (Str > BufferStart && isWhitespace(*Str)) +--Str; alexfh wrote: > W

[PATCH] D30863: [clang-format] make docs/tools/{dump_format_style.py, dump_ast_matchers.py} flake8 compliant

2017-03-11 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru created this revision. no functional changes https://reviews.llvm.org/D30863 Files: docs/tools/dump_ast_matchers.py docs/tools/dump_format_style.py Index: docs/tools/dump_format_style.py === --- docs/tools/dump

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

2017-03-11 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru added inline comments. Comment at: docs/tools/dump_format_style.py:67 def __str__(self): -return '* ``%s`` %s' % (self.name, doxygen2rst(self.comment)) +return '\n* ``%s`` %s' % (self.name, doxygen2rst(self.comment)) This is needed to

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

2017-03-11 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru created this revision. Herald added a subscriber: klimek. https://reviews.llvm.org/D30860 Files: docs/ClangFormatStyleOptions.rst docs/tools/dump_format_style.py include/clang/Format/Format.h Index: include/clang/Format/Format.h =

[PATCH] D30859: [coroutines] Implement unhandled_exception changes.

2017-03-11 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. Herald added a subscriber: mehdi_amini. This patch adopts the recent changes that renamed `set_exception(exception_pointer)` to `unhandled_exception()`. Additionally `unhandled_exception()` is now required, and so an error is emitted when exceptions are enabled but

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

2017-03-11 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: tools/clang-format/git-clang-format:306 +try: +return to_string(bytes.decode('utf-8')) +except AttributeError: # 'str' object has no attribute 'decode'. EricWF wrote: > mgorny wrote: > > EricWF wrote: > >

[PATCH] D30841: [clang-tidy] readability-misleading-indentation: fix chained if

2017-03-11 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. Functionally LGTM! Note that while the traversal of AST Matchers are not defined in general, in this particular case of chained ifs, it is guaranteed that parent nodes will be matched before the child nodes. For this reason I think it is ok to have a state like this.

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

2017-03-11 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 91456. EricWF added a comment. - Rewrite `to_string` for clarities sake. https://reviews.llvm.org/D30773 Files: tools/clang-format/git-clang-format Index: tools/clang-format/git-clang-format

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

2017-03-11 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: tools/clang-format/git-clang-format:306 +try: +return to_string(bytes.decode('utf-8')) +except AttributeError: # 'str' object has no attribute 'decode'. mgorny wrote: > EricWF wrote: > > mgorny wrote: > >

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

2017-03-11 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. I'm sorry, I've completely forgot that the path contains version number. In this case, it indeed probably doesn't make much sense to add rpath for that. https://reviews.llvm.org/D30733 ___ cfe-commits mailing list cfe-commit

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

2017-03-11 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. Installing libc++ along clang makes a lot of sense for non-system compilers. It doesn't imply any version locking like in GCC, i.e. you are still free to install whatever version of libunwind and libc++ you want. I'm somewhat conflicted about this patch. I think it is an