[clang-tools-extra] r344033 - [clangd] Mark colon as a safe character when percent-encoding.

2018-10-09 Thread Kadir Cetinkaya via cfe-commits
Author: kadircet Date: Tue Oct 9 03:29:54 2018 New Revision: 344033 URL: http://llvm.org/viewvc/llvm-project?rev=344033&view=rev Log: [clangd] Mark colon as a safe character when percent-encoding. Summary: Also change output of percent-encoding to use upper-case letters. Reviewers: sammccall R

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-09 Thread Alexander Shaposhnikov via Phabricator via cfe-commits
alexshap added a comment. @grimar, this is an interesting observation which I've had on my mind for quite some time as well; a couple of things which I have not double-checked yet - just in case - do both gold and lld completely ignore dwo-related sections ? (did you check that ?), and another

[PATCH] D53019: [clangd] dump xrefs information in dexp tool.

2018-10-09 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53019 Files: clangd/index/dex/dexp/Dexp.cpp Index: clangd/index/dex/dexp/De

[PATCH] D51300: [analyzer][UninitializedObjectChecker] No longer using nonloc::LazyCompoundVal

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 168775. Szelethus added a comment. This revision is now accepted and ready to land. Finally managed to run creduce. I added the test that caused a crash on our server, but as I said, I couldn't replicate it elsewhere. https://reviews.llvm.org/D51300 File

[PATCH] D51300: [analyzer][UninitializedObjectChecker] No longer using nonloc::LazyCompoundVal

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Since a good amount of time passed since this patch was made, I'll re-analyze the LLVM project with this patch rebased on trunk just to be sure that nothing breaks. https://reviews.llvm.org/D51300 ___ cfe-commits mailing

[PATCH] D51429: [AArch64] Return Address Signing B Key Support

