[PATCH] D33852: Enable __declspec(selectany) on linux

2017-08-27 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek marked 9 inline comments as done. Prazek added a comment. Sorry for so late fixes, but it would be good to put it in 5.0 https://reviews.llvm.org/D33852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r311844 - D34059: Get the file name for the symbol from the Module, not the SourceManager.

2017-08-27 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Sun Aug 27 04:27:30 2017 New Revision: 311844 URL: http://llvm.org/viewvc/llvm-project?rev=311844=rev Log: D34059: Get the file name for the symbol from the Module, not the SourceManager. This allows multi-module / incremental compilation environments to have unique

[PATCH] D34059: Get the file name for the symbol from the Module, not the SourceManager.

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev closed this revision. v.g.vassilev added a comment. Landed in r311844. https://reviews.llvm.org/D34059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D36820: [Bash-autocompletion] Add support for -std=

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev accepted this revision. v.g.vassilev added a comment. LGTM +ping! https://reviews.llvm.org/D36820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r311846 - ClangCodeGenTests: Update libdeps.

2017-08-27 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Sun Aug 27 04:46:05 2017 New Revision: 311846 URL: http://llvm.org/viewvc/llvm-project?rev=311846=rev Log: ClangCodeGenTests: Update libdeps. Modified: cfe/trunk/unittests/CodeGen/CMakeLists.txt Modified: cfe/trunk/unittests/CodeGen/CMakeLists.txt URL:

[PATCH] D37192: [clang-format] Add support for generic Obj-C categories

2017-08-27 Thread Daniel Martín via Phabricator via cfe-commits
danielmartin created this revision. Herald added a subscriber: klimek. Objective C supports lightweight generics in categories. This patch adds support for that in clang-format. https://reviews.llvm.org/D37192 Files: lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTestObjC.cpp

[PATCH] D37103: [StaticAnalyzer] LoopUnrolling fixes

2017-08-27 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/AnalyzerOptions.cpp:190 + /* Default = */ false); + return shouldUnrollLoops() || explicitlyIncludeLoopExit; } I would rather keep this method

r311845 - Add forgotten file in r311844.

2017-08-27 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Sun Aug 27 04:31:01 2017 New Revision: 311845 URL: http://llvm.org/viewvc/llvm-project?rev=311845=rev Log: Add forgotten file in r311844. Added: cfe/trunk/unittests/CodeGen/IncrementalProcessingTest.cpp Added: cfe/trunk/unittests/CodeGen/IncrementalProcessingTest.cpp

[PATCH] D37101: [clangd] [WIP] Add support for snippet completions

2017-08-27 Thread Raoul Wols via Phabricator via cfe-commits
rwols added a comment. After digging into VSCode, I now think that presenting snippets is the wrong way forward, and I believe the right way is to implement the `signatureHelpProvider` protocol for method/function parameters. See:

[PATCH] D33852: Enable __declspec(selectany) on linux

2017-08-27 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek updated this revision to Diff 112804. Prazek added a comment. Enable it on every platform https://reviews.llvm.org/D33852 Files: include/clang/Basic/Attr.td test/Sema/attr-selectany.c test/SemaCXX/attr-selectany.cpp utils/TableGen/ClangAttrEmitter.cpp Index:

[PATCH] D33852: Enable __declspec(selectany) on linux

2017-08-27 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek updated this revision to Diff 112805. Prazek added a comment. remove empty line https://reviews.llvm.org/D33852 Files: include/clang/Basic/Attr.td test/Sema/attr-selectany.c test/SemaCXX/attr-selectany.cpp Index: test/SemaCXX/attr-selectany.cpp

[PATCH] D34444: Teach codegen to work in incremental processing mode.

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. A version of this landed in r311843. I am keeping in mind this discussion and I'd like to follow up with @rjmccall once I open the more major review item (libInterpreter). https://reviews.llvm.org/D3 ___

[PATCH] D36737: [analyzer] Store design discussions in docs/analyzer for future use.

