[PATCH] D34972: [CodeGen] Propagate dllexport to thunks

2017-07-03 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai created this revision. Under Windows Itanium, we need to export virtual and non-virtual thunks if the functions being thunked are exported. These thunks would previously inherit their dllexport attribute from the declaration, but r298330 changed declarations to not have dllexport

r307052 - [CodeGen] Check key function for typeinfo import

2017-07-03 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Mon Jul 3 18:02:19 2017 New Revision: 307052 URL: http://llvm.org/viewvc/llvm-project?rev=307052=rev Log: [CodeGen] Check key function for typeinfo import If the imported class does not have a key function, we should emit its typeinfo locally instead of attempting to

[PATCH] D34568: [Sema] Make BreakContinueFinder handle nested loops.

2017-07-03 Thread Eli Friedman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL307051: [Sema] Make BreakContinueFinder handle nested loops. (authored by efriedma). Changed prior to commit: https://reviews.llvm.org/D34568?vs=103761=105128#toc Repository: rL LLVM

r307051 - [Sema] Make BreakContinueFinder handle nested loops.

2017-07-03 Thread Eli Friedman via cfe-commits
Author: efriedma Date: Mon Jul 3 17:52:24 2017 New Revision: 307051 URL: http://llvm.org/viewvc/llvm-project?rev=307051=rev Log: [Sema] Make BreakContinueFinder handle nested loops. We don't care about break or continue statements that aren't associated with the current loop, so make sure the

[PATCH] D34937: Suppressing Reference Counting Diagnostics for Functions Containing 'rc_ownership_trusted_implementation' Annotate Attribute