2018-10-09 Thread Oliver Stannard via Phabricator via cfe-commits
olista01 added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:1133 + if (Arg *A = Args.getLastArg(OPT_msign_return_address_EQ)) { +const auto SignScopeKey = StringRef(A->getValue()).split('+'); +StringRef SignScope = SignScopeKey.first;

[PATCH] D52984: [analyzer] Checker reviewer's checklist

2018-10-09 Thread Henry Wong via Phabricator via cfe-commits
MTC added a comment. Greate idea! If we can enrich this list, it will not only help the reviewer, but also help beginners, like me, avoid some pitfalls when developing a new checker. I agree with NoQ to classify the lists. In addition to the two categories proposed by NoQ, there is another cla

[PATCH] D52727: [clang-tidy] White List Option for performance-unnecessary-value-param, performance-unnecessary-copy-initialization and performance-for-range-copy

2018-10-09 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 168787. baloghadamsoftware added a comment. Updated according to the comments. https://reviews.llvm.org/D52727 Files: clang-tidy/performance/ForRangeCopyCheck.cpp clang-tidy/performance/ForRangeCopyCheck.h clang-tidy/performance/Unnecessary

[PATCH] D52727: [clang-tidy] White List Option for performance-unnecessary-value-param, performance-unnecessary-copy-initialization and performance-for-range-copy

2018-10-09 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware marked 2 inline comments as done. baloghadamsoftware added inline comments. Comment at: clang-tidy/performance/UnnecessaryCopyInitialization.cpp:65-66 has(varDecl(hasLocalStorage(), - hasType(matchers::i

[PATCH] D53019: [clangd] dump xrefs information in dexp tool.

2018-10-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/index/dex/dexp/Dexp.cpp:172 + "filter", cl::init(".*"), + cl::desc("Print all results from files matching this filter."), + }; filter -> regular expression Comment at: clangd/index/

[clang-tools-extra] r344044 - [clangd] fix miscompiling lower_bound call

2018-10-09 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Tue Oct 9 06:24:50 2018 New Revision: 344044 URL: http://llvm.org/viewvc/llvm-project?rev=344044&view=rev Log: [clangd] fix miscompiling lower_bound call Modified: clang-tools-extra/trunk/clangd/index/Index.cpp Modified: clang-tools-extra/trunk/clangd/index/Index.cpp

[clang-tools-extra] r344046 - [clang-tidy] NFC fix warnings from missing braces

2018-10-09 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Tue Oct 9 06:29:31 2018 New Revision: 344046 URL: http://llvm.org/viewvc/llvm-project?rev=344046&view=rev Log: [clang-tidy] NFC fix warnings from missing braces The std::array create multiple StringRef but did not wrap them in braces. Some compilers warned for that. Addin

[PATCH] D52727: [clang-tidy] White List Option for performance-unnecessary-value-param, performance-unnecessary-copy-initialization and performance-for-range-copy

2018-10-09 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/performance/UnnecessaryCopyInitialization.cpp:65-66 has(varDecl(hasLocalStorage(), - hasType(matchers::isExpensiveToCopy()), + hasTy

[PATCH] D52859: [clang-query] Add option to print matcher expression

2018-10-09 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D52905: CSA: fix accessing GDM data from shared libraries

2018-10-09 Thread Joe Ranieri via Phabricator via cfe-commits
jranieri-grammatech added a comment. In https://reviews.llvm.org/D52905#1257040, @NoQ wrote: > Hmmm, interesting. A checker doesn't usually need to access these specific > static locals, at least not directly. These are usually accessed through > functions in .cpp files that are supposed to be

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-09 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I'm not all that keen on the idea of deprecating `set output` like this -- that command has been around since forever, and scripts outside of our control are likely to rely on it. However, it seems like you should be able to make `set output` accept a comma-delimi

[PATCH] D53023: Prototype OpenCL BIFs using Tablegen

2018-10-09 Thread Joey Gouly via Phabricator via cfe-commits
joey created this revision. joey added reviewers: asavonic, Anastasia. Herald added subscribers: cfe-commits, yaxunl, mgorny. This is the prototype for the approach that was mentioned by Anastasia in http://lists.llvm.org/pipermail/cfe-dev/2018-September/059529.html The tablegen file describes t

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-10-09 Thread Hans Wennborg via Phabricator via cfe-commits
hans added inline comments. Comment at: clang/lib/Sema/SemaDeclCXX.cpp:5599 +bool Sema::isInlineFunctionDLLExportable(const CXXMethodDecl *MD) { + assert(MD->isInlined()); Okay, breaking out this logic is a little better, but I still don't like that we now ha

r344049 - [OPENMP][NVPTX] Support memory coalescing for globalized variables.

2018-10-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Oct 9 07:49:00 2018 New Revision: 344049 URL: http://llvm.org/viewvc/llvm-project?rev=344049&view=rev Log: [OPENMP][NVPTX] Support memory coalescing for globalized variables. Added support for memory coalescing for better performance for globalized variables. From now o

[PATCH] D52703: Allow ifunc resolvers to accept arguments

2018-10-09 Thread James Y Knight via Phabricator via cfe-commits
jyknight accepted this revision. jyknight added a comment. This revision is now accepted and ready to land. Given that there's no technical reason for the compiler to prohibit this (it was just clang trying to diagnose a probable user-error, which turns out to not be as probable as ), this seems

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-09 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. - The scripts will continue to work at least until `set output` is removed, which is not going to happen soon. - A comma-delimited list of options means that if I have `foo, bar, bat` enabled and want to add `bang`, I need to `set output foo, bar, bat, bang`. Or alter

[PATCH] D53019: [clangd] dump xrefs information in dexp tool.

2018-10-09 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 168801. hokein marked 3 inline comments as done. hokein added a comment. Herald added a subscriber: mgorny. Address review comments: - provide query by qualified name (with -name) - add -name support for Lookup. Repository: rCTE Clang Tools Extra https://

[PATCH] D53019: [clangd] dump xrefs information in dexp tool.

2018-10-09 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/index/dex/dexp/Dexp.cpp:204 {"lookup", "Dump symbol details by ID", llvm::make_unique}, +{"refs", "Find references by qualified name", llvm::make_unique}, }; sammccall wrote: > I'm not sure "by qualified

[PATCH] D53019: [clangd] dump xrefs information in dexp tool.

2018-10-09 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 168802. hokein added a comment. Minor fix. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53019 Files: clangd/index/dex/dexp/CMakeLists.txt clangd/index/dex/dexp/Dexp.cpp Index: clangd/index/dex/dexp/Dexp.cpp ===

[PATCH] D53019: [clangd] dump xrefs information in dexp tool.

2018-10-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/index/dex/dexp/Dexp.cpp:65 + clang::clangd::SymbolID SymID; + // We choose the first one if there are overloaded symbols. + Index->fuzzyFind(Request, [&](const Symbol &Sym) { I don't think this is reasonable

[clang-tools-extra] r344054 - [clangd] Fix an accident change in r342999.

2018-10-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Oct 9 08:16:14 2018 New Revision: 344054 URL: http://llvm.org/viewvc/llvm-project?rev=344054&view=rev Log: [clangd] Fix an accident change in r342999. Modified: clang-tools-extra/trunk/clangd/index/YAMLSerialization.cpp Modified: clang-tools-extra/trunk/clangd/index

[clang-tools-extra] r344055 - [clang-move] Fix broken json output.

2018-10-09 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Oct 9 08:17:16 2018 New Revision: 344055 URL: http://llvm.org/viewvc/llvm-project?rev=344055&view=rev Log: [clang-move] Fix broken json output. Modified: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp Modified: clang-tools-extra/trunk/clang-move/tool/Clan

[PATCH] D51809: [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors

2018-10-09 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:7231 +if (ICI) + CSM = getSpecialMember(MD); + jlebar wrote: > LGTM, but perhaps we should use a new variable instead of modifying `CSM` in > case someone adds code beneath this branch?

[PATCH] D53024: [analyzer][www] Add more open projects

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus created this revision. Szelethus added reviewers: NoQ, george.karpenkov, xazax.hun, MTC. Herald added subscribers: cfe-commits, jfb, mikhail.ramalho, a.sidorin, rnkovacs, szepet, whisperity. Added some extra tasks to the open projects. These are the ideas of @NoQ and @george.karpenkov,

[PATCH] D52906: [analyzer] allow plugins built as shared libraries to receive events

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Please reupload with full context (`-U`). Comment at: lib/StaticAnalyzer/Core/Checker.cpp:20 +int ImplicitNullDerefEvent::Tag; + nit: Static fields initialize to 0 without out of line definition. Repository: rC Clang https:

[PATCH] D52906: [analyzer] allow plugins built as shared libraries to receive events

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Core/Checker.cpp:20 +int ImplicitNullDerefEvent::Tag; + Szelethus wrote: > nit: Static fields initialize to 0 without out of line definition. Never mind, you still have to define it. It's been a wh

[PATCH] D52905: [analyzer] fix accessing GDM data from shared libraries

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Please reupload with full context (`-U9`). Repository: rC Clang https://reviews.llvm.org/D52905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r344057 - [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors

2018-10-09 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Tue Oct 9 08:53:14 2018 New Revision: 344057 URL: http://llvm.org/viewvc/llvm-project?rev=344057&view=rev Log: [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors ShouldDeleteSpecialMember is called upon inherited constructors. It calls inferCUDATargetForImp

[PATCH] D51809: [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors

2018-10-09 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL344057: [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors (authored by yaxunl, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.o

[PATCH] D52989: [clang-tidy] Fix handling of parens around new expressions in make_ checks.

2018-10-09 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:246 + ASTContext *Ctx) { + std::function SkipParensParents = + [&](const Expr *E) { hokein wrote: > nit: I'd use `auto` to avoid this long

[PATCH] D52989: [clang-tidy] Fix handling of parens around new expressions in make_ checks.

2018-10-09 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh updated this revision to Diff 168812. alexfh marked 2 inline comments as done. alexfh added a comment. - Remove recursion, use `auto`. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52989 Files: clang-tidy/modernize/MakeSmartPtrCheck.cpp clang-tidy/modernize/MakeSmar

[clang-tools-extra] r344058 - [clang-tidy] Fix handling of parens around new expressions in make_ checks.

2018-10-09 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Oct 9 08:58:18 2018 New Revision: 344058 URL: http://llvm.org/viewvc/llvm-project?rev=344058&view=rev Log: [clang-tidy] Fix handling of parens around new expressions in make_ checks. Summary: Extra parentheses around a new expression result in incorrect code after apply

[PATCH] D52989: [clang-tidy] Fix handling of parens around new expressions in make_ checks.

2018-10-09 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL344058: [clang-tidy] Fix handling of parens around new expressions in make_… (authored by alexfh, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.

[PATCH] D52998: [benchmark] Disable exceptions in Microsoft STL

2018-10-09 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews added a comment. Yes. I understand. At the moment, exception handling flags are generated based on `BENCHMARK_ENABLE_EXCEPTIONS` in `utils/benchmark/CMakeLists.txt` . However, `_HAS_EXCEPTIONS` is not defined based on this (code below). The warnings are a result of this mismatch.

[PATCH] D52905: [analyzer] fix accessing GDM data from shared libraries

2018-10-09 Thread Joe Ranieri via Phabricator via cfe-commits
jranieri-grammatech updated this revision to Diff 168815. jranieri-grammatech added a comment. Added more context. Repository: rC Clang https://reviews.llvm.org/D52905 Files: include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeMap.h include/clang/StaticAnalyzer/Core/PathSensitive/

[PATCH] D51372: FENV_ACCESS support for libm-style constrained intrinsics

2018-10-09 Thread Kevin P. Neal via Phabricator via cfe-commits
kpn updated this revision to Diff 168814. kpn added a comment. Update based on feedback to https://reviews.llvm.org/D52839: add missing AST (de)serialization support. Ping. https://reviews.llvm.org/D51372 Files: include/clang/AST/Expr.h include/clang/AST/ExprCXX.h lib/AST/ASTImporter.cp

[PATCH] D52292: [Sema][OpenCL] Improve diagnostics for not viable overloadable function candidates

2018-10-09 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Thanks! https://reviews.llvm.org/D52292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D51402: [OpenCL] Adding cl_intel_planar_yuv extension

2018-10-09 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D51402#1252619, @sidorovd wrote: > @Anastasia , since there is a problem I described, wouldn't you mind if I > stay with the first iteration of the patch (adding the extension to > OpenCLExtensions.def) and after we'll investigate what is w

[PATCH] D53024: [analyzer][www] Add more open projects

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Mind you, there are some ideas I didn't add to the list -- I just don't know how to put them to words nicely, but I'm on it. Also, a lot of these is outdated, but I joined the project relatively recently, so I'm not sure what's the state on all of them. Repository:

[PATCH] D52969: [analyzer][www] Update alpha_checks.html

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: www/analyzer/alpha_checks.html:352-405 + +alpha.cplusplus.InvalidatedIterator +(C++) +Check for use of invalidated iterators. + + @baloghadamsoftware Is this a good description of your checker(s)? https://reviews.l

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-09 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel created this revision. ymandel added reviewers: aaron.ballman, JonasToth, ioeric. Herald added subscribers: cfe-commits, xazax.hun, mgorny. Adds a new check readability-const-value-return, which checks for functions with a ``const``-qualified return type and recommends removal of the `cons

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-09 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. GCC has -Wignored-qualifiers for long time, so may be better to implement it in Clang? Comment at: clang-tidy/readability/ConstValueReturnCheck.cpp:66 + llvm::Optional Loc = findConstToRemove(Def, Result); + if (!Loc) return; + DiagnosticBuil

[PATCH] D52673: [HIP] Remove disabled irif library

2018-10-09 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 168836. ashi1 added a comment. The device libraries has been updated, and the hip.amdgcn.bc library is now available there. Repository: rC Clang https://reviews.llvm.org/D52673 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/hip-device-libs.hip Ind

[PATCH] D52673: [HIP] Remove disabled irif library

2018-10-09 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Driver/ToolChains/HIP.cpp:85 C.addTempFile(C.getArgs().MakeArgString(TmpName)); CmdArgs.push_back(OutputFileName); SmallString<128> ExecPath(C.getDriver().Dir); maybe we should put hip.amdgcn.bc at the be

[PATCH] D51484: [OpenCL] Add support of cl_intel_device_side_avc_motion_estimation extension

2018-10-09 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. It would be good to test your `CIndex` changes in `test/Index/opencl-types.cl`. Comment at: test/SemaOpenCL/intel-subgroup-avc-ext-types.cl:26 + char4 c4, event_t e, struct st ss) { + intel_sub_group_avc_mce_payload_t payload_mce = 0; // No z

r344070 - PR39231: fix null dereference when diagnosing deduction failure due to

2018-10-09 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 9 11:49:22 2018 New Revision: 344070 URL: http://llvm.org/viewvc/llvm-project?rev=344070&view=rev Log: PR39231: fix null dereference when diagnosing deduction failure due to conflicting values for a non-type pack. Modified: cfe/trunk/lib/Sema/SemaOverload.cpp

[PATCH] D53032: [clangd] Minimal implementation of automatic static index, behind a flag.

2018-10-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ioeric. Herald added subscribers: cfe-commits, jfb, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov, mgorny. See tinyurl.com/clangd-automatic-index for design and goals. Lots of limitations to keep this patch smallish, TODOs everyw

[PATCH] D52990: [MinGW] Allow using ubsan

2018-10-09 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo updated this revision to Diff 168848. mstorsjo added a comment. Relying on a linker pragma in sanitizers and mingw lib name logic in lld. https://reviews.llvm.org/D52990 Files: lib/CodeGen/TargetInfo.cpp test/Driver/fsanitize.c Index: test/Driver/fsanitize.c =

[PATCH] D53013: [MinGW] Support MinGW style library names for default library pragmas

2018-10-09 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. If relying on logic in lld, this one can be discarded. Repository: rC Clang https://reviews.llvm.org/D53013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[PATCH] D53034: [clangd] Remove no-op crash handler, we never set a crash context.

2018-10-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added reviewers: ioeric, ilya-biryukov. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay. I think this was just copied from somewhere with the belief that it actually did some crash handling. Of course the question arises: *sho

Re: [PATCH] D52703: Allow ifunc resolvers to accept arguments

2018-10-09 Thread Eric Christopher via cfe-commits
SGTM. On Tue, Oct 9, 2018, 7:57 AM James Y Knight via Phabricator < revi...@reviews.llvm.org> wrote: > jyknight accepted this revision. > jyknight added a comment. > This revision is now accepted and ready to land. > > Given that there's no technical reason for the compiler to prohibit this > (it

[PATCH] D52673: [HIP] Remove disabled irif library

2018-10-09 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 168855. ashi1 marked an inline comment as done. ashi1 added a comment. I've moved the hip.amdgcn.bc to the top of the libs. Updated test as well. https://reviews.llvm.org/D52673 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/hip-device-libs.hip Index:

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-09 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel updated this revision to Diff 168856. ymandel added a comment. Minor changes addressing comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ConstValueReturnCheck.cpp clang-tidy/readabil

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-09 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel updated this revision to Diff 168857. ymandel marked 2 inline comments as done. ymandel added a comment. Dropped unneeded clang qualifier. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ConstV

[PATCH] D52905: [analyzer] fix accessing GDM data from shared libraries

2018-10-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Cool, thanks! I'll commit. Repository: rC Clang https://reviews.llvm.org/D52905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

[PATCH] D52905: [analyzer] fix accessing GDM data from shared libraries

2018-10-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. > where `isStaticLocal` is defined as: You can send this one as well if you like! It's weird that we don't already have it. Repository: rC Clang https://reviews.llvm.org/D52905 ___ cfe-commits mailing list cfe-commits@lists

[PATCH] D52906: [analyzer] allow plugins built as shared libraries to receive events

2018-10-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Yup, this one looks great as well. I'll commit. Thanks! Repository: rC Clang https://reviews.llvm.org/D52906 ___ cfe-commits mailing list cfe-commit

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-09 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel updated this revision to Diff 168858. ymandel added a comment. Add missing const. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ConstValueReturnCheck.cpp clang-tidy/readability/ConstValueRe

[PATCH] D52905: [analyzer] fix accessing GDM data from shared libraries

2018-10-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D52905#1259249, @NoQ wrote: > > where `isStaticLocal` is defined as: > > You can send this one as well if you like! It's weird that we don't already > have it. Or actually maybe it can be implemented as `allOf(hasStaticStorageDuration(), unless

[PATCH] D52924: Make __builtin_object_size use the EM_IgnoreSideEffects evaluation mode.

2018-10-09 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Thanks, looks like this has been largely redundant since r294800 removed the only interesting thing that `EM_OffsetFold` did. https://reviews.llvm.org/D52924 __

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-09 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel marked 3 inline comments as done. ymandel added a comment. Thanks for the review. I've addressed the comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[PATCH] D52939: ExprConstant: Propagate correct return values from constant evaluation.

2018-10-09 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: clang/lib/AST/ExprConstant.cpp:12-32 // Constant expression evaluation produces four main results: // // * A success/failure flag indicating whether constant folding was successful. //This is the 'bool' return value used by most

[PATCH] D52983: [analyzer] Support Reinitializes attribute in MisusedMovedObject check

2018-10-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D52983#1258499, @xazax.hun wrote: > In https://reviews.llvm.org/D52983#1258466, @NoQ wrote: > > > Yay, these look useful. Is there also an attribute for methods that should > > never be called on a 'moved-from' object? > > > I do not know about su

[PATCH] D53024: [analyzer][www] Add more open projects

2018-10-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Whoa thanks! Will have a closer look again. Comment at: www/analyzer/open_projects.html:33 + +Handle aggregate construction. +Aggregates are object that can be brace-initialized without calling a I'll try to list other constructor k

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-09 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D52857#1258893, @steveire wrote: > - The scripts will continue to work at least until `set output` is removed, > which is not going to happen soon. Certainly, but given that deprecation implies eventual removal, people are still being

[PATCH] D52924: Make __builtin_object_size use the EM_IgnoreSideEffects evaluation mode.

2018-10-09 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv accepted this revision. george.burgess.iv added a comment. Thanks! https://reviews.llvm.org/D52924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53038: [Hexagon] Use GetLinkerPath method instead of hard-coded linker name.

2018-10-09 Thread Sid Manning via Phabricator via cfe-commits
sidneym created this revision. sidneym added reviewers: shankare, ruiu, kparzysz, bcain. Herald added a subscriber: cfe-commits. Use GetLinkerPath method instead of hard-coding linker name. Change should allow -fuse-ld to work on the Hexagon target. Repository: rC Clang https://reviews.llvm.

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-09 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. Hi ymandel, welcome to the LLVM community and thank you very much for working on that check! If you have any questions or other issues don't hesitate to ask ;) Comment at: clang-tidy/readability/ConstValueReturnCheck.cpp:25 + +// Finds the location

[PATCH] D52990: [MinGW] Fix passing a sanitizer lib name as dependent lib

2018-10-09 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D52990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53024: [analyzer][www] Add more open projects

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Thanks! I admit that the difficulty was mostly chosen at random, so that could be brought closer to the actual difficulty of the project. Comment at: www/analyzer/open_projects.html:86-87 +the opposite direction - integers to pointers - are comp

[PATCH] D53042: [X86] Remove FeatureRTM from Skylake processor list

2018-10-09 Thread Thiago Macieira via Phabricator via cfe-commits
thiagomacieira created this revision. thiagomacieira added reviewers: erichkeane, craig.topper. Herald added a subscriber: cfe-commits. craig.topper retitled this revision from "Remove FeatureRTM from Skylake processor list" to "[X86] Remove FeatureRTM from Skylake processor list". There are a LO

[PATCH] D53042: [X86] Remove FeatureRTM from Skylake processor list

2018-10-09 Thread Craig Topper via Phabricator via cfe-commits
craig.topper accepted this revision. craig.topper added a comment. This revision is now accepted and ready to land. LGTM Repository: rC Clang https://reviews.llvm.org/D53042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D53042: [X86] Remove FeatureRTM from Skylake processor list

2018-10-09 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: lib/Basic/Targets/X86.cpp:169 setFeatureEnabledImpl(Features, "mpx", true); if (Kind != CK_SkylakeServer) // SKX inherits all SKL features, except SGX setFeatureEnabledImpl(Features, "sgx", true); > h

[PATCH] D52905: [analyzer] fix accessing GDM data from shared libraries

2018-10-09 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. > there's a way to run clang-tidy over all of clang+llvm automatically cmake should generate compile_commands.json by default, and then you could just point clang-tidy at that. Repository: rC Clang https://reviews.llvm.org/D52905

[PATCH] D52857: Deprecate 'set output foo' API of clang-query

2018-10-09 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. > What's more, given that clang-output has no real documentation to speak of, > how will users even *know* to update their scripts? The release notes will tell them. But your comment also raises a different point: If there is so little clang-query documentation, what

[PATCH] D53046: [Sema] Fix an error-on-valid with friends and templates

2018-10-09 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington created this revision. erik.pilkington added reviewers: rsmith, rjmccall. Herald added a subscriber: dexonsmith. Clang used to error out on the attached testcase, due to multiple definitions of `foo`. The problem is that multiple FunctionTemplateDecl::Common pointers are created

[PATCH] D53046: [Sema] Fix an error-on-valid with friends and templates

2018-10-09 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added inline comments. Comment at: clang/lib/Sema/SemaDecl.cpp:10015 // merged. if (MergeFunctionDecl(NewFD, OldDecl, S, MergeTypeWithPrevious)) { NewFD->setInvalidDecl(); The problem is here, MergeFunctionDecl() needs the injecte

[PATCH] D53048: [Basic] Split out -Wimplicit-int-conversion and -Wimplicit-float-conversion from -Wconversion

2018-10-09 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington created this revision. erik.pilkington added reviewers: rsmith, aaron.ballman. Herald added a subscriber: dexonsmith. These two diagnostics are noisy, so its reasonable for users to opt-out of them when -Wconversion is enabled. Fixes rdar://45058981 Thanks for taking a look! R

[PATCH] D51866: [analyzer][UninitializedObjectChecker] New flag to ignore guarded uninitialized fields

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 168885. Szelethus added a comment. Added new guards as recommended by @xazax.hun https://reviews.llvm.org/D51866 Files: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h lib/StaticAnalyzer/Checkers/UninitializedObject/Uninitialized

[PATCH] D51866: [analyzer][UninitializedObjectChecker] New flag to ignore guarded uninitialized fields

2018-10-09 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp:519 + +if (FirstAccess->getBeginLoc() < FirstGuard->getBeginLoc()) + return true; george.karpenkov wrote: > Szelethus wrote: > >

[PATCH] D52998: [benchmark] Disable exceptions in Microsoft STL

2018-10-09 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D52998#1258962, @eandrews wrote: > Yes. I understand. At the moment, exception handling flags are generated > based on `BENCHMARK_ENABLE_EXCEPTIONS` in `utils/benchmark/CMakeLists.txt` . > However, `_HAS_EXCEPTIONS` is not defined based

[PATCH] D52727: [clang-tidy] White List Option for performance-unnecessary-value-param, performance-unnecessary-copy-initialization and performance-for-range-copy

2018-10-09 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. LG other than the `hasCanonicalType()` vs `hasType()` question. https://reviews.llvm.org/D52727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51109: [cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."

2018-10-09 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 168898. MaskRay retitled this revision from "[cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] "" to "[cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."". MaskRay removed a reviewer: clang. MaskRay removed subscribers: sdar

[PATCH] D53048: [Basic] Split out -Wimplicit-int-conversion and -Wimplicit-float-conversion from -Wconversion

2018-10-09 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added inline comments. Comment at: clang/test/Sema/implicit-int-conversion.c:1-4 +// RUN: %clang_cc1 -Wconversion -Wno-implicit-int-conversion -DSMALL=char -DBIG=int -DNO_DIAG +// RUN: %clang_cc1 -Wno-conversion -Wimplicit-int-conversion -DSMALL=char -DBIG=int +// RU

[PATCH] D53048: [Basic] Split out -Wimplicit-int-conversion and -Wimplicit-float-conversion from -Wconversion

2018-10-09 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added inline comments. Comment at: clang/test/Sema/implicit-int-conversion.c:1-4 +// RUN: %clang_cc1 -Wconversion -Wno-implicit-int-conversion -DSMALL=char -DBIG=int -DNO_DIAG +// RUN: %clang_cc1 -Wno-conversion -Wimplicit-int-conversion -DSMALL=char -DBIG=int +

[PATCH] D53048: [Basic] Split out -Wimplicit-int-conversion and -Wimplicit-float-conversion from -Wconversion

2018-10-09 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington updated this revision to Diff 168912. erik.pilkington added a comment. Actually run the tests! https://reviews.llvm.org/D53048 Files: clang/include/clang/Basic/DiagnosticGroups.td clang/include/clang/Basic/DiagnosticSemaKinds.td clang/test/Sema/implicit-int-conversion.c

[PATCH] D51109: [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."

2018-10-09 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 168913. MaskRay retitled this revision from "[cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."" to "[Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."". MaskRay added a comment. Another reference in driver

[PATCH] D50616: [Fixed Point Arithmetic] FixedPointCast

2018-10-09 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added a comment. @ebevhan @rjmccall Seeing that the saturation intrinsic in https://reviews.llvm.org/D52286 should be put on hold for now, would it be fine to submit this patch as is? Then if the intrinsic is finished, come back to this and update this patch to use the intrinsic?

r344098 - [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."

2018-10-09 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Oct 9 17:15:33 2018 New Revision: 344098 URL: http://llvm.org/viewvc/llvm-project?rev=344098&view=rev Log: [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..." Summary: This is to accommodate a change in llvm/lib/Option/OptTable.cpp D51009 R

[PATCH] D51109: [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."

2018-10-09 Thread Fangrui Song via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL344098: [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..." (authored by MaskRay, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://revie

[PATCH] D46441: [clang][CodeGenCXX] Noalias attr for 'this' parameter

2018-10-09 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. I wonder if we should have a `-fno-strict-something` flag for this. I suppose there's no more effective way to find out than to try this and see what happens. Comment at: li

[PATCH] D52610: [Esan] Port cache frag to FreeBSD

2018-10-09 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added inline comments. Comment at: lib/CodeGen/BackendUtil.cpp:323 Opts.ToolType = EfficiencySanitizerOptions::ESAN_CacheFrag; - else if (LangOpts.Sanitize.has(SanitizerKind::EfficiencyWorkingSet)) + else if (T.getOS() == Triple::Linux && +LangOpts.Sanitize

[PATCH] D52949: [Diagnostics] Implement -Wsizeof-pointer-div

2018-10-09 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. ping https://reviews.llvm.org/D52949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r344100 - clang: Allow ifunc resolvers to accept arguments

2018-10-09 Thread Ed Maste via cfe-commits
Author: emaste Date: Tue Oct 9 17:34:17 2018 New Revision: 344100 URL: http://llvm.org/viewvc/llvm-project?rev=344100&view=rev Log: clang: Allow ifunc resolvers to accept arguments When ifunc support was added to Clang (r265917) it did not allow resolvers to take function arguments. This was ba

[PATCH] D52703: Allow ifunc resolvers to accept arguments

2018-10-09 Thread Ed Maste via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC344100: clang: Allow ifunc resolvers to accept arguments (authored by emaste, committed by ). Repository: rC Clang https://reviews.llvm.org/D52703 Files: include/clang/Basic/AttrDocs.td include/cl

  1   2   >