2017-08-27 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. I think we should have these is .rst format as this is what the rest of the documentation predominantly uses. (Note, the formatting can be very basic, it's the format that I care about.) Otherwise, great to see this addition! https://reviews.llvm.org/D36737

[PATCH] D26764: [compiler-rt] [cmake] Remove i686 target that is duplicate to i386

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny updated this revision to Diff 112807. mgorny added a comment. I'm going to commit this now to see if it helps with the Android buildbot. Updating to the rebased patch that's going to be committed. https://reviews.llvm.org/D26764 Files: cmake/Modules/CompilerRTUtils.cmake

[PATCH] D26764: [compiler-rt] [cmake] Remove i686 target that is duplicate to i386

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL311842: [cmake] Remove i686 target that is duplicate to i386 (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D26764?vs=112807=112808#toc Repository: rL LLVM

[PATCH] D26796: [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. @eugenis, it seems that this broke the Android buildbot. Could you suggest an appropriate course of action? I suppose we either have to fix Android-something to use i386, or keep using i686 for Android. The latter I know how to do but for the former, I have no clue

[PATCH] D26796: [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. The problems: 1. http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-android/builds/2140/steps/annotate/logs/stdio -- purely this change, 2.

[PATCH] D37188: [clang-tools-extra] [cmake] Support running extra clang tool tests without static analyzer

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. Support running the extra clang tool tests when the static analyzer is disabled. Disable the relevant clang-tidy tests and one include-fixer test that require it to work. Previously, the tests were disabled entirely with CLANG_ENABLE_STATIC_ANALYZER being false.

[PATCH] D34444: Teach codegen to work in incremental processing mode.

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev updated this revision to Diff 112812. v.g.vassilev marked an inline comment as done. v.g.vassilev added a comment. std::string& -> llvm::StringRef. https://reviews.llvm.org/D3 Files: include/clang/CodeGen/ModuleBuilder.h lib/CodeGen/ModuleBuilder.cpp Index:

[PATCH] D35450: [analyzer] Support generating and reasoning over more symbolic constraint types

2017-08-27 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/SValBuilder.cpp:364 if (symLHS && symRHS && - (symLHS->computeComplexity() + symRHS->computeComplexity()) < MaxComp) + (symLHS->computeComplexity() + symRHS->computeComplexity()) < MaxComp)

[PATCH] D36555: Move x86-specific sources to x86-specific source lists.

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny resigned from this revision. mgorny added a comment. This revision is now accepted and ready to land. I'm not going to block this but I agree with others that the PPC changes look like they belong in a separate commit. https://reviews.llvm.org/D36555

[PATCH] D37188: [clang-tools-extra] [cmake] Support running extra clang tool tests without static analyzer

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: test/include-fixer/yamldb_plugin.cpp:7 -// CHECK: yamldb_plugin.cpp:3:1: error: unknown type name 'foo'; did you mean 'foo'? -// CHECK: Number FIX-ITs = 1 Differential is showing this a bit weird, all that's changed

[PATCH] D34444: Teach codegen to work in incremental processing mode.

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev updated this revision to Diff 112813. v.g.vassilev added a comment. Type& name -> Type https://reviews.llvm.org/D3 Files: include/clang/CodeGen/ModuleBuilder.h lib/CodeGen/ModuleBuilder.cpp Index: lib/CodeGen/ModuleBuilder.cpp

r311843 - D34444: Teach codegen to work in incremental processing mode.

2017-08-27 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Sun Aug 27 03:58:03 2017 New Revision: 311843 URL: http://llvm.org/viewvc/llvm-project?rev=311843=rev Log: D3: Teach codegen to work in incremental processing mode. When isIncrementalProcessingEnabled is on we might want to produce multiple llvm::Modules. This patch

[PATCH] D34984: Store token literal data in PCH. Avoids disk read on PreProc expansion.

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev updated this revision to Diff 112835. v.g.vassilev added a comment. Add a test case. https://reviews.llvm.org/D34984 Files: include/clang/Serialization/ASTReader.h lib/Serialization/ASTReader.cpp lib/Serialization/ASTWriter.cpp test/PCH/token-literal-data.c Index:

[PATCH] D26796: [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny reopened this revision. mgorny added a comment. This revision is now accepted and ready to land. I have reverted the changes for now to fix Android. Repository: rL LLVM https://reviews.llvm.org/D26796 ___ cfe-commits mailing list

[PATCH] D26764: [compiler-rt] [cmake] Remove i686 target that is duplicate to i386

2017-08-27 Thread Michał Górny via Phabricator via cfe-commits
mgorny reopened this revision. mgorny added a comment. This revision is now accepted and ready to land. I have reverted the changes for now to fix Android. Repository: rL LLVM https://reviews.llvm.org/D26764 ___ cfe-commits mailing list

r311868 - Add test for -Wc++17-compat warning for P0683R1.

2017-08-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Aug 27 17:31:35 2017 New Revision: 311868 URL: http://llvm.org/viewvc/llvm-project?rev=311868=rev Log: Add test for -Wc++17-compat warning for P0683R1. Modified: cfe/trunk/test/SemaCXX/cxx17-compat.cpp Modified: cfe/trunk/test/SemaCXX/cxx17-compat.cpp URL:

r311861 - Revert r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux)

2017-08-27 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Sun Aug 27 13:38:43 2017 New Revision: 311861 URL: http://llvm.org/viewvc/llvm-project?rev=311861=rev Log: Revert r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux) This causes a breakage on the Android build bot. Let's revert it until we figure out

[PATCH] D34992: Emit static constexpr member as available_externally definition

2017-08-27 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. > I'd like to also see a testcase for the situation where we trigger the > emission of a declaration with an available_externally definition and then > find we need to promote it to a "full" definition: Added! Comment at:

r311865 - [clang-diff] Treat CXXCtorInitializer as a node

2017-08-27 Thread Johannes Altmanninger via cfe-commits
Author: krobelus Date: Sun Aug 27 15:52:20 2017 New Revision: 311865 URL: http://llvm.org/viewvc/llvm-project?rev=311865=rev Log: [clang-diff] Treat CXXCtorInitializer as a node Reviewers: arphaman Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D37002

[PATCH] D37005: [clang-diff] Initial implementation of patching

2017-08-27 Thread Johannes Altmanninger via Phabricator via cfe-commits
johannes updated this revision to Diff 112845. johannes retitled this revision from "Add include/clang/Tooling/ASTDiff/ASTPatch.h" to "[clang-diff] Initial implementation of patching". johannes edited the summary of this revision. johannes added a comment. use rewriter to patch a third AST

r311867 - [c++2a] P0683R1: Permit default member initializers for bit-fields.

2017-08-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Aug 27 17:28:14 2017 New Revision: 311867 URL: http://llvm.org/viewvc/llvm-project?rev=311867=rev Log: [c++2a] P0683R1: Permit default member initializers for bit-fields. This would be trivial, except that our in-memory and serialized representations for FieldDecls

[PATCH] D22638: Module: add debug_type to dump debugging messages related to modules being out of date

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. @bruno, what's the fate of this? https://reviews.llvm.org/D22638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r311855 - revert changes from r311851.

2017-08-27 Thread Faisal Vali via cfe-commits
Author: faisalv Date: Sun Aug 27 12:00:08 2017 New Revision: 311855 URL: http://llvm.org/viewvc/llvm-project?rev=311855=rev Log: revert changes from r311851. The right answers here (and how clang needs to be tweaked) require further analysis (ongoing cwg thread). sorry. Modified:

r311858 - CMake: only try to find the Z3 package when `CLANG_ANALYZER_BUILD_Z3` is ON

2017-08-27 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Sun Aug 27 13:24:23 2017 New Revision: 311858 URL: http://llvm.org/viewvc/llvm-project?rev=311858=rev Log: CMake: only try to find the Z3 package when `CLANG_ANALYZER_BUILD_Z3` is ON This avoids the spurious message: Could NOT find Z3 (missing: Z3_LIBRARIES

[PATCH] D34992: Emit static constexpr member as available_externally definition

2017-08-27 Thread Mehdi AMINI via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL311857: Emit static constexpr member as available_externally definition (authored by mehdi_amini). Changed prior to commit: https://reviews.llvm.org/D34992?vs=109694=112836#toc Repository: rL LLVM

r311857 - Emit static constexpr member as available_externally definition

2017-08-27 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Sun Aug 27 13:24:09 2017 New Revision: 311857 URL: http://llvm.org/viewvc/llvm-project?rev=311857=rev Log: Emit static constexpr member as available_externally definition By exposing the constant initializer, the optimizer can fold many of these constructs.

[PATCH] D37104: [libc++] PR34298: Change std::function constructor and move assignment operator SFINAE checks to allow std::function with an incomplete return type

2017-08-27 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. @arphaman Do you mind if I commit my own version of this? Repository: rL LLVM https://reviews.llvm.org/D37104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D37002: [clang-diff] Treat CXXCtorInitializer as a node

2017-08-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL311865: [clang-diff] Treat CXXCtorInitializer as a node (authored by krobelus). Changed prior to commit: https://reviews.llvm.org/D37002?vs=112134=112841#toc Repository: rL LLVM

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

2017-08-27 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/AST/TemplateBase.cpp:64 } else { Out << Val; +// Handle cases where the value is too large to fit into the underlying type If `Val` is `LLONG_MIN`, this will still produce an integer too large for any

[PATCH] D37200: [AST] Traverse CXXOperatorCallExpr in LexicallyOrderedRecursiveASTVisitor

2017-08-27 Thread Johannes Altmanninger via Phabricator via cfe-commits
johannes created this revision. Herald added a subscriber: klimek. This affects overloaded operators, which are represented by a CXXOperatorCallExpr whose first child is always a DeclRefExpr referring to the operator. For infix, postfix and call operators we want the first argument to be

[PATCH] D37201: [clang-diff] Use correct SourceRange for CXXConstructExpr

2017-08-27 Thread Johannes Altmanninger via Phabricator via cfe-commits
johannes created this revision. Herald added a subscriber: klimek. This way the variable name of a declaration is not included https://reviews.llvm.org/D37201 Files: test/Tooling/Inputs/clang-diff-basic-src.cpp test/Tooling/clang-diff-basic.cpp test/Tooling/clang-diff-html.test Index:

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

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. Sorry, undo ping... we have a test case. https://reviews.llvm.org/D34912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. @rsmith ping... https://reviews.llvm.org/D34912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. ping... https://reviews.llvm.org/D34912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D37196: [Clang] Bug 32352 - Provide a way for OptimizationRemarkEmitter::allowExtraAnalysis to check if (specific) remarks are enabled

2017-08-27 Thread Vivek Pandya via Phabricator via cfe-commits
vivekvpandya created this revision. Herald added a subscriber: fhahn. Clang changes related to Bug 32352 - Provide a way for OptimizationRemarkEmitter::allowExtraAnalysis to check if (specific) remarks are enabled https://reviews.llvm.org/D37196 Files: lib/CodeGen/CodeGenAction.cpp

r311854 - Fix two typos in the doc. Patch by kamleshbhalui on github

2017-08-27 Thread Sylvestre Ledru via cfe-commits
Author: sylvestre Date: Sun Aug 27 10:34:06 2017 New Revision: 311854 URL: http://llvm.org/viewvc/llvm-project?rev=311854=rev Log: Fix two typos in the doc. Patch by kamleshbhalui on github Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/trunk/docs/UsersManual.rst URL:

[PATCH] D37103: [StaticAnalyzer] LoopUnrolling fixes

2017-08-27 Thread Peter Szecsi via Phabricator via cfe-commits
szepet updated this revision to Diff 112824. szepet added a comment. Update based on comments. https://reviews.llvm.org/D37103 Files: lib/StaticAnalyzer/Core/AnalysisManager.cpp lib/StaticAnalyzer/Core/ExprEngine.cpp lib/StaticAnalyzer/Core/LoopUnrolling.cpp

[PATCH] D37180: [modules] Add test for using declaration in classes.

2017-08-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev accepted this revision. v.g.vassilev added a comment. This revision is now accepted and ready to land. LGTM! I'd reword the commit message, saying that we intended to add a fast path in `DeclContext::removeDecl` which checks if the decl is hidden to avoid addition in the lookup

r311851 - Don't see through 'using member-declarations' when determining the relation of any potential implicit object expression to the parent class of the member function containing the function cal

2017-08-27 Thread Faisal Vali via cfe-commits
Author: faisalv Date: Sun Aug 27 09:49:47 2017 New Revision: 311851 URL: http://llvm.org/viewvc/llvm-project?rev=311851=rev Log: Don't see through 'using member-declarations' when determining the relation of any potential implicit object expression to the parent class of the member function

[PATCH] D36527: Implemented P0428R2 - Familiar template syntax for generic lambdas

2017-08-27 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/Parse/ParseExprCXX.cpp:638 /// lambda-introducer lambda-declarator[opt] compound-statement +/// lambda-introducer lambda-declarator[opt] +/// compound-statement We generally put

[PATCH] D32788: Fix std::inplace_merge to be stable for all inputs

2017-08-27 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. Note: I suspect that the proposed change to `` fixes the problem, but the new tests don't check that. https://reviews.llvm.org/D32788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D32788: Fix std::inplace_merge to be stable for all inputs

2017-08-27 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. I applied the test change, but not the algorithm change, and the tests passed. https://reviews.llvm.org/D32788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D36336: [X86] Add support for __builtin_cpu_init

2017-08-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL311874: [X86] Add support for __builtin_cpu_init (authored by ctopper). Changed prior to commit: https://reviews.llvm.org/D36336?vs=109800=112851#toc Repository: rL LLVM

[PATCH] D36336: [X86] Add support for __builtin_cpu_init

2017-08-27 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. One inline comment, but go ahead and commit after fixing that up. Comment at: lib/CodeGen/CGBuiltin.cpp:7292 const CallExpr

r311874 - [X86] Add support for __builtin_cpu_init

2017-08-27 Thread Craig Topper via cfe-commits
Author: ctopper Date: Sun Aug 27 22:43:23 2017 New Revision: 311874 URL: http://llvm.org/viewvc/llvm-project?rev=311874=rev Log: [X86] Add support for __builtin_cpu_init This adds builtin_cpu_init which will emit a call to cpu_indicator_init in libgcc or compiler-rt. This is needed to support