2017-07-03 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. This looks good! You will need to add tests though. I would suggest adding them to "test/Analysis/retain-release-inline.m" Comment at: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp:1898 +bool +isAnnotatedToSkipDiagnostics(const LocationContext

[PATCH] D34770: [Bash-autocompletion] Auto complete cc1 options if -cc1 is specified

2017-07-03 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd accepted this revision. compnerd added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Driver/Driver.cpp:1236 +// We want to show cc1-only options only when clang is invoked as "clang -cc1". +// When clang is invoked as

[PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-07-03 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL307045: [clang] Implement -Wcast-qual for C++ (authored by lebedevri). Changed prior to commit: https://reviews.llvm.org/D33102?vs=105103=105108#toc Repository: rL LLVM

r307045 - [clang] Implement -Wcast-qual for C++

2017-07-03 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Jul 3 10:59:22 2017 New Revision: 307045 URL: http://llvm.org/viewvc/llvm-project?rev=307045=rev Log: [clang] Implement -Wcast-qual for C++ Summary: This way, the behavior of that warning flag more closely resembles that of GCC. Do note that there is at least one

[PATCH] D34329: [clang-diff] Initial implementation.

2017-07-03 Thread Johannes Altmanninger via Phabricator via cfe-commits
johannes added a comment. In https://reviews.llvm.org/D34329#798377, @arphaman wrote: > @johannes > Are you planning to work on integration with the `StmtDataCollector` in this > patch or would you prefer to follow-up with additional patches? Later would be better

[PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-07-03 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 105103. lebedev.ri added a comment. Rebased before commit. Repository: rL LLVM https://reviews.llvm.org/D33102 Files: docs/ReleaseNotes.rst lib/Sema/SemaCast.cpp test/Sema/warn-cast-qual.c test/SemaCXX/warn-cast-qual.cpp Index:

[PATCH] D34932: [clang-tidy] Resolve cppcoreguidelines-pro-type-member-init false positive

2017-07-03 Thread Jonas Devlieghere via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL307040: [clang-tidy] Resolve cppcoreguidelines-pro-type-member-init false positive (authored by JDevlieghere). Changed prior to commit: https://reviews.llvm.org/D34932?vs=105023=105102#toc

[clang-tools-extra] r307040 - [clang-tidy] Resolve cppcoreguidelines-pro-type-member-init false positive

2017-07-03 Thread Jonas Devlieghere via cfe-commits
Author: jdevlieghere Date: Mon Jul 3 09:46:46 2017 New Revision: 307040 URL: http://llvm.org/viewvc/llvm-project?rev=307040=rev Log: [clang-tidy] Resolve cppcoreguidelines-pro-type-member-init false positive Summary: https://bugs.llvm.org/show_bug.cgi?id=33557 Reviewers: Eugene.Zelenko,

[PATCH] D34329: [clang-diff] Initial implementation.

2017-07-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. @johannes Are you planning to work on integration with the `StmtDataCollector` in this patch or would you prefer to follow-up with additional patches? https://reviews.llvm.org/D34329 ___ cfe-commits mailing list

[PATCH] D34955: [Basic] Detect Git submodule version in CMake

2017-07-03 Thread Jordan Rose via Phabricator via cfe-commits
jordan_rose requested changes to this revision. jordan_rose added a comment. This revision now requires changes to proceed. If I'm remembering correctly from when I set this up, this isn't just about detecting which version control system you're using; it's about finding a file //that will

[PATCH] D34948: [OpenCL] Generalise err_opencl_enqueue_kernel_expected_type to be used with other builtins

2017-07-03 Thread Joey Gouly via Phabricator via cfe-commits
joey added a comment. In https://reviews.llvm.org/D34948#798332, @bader wrote: > LGTM. > Do you have another built-in in mind which can use this diagnostic message? > If so, it would make sense to re-use it in the same patch. This is split off from https://reviews.llvm.org/D33945, which I

[PATCH] D34948: [OpenCL] Generalise err_opencl_enqueue_kernel_expected_type to be used with other builtins

2017-07-03 Thread Alexey Bader via Phabricator via cfe-commits
bader accepted this revision. bader added a comment. This revision is now accepted and ready to land. LGTM. Do you have another built-in in mind which can use this diagnostic message? If so, it would make sense to re-use it in the same patch. https://reviews.llvm.org/D34948

[PATCH] D34955: [Basic] Detect Git submodule version in CMake

2017-07-03 Thread Brian Gesiak via Phabricator via cfe-commits
modocache created this revision. Herald added a subscriber: mgorny. When searching for Git version control information, libBasic's CMake checks for the path '.git/logs/HEAD'. However, when LLVM is included as a Git submodule, this path does not exist. Instead, it contains a '.git' file with the

[PATCH] D34949: [refactor][rename] Use a single base class for class that finds a declaration at location and for class that searches for all occurrences of a specific declaration

2017-07-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 105084. arphaman added a comment. Small fixup. Repository: rL LLVM https://reviews.llvm.org/D34949 Files: include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h include/clang/Tooling/Refactoring/Rename/USRFinder.h

r307034 - Revert "clang-format: [JS] space between pseudo keywords and template literals."

2017-07-03 Thread Martin Probst via cfe-commits
Author: mprobst Date: Mon Jul 3 08:31:28 2017 New Revision: 307034 URL: http://llvm.org/viewvc/llvm-project?rev=307034=rev Log: Revert "clang-format: [JS] space between pseudo keywords and template literals." This reverts commit 71d3b5cd916106005ef23467e3f6c7fbca7bc499. Modified:

[PATCH] D34949: [refactor][rename] Use a single base class for class that finds a declaration at location and for class that searches for all occurrences of a specific declaration

2017-07-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. This is meant to be NFC btw. Repository: rL LLVM https://reviews.llvm.org/D34949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D34949: [refactor][rename] Use a single base class for class that finds a declaration at location and for class that searches for all occurrences of a specific declaration

2017-07-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. - Use single `RecursiveSymbolVisitor` class for both `USRLocFindingASTVisitor` and `NamedDeclOccurrenceFindingVisitor` to avoid duplicate visiting code. - Traverse nested name specifier locs in the new class and remove the separate matching step. - New class

[PATCH] D34404: [Clang-Tidy] Preserve Message, FileOffset, FilePath in Clang-Tidy YAML output

2017-07-03 Thread Vladimir Plyashkun via Phabricator via cfe-commits
vladimir.plyashkun updated this revision to Diff 105078. vladimir.plyashkun added a comment. Herald added a subscriber: JDevlieghere. - fixed `No newline at end of file` problem - provided test-case to check that diagnostics with no fixes will be applied correctly Repository: rL LLVM

[PATCH] D34441: [clang-format] Support text proto messages

2017-07-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL307029: [clang-format] Support text proto messages (authored by krasimir). Repository: rL LLVM https://reviews.llvm.org/D34441 Files: cfe/trunk/include/clang/Format/Format.h

r307029 - [clang-format] Support text proto messages

2017-07-03 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Mon Jul 3 08:05:14 2017 New Revision: 307029 URL: http://llvm.org/viewvc/llvm-project?rev=307029=rev Log: [clang-format] Support text proto messages Summary: This patch adds support for textual protocol buffer messages. Reviewers: djasper Reviewed By: djasper

[PATCH] D34932: [clang-tidy] Resolve cppcoreguidelines-pro-type-member-init false positive

2017-07-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM! Repository: rL LLVM https://reviews.llvm.org/D34932 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D34932: [clang-tidy] Resolve cppcoreguidelines-pro-type-member-init false positive

2017-07-03 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. LGTM, thanks. Comment at: clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:452 if (Ctor) { +if(Ctor->isImplicit()) + return;

[PATCH] D34948: [OpenCL] Generalise err_opencl_enqueue_kernel_expected_type to be used with other builtins

2017-07-03 Thread Joey Gouly via Phabricator via cfe-commits
joey created this revision. Herald added subscribers: Anastasia, yaxunl. Refactor err_opencl_enqueue_kernel_expected_type so that other builtins can use the same diagnostic. https://reviews.llvm.org/D34948 Files: Sema/SemaChecking.cpp SemaOpenCL/cl20-device-side-enqueue.cl

[clang-tools-extra] r307025 - [clangd] Add -ffreestanding on VFS tests.

2017-07-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Jul 3 07:46:03 2017 New Revision: 307025 URL: http://llvm.org/viewvc/llvm-project?rev=307025=rev Log: [clangd] Add -ffreestanding on VFS tests. Summary: They don't provide proper gcc installations and may fail on implicit include. Reviewers: klimek, krasimir,

[PATCH] D34936: [clangd] Add -ffreestanding on VFS tests.

2017-07-03 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL307025: [clangd] Add -ffreestanding on VFS tests. (authored by ibiryukov). Repository: rL LLVM https://reviews.llvm.org/D34936 Files: clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp

[PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-07-03 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Will land this shortly.. Repository: rL LLVM https://reviews.llvm.org/D33102 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D34937: Suppressing Reference Counting Diagnostics for Functions Containing 'rc_ownership_trusted_implementation' Annotate Attribute

2017-07-03 Thread Malhar Thakkar via Phabricator via cfe-commits
malhar1995 created this revision. As part of my Google Summer of Code project, I am working on adding support for Integer Set Library (ISL) annotations to the current RetainCountChecker. Hence, to begin with, Dr. Devin Coughlin gave me a task to suppress reference counting diagnostics for all

[PATCH] D34886: Add a fixit for -Wobjc-protocol-property-synthesis

2017-07-03 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. arphaman marked an inline comment as done. Closed by commit rL307014: Add a fixit for -Wobjc-protocol-property-synthesis (authored by arphaman). Changed prior to commit:

[PATCH] D34441: [clang-format] Support text proto messages

2017-07-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:107 + if (Style.Language == FormatStyle::LK_TextProto) { +State.Stack.back().AvoidBinPacking = true; djasper wrote: > Do we need to set this explicitly here? Is it not enough

[PATCH] D34329: [clang-diff] Initial implementation.

2017-07-03 Thread Johannes Altmanninger via Phabricator via cfe-commits
johannes updated this revision to Diff 105059. johannes edited the summary of this revision. https://reviews.llvm.org/D34329 Files: include/clang/Tooling/ASTDiff/ASTDiff.h include/clang/Tooling/ASTDiff/ASTDiffInternal.h lib/Tooling/ASTDiff/ASTDiff.cpp lib/Tooling/ASTDiff/CMakeLists.txt

[PATCH] D34912: Handle cases where the value is too large to fit into the underlying type.

2017-07-03 Thread Axel Naumann via Phabricator via cfe-commits
karies added a comment. Two comments: - I think the part `Val.getBitWidth() == 64` likely needs rewording, although I don't know how - I can show the motivation, not sure whether that qualifies as a test case: $ echo 'template struct S{}; S<(unsigned long long)-1> s = 42;' | clang++

[PATCH] D30691: [analyzer] Support for naive cross translational unit analysis

2017-07-03 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun updated this revision to Diff 105053. xazax.hun added a comment. - Patch scan-build instead of using custom scripts - Rebase patch based on the proposed LibTooling CTU code https://reviews.llvm.org/D30691 Files: include/clang/StaticAnalyzer/Core/AnalyzerOptions.h

[PATCH] D34441: [clang-format] Support text proto messages

2017-07-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 105044. krasimir marked 3 inline comments as done. krasimir added a comment. - Address review comments https://reviews.llvm.org/D34441 Files: include/clang/Format/Format.h lib/Format/ContinuationIndenter.cpp lib/Format/Format.cpp

[PATCH] D34936: [clangd] Add -ffreestanding on VFS tests.

2017-07-03 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Implicit `stdc-predef.h` include is not yet there, but will appear after https://reviews.llvm.org/D34158 has landed. https://reviews.llvm.org/D34936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34886: Add a fixit for -Wobjc-protocol-property-synthesis

2017-07-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman marked an inline comment as done. arphaman added inline comments. Comment at: include/clang/Sema/Sema.h:3351 + ObjCInterfaceDecl *IDecl, SourceRange AtEnd); + void DefaultSynthesizeProperties(Scope *S, Decl *D, SourceRange AtEnd);

[PATCH] D33644: Add default values for function parameter chunks

2017-07-03 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan updated this revision to Diff 105045. yvvan added a comment. Add tests, append tests with default values. Move all default value handling to GetDefaultValueString https://reviews.llvm.org/D33644 Files: lib/Sema/SemaCodeComplete.cpp test/CodeCompletion/functions.cpp

[PATCH] D34158: to support gcc 4.8 (and newer) compatibility on Linux, preinclude

2017-07-03 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Here's a patch to fix ClangdTests: https://reviews.llvm.org/D34936 We should probably land it before your patch to avoid ClangdTests failures between those llvm and clang-tools-extra revisions. Repository: rL LLVM https://reviews.llvm.org/D34158

[PATCH] D34158: to support gcc 4.8 (and newer) compatibility on Linux, preinclude

2017-07-03 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. In https://reviews.llvm.org/D34158#797170, @mibintc wrote: > The other test that fails is my own new test! It fails because I don't know > how to set it up so the test thinks it has a gcc toolchain with version > > 4.8. I tried using gcc-toolchain set to various other

[PATCH] D34937: Suppressing Reference Counting Diagnostics for Functions Containing 'rc_ownership_trusted_implementation' Annotate Attribute

2017-07-03 Thread Malhar Thakkar via Phabricator via cfe-commits
malhar1995 updated this revision to Diff 105043. Repository: rL LLVM https://reviews.llvm.org/D34937 Files: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp Index: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp === ---

[PATCH] D34936: [clangd] Add -ffreestanding on VFS tests.

2017-07-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir accepted this revision. krasimir added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D34936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34936: [clangd] Add -ffreestanding on VFS tests.

2017-07-03 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. They don't provide proper gcc installations and may fail on implicit include. https://reviews.llvm.org/D34936 Files: unittests/clangd/ClangdTests.cpp Index: unittests/clangd/ClangdTests.cpp

[PATCH] D34810: [Sema] -Wcomma should not warn for expressions that return void

2017-07-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman abandoned this revision. arphaman added a comment. Abandoning. The current behaviour makes sense. Thanks for the responses! Repository: rL LLVM https://reviews.llvm.org/D34810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r307023 - clang-format: [JS] space between pseudo keywords and template literals.

2017-07-03 Thread Martin Probst via cfe-commits
Author: mprobst Date: Mon Jul 3 07:29:13 2017 New Revision: 307023 URL: http://llvm.org/viewvc/llvm-project?rev=307023=rev Log: clang-format: [JS] space between pseudo keywords and template literals. Summary: Before: yield`foo`; After: yield `foo`; Reviewers: djasper Subscribers:

r307016 - [index] Remove 'implicit' role for message sends in implicit ObjC

2017-07-03 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jul 3 03:34:46 2017 New Revision: 307016 URL: http://llvm.org/viewvc/llvm-project?rev=307016=rev Log: [index] Remove 'implicit' role for message sends in implicit ObjC property references rdar://32375673 Modified: cfe/trunk/lib/Index/IndexBody.cpp

r307014 - Add a fixit for -Wobjc-protocol-property-synthesis

2017-07-03 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jul 3 03:12:24 2017 New Revision: 307014 URL: http://llvm.org/viewvc/llvm-project?rev=307014=rev Log: Add a fixit for -Wobjc-protocol-property-synthesis rdar://32132756 Differential Revision: https://reviews.llvm.org/D34886 Added:

r307007 - fix trivial typos in comments; NFC

2017-07-03 Thread Hiroshi Inoue via cfe-commits
Author: inouehrs Date: Mon Jul 3 01:49:44 2017 New Revision: 307007 URL: http://llvm.org/viewvc/llvm-project?rev=307007=rev Log: fix trivial typos in comments; NFC Modified: cfe/trunk/bindings/python/clang/cindex.py cfe/trunk/lib/CodeGen/CGBlocks.cpp cfe/trunk/lib/CodeGen/CGCall.cpp