[PATCH] D52448: [clang-format] Break before next parameter after a formatted multiline raw string parameter

2018-10-25 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir marked an inline comment as done. krasimir added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:1594 StartColumn + NewPrefixSize - Style.ColumnLimit : 0; - return Fixes.second + PrefixExcessCharacters * Style.PenaltyExcessCharacter; + unsigned

[PATCH] D52448: [clang-format] Break before next parameter after a formatted multiline raw string parameter

2018-10-25 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 171041. krasimir marked an inline comment as done. krasimir added a comment. - Address review comment Repository: rC Clang https://reviews.llvm.org/D52448 Files: lib/Format/ContinuationIndenter.cpp unittests/Format/FormatTestRawStrings.cpp Index: u

r345242 - [clang-format] Break before next parameter after a formatted multiline raw string parameter

2018-10-25 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Oct 25 00:39:30 2018 New Revision: 345242 URL: http://llvm.org/viewvc/llvm-project?rev=345242&view=rev Log: [clang-format] Break before next parameter after a formatted multiline raw string parameter Summary: Currently clang-format breaks before the next parameter afte

[PATCH] D52448: [clang-format] Break before next parameter after a formatted multiline raw string parameter

2018-10-25 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345242: [clang-format] Break before next parameter after a formatted multiline raw… (authored by krasimir, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.l

[PATCH] D53482: Add clang-format stability check with FormatTests

2018-10-25 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. The problem with this is that I believe fixing this issue is not worth it, hence this patch is unnecessary. Feel free to reach out to djasper@ for a second opinion. For completeness, was the unstability a problem just in FormatTest.cpp, how about the other FormatTest*.

[PATCH] D52857: [clang-query] Add non-exclusive output API

2018-10-25 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 171046. steveire added a comment. New command design Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52857 Files: clang-query/Query.cpp clang-query/Query.h clang-query/QueryParser.cpp clang-query/QueryParser.h unittests/clang-quer

[PATCH] D53644: [clangd] workspace/symbol should be async, it reads from the index.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. LGTM Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53644: [clangd] workspace/symbol should be async, it reads from the index.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: unittests/clangd/TUSchedulerTests.cpp:541 + std::atomic Counter(0); + S.run("add 1", [&] { Counter.fetch_add(1); }); + S.run("add 2", [&] { Counter.fetch_add(2); }); NIT: maybe simplify to `++Counter`? Reposit

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

2018-10-25 Thread Oliver Stannard via Phabricator via cfe-commits
olista01 accepted this revision. olista01 added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D51429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Great idea, this will definitely improve the UX of completion! NIT: a typo in the change description: 'bas' should be 'base'. Pedantic NIT (sorry!): in the change description, we should probably use 'initializers' instead of 'initializations' Co

[PATCH] D52695: [clang][Parse] Diagnose useless null statements (PR39111)

2018-10-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. ping Repository: rC Clang https://reviews.llvm.org/D52695 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51949: [clang-tidy] new check 'readability-isolate-declaration'

2018-10-25 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. ping :) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53651: [clangd] Use thread pool for background indexing.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. It's fine to spend one thread spinning on background tasks, but if we're going to do a threadpool, we should be more careful to not hurt the performance of foreground tasks. To do that, we should at least: - share the semaphore for the number of actively running t

[PATCH] D53483: [analyzer] Restrict AnalyzerOptions' interface so that non-checker objects have to be registered

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171060. Szelethus edited the summary of this revision. Szelethus added a comment. This diff has numerous changed to the last, but it's all "cosmetic", the actual logic is untouched. - Added documentation as @xazax.hun suggested - Removed `getIntegerOption`

[PATCH] D53483: [analyzer] Restrict AnalyzerOptions' interface so that non-checker objects have to be registered

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus marked 3 inline comments as done. Szelethus added a comment. Changing asserts to warnings will be delivered in a followup patch. https://reviews.llvm.org/D53483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

r345258 - [ms] Prevent explicit constructor name lookup if scope is missing

2018-10-25 Thread Will Wilson via cfe-commits
Author: lantictac Date: Thu Oct 25 04:45:32 2018 New Revision: 345258 URL: http://llvm.org/viewvc/llvm-project?rev=345258&view=rev Log: [ms] Prevent explicit constructor name lookup if scope is missing MicrosoftExt allows explicit constructor calls. Prevent lookup of constructor name unless the

[PATCH] D53441: [ms] Prevent explicit constructor name lookup if scope is missing

2018-10-25 Thread Will Wilson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345258: [ms] Prevent explicit constructor name lookup if scope is missing (authored by lantictac, committed by ). Repository: rC Clang https://reviews.llvm.org/D53441 Files: lib/Parse/ParseExpr.cpp

[PATCH] D52311: [clangd] Add support for hierarchical documentSymbol

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 171067. ilya-biryukov added a comment. - Improve traversal of the AST. - Update the tests. - Add a fallback to SymbolInformation (flat structure) if the client does not support the hierarhical reponse. Still some work left to do: - Do not drop the qua

[PATCH] D53692: [analyzer] Evaluate all non-checker config options before analysis

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus created this revision. Szelethus added reviewers: xazax.hun, NoQ, george.karpenkov, MTC, rnkovacs. Herald added subscribers: cfe-commits, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, mgrang, szepet, whisperity. Szelethus added a dependency: D53483: [analyzer] Restrict AnalyzerOptions'

[PATCH] D53693: [ASTImporter] Typedef import brings in the complete type

2018-10-25 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added a reviewer: a_sidorin. Herald added subscribers: cfe-commits, Szelethus, dkrupp, rnkovacs. Herald added a reviewer: a.sidorin. When we already have an incomplete underlying type of a typedef in the "To" context, and the "From" context has the same typed

[PATCH] D53687: [clangd] Make in-memory CDB always available as an overlay, refactor.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. FWIW, the old implementation of the CDB looked simpler (which makes sense, since it only allowed the in-memory compile commands, but the new implementation also falls back to the base CDB, i.e. it's now doing two things). However, if we can't avoid this protocol ex

[PATCH] D53688: [clangd] Add fallbackFlags initialization extension.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. This feels like a configuration option that might be changed in the course of running clangd. Are there any strong reasons to make it work only upon initialization? My guess is that it keeps the code simpler, but if we approached it purely from the UX perspective,

[PATCH] D52311: [clangd] Add support for hierarchical documentSymbol

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Another annoyance to fix: - 'using namespace' are shown as '' Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52311 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[PATCH] D53696: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-10-25 Thread Calvin Hill via Phabricator via cfe-commits
return created this revision. return added reviewers: chandlerc, joerg. return added a project: clang. Herald added a subscriber: cfe-commits. This patch addresses a compilation error with clang when running in Haiku being unable to compile code using __float128 (throws compilation error such as

[PATCH] D53692: [analyzer] Evaluate all non-checker config options before analysis

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. The reason why I removed the getter functions and went ahead with the gigantic refactor is that getter functions actually changed the state of `AnalyzerOptions`, as they were responsible with the initialization of each option. Now, in the .def file, not all options ha

[PATCH] D53697: [Structural Eq] Check for isBeingDefined

2018-10-25 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added a reviewer: a_sidorin. Herald added subscribers: cfe-commits, Szelethus, dkrupp, rnkovacs. martong added a dependency: D53693: [ASTImporter] Typedef import brings in the complete type. If one definition is currently being defined, we do not compare for

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-25 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: lib/Sema/SemaCodeComplete.cpp:5101 +const auto *ND = Base.getType()->getAsCXXRecordDecl(); +if (isa(ND) || +isa(ND)) { ilya-biryukov wrote: > Why special-case the template specializations? > Are we tryin

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-25 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: lib/Sema/SemaCodeComplete.cpp:5101 +const auto *ND = Base.getType()->getAsCXXRecordDecl(); +if (isa(ND) || +isa(ND)) { kadircet wrote: > ilya-biryukov wrote: > > Why special-case the template specializat

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: lib/Sema/SemaCodeComplete.cpp:5101 +const auto *ND = Base.getType()->getAsCXXRecordDecl(); +if (isa(ND) || +isa(ND)) { kadircet wrote: > kadircet wrote: > > ilya-biryukov wrote: > > > Why special-ca

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-25 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 171077. kadircet marked 7 inline comments as done. kadircet added a comment. - Address comments. Repository: rC Clang https://reviews.llvm.org/D53654 Files: include/clang/Sema/CodeCompleteConsumer.h lib/Sema/SemaCodeComplete.cpp test/CodeCompletio

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171081. gtbercea added a comment. Refactor chunk one checking. Repository: rC Clang https://reviews.llvm.org/D53448 Files: include/clang/AST/StmtOpenMP.h lib/AST/StmtOpenMP.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h li

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171084. gtbercea marked an inline comment as done. gtbercea added a comment. Use NumIterations. Repository: rC Clang https://reviews.llvm.org/D53448 Files: include/clang/AST/StmtOpenMP.h lib/AST/StmtOpenMP.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea marked 3 inline comments as done. gtbercea added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.h:904 + /// + virtual bool isStaticChunked(OpenMPDistScheduleClauseKind ScheduleKind, + bool Chunked) const; ABataev

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.h:904 + /// + virtual bool isStaticChunked(OpenMPDistScheduleClauseKind ScheduleKind, + bool Chunked) const; gtbercea wrote: > ABataev wrote: > > I'd rename thi

[PATCH] D53699: [ASTImporter] Fix inequality of functions with different attributes

2018-10-25 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added a reviewer: a_sidorin. Herald added subscribers: cfe-commits, Szelethus, dkrupp, rnkovacs. Herald added a reviewer: a.sidorin. FunctionType::ExtInfo holds such properties of a function which are needed mostly for code gen. We should not compare these bi

[PATCH] D53651: [clangd] Use thread pool for background indexing.

2018-10-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D53651#1275517, @ilya-biryukov wrote: > It's fine to spend one thread spinning on background tasks, but if we're > going to do a threadpool, we should be more careful to not hurt the > performance of foreground tasks. To do that, we should

[PATCH] D53586: Implement Function Multiversioning for Non-ELF Systems.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 171088. erichkeane marked an inline comment as done. erichkeane added a comment. Added test as requested by @rnk. How's it look? I hope I got the balance of check-lines right. https://reviews.llvm.org/D53586 Files: include/clang/AST/Decl.h include

r345267 - update the clang doc about contributions

2018-10-25 Thread Sylvestre Ledru via cfe-commits
Author: sylvestre Date: Thu Oct 25 07:19:06 2018 New Revision: 345267 URL: http://llvm.org/viewvc/llvm-project?rev=345267&view=rev Log: update the clang doc about contributions Modified: cfe/trunk/www/hacking.html Modified: cfe/trunk/www/hacking.html URL: http://llvm.org/viewvc/llvm-project

[clang-tools-extra] r345268 - [clangd] workspace/symbol should be async, it reads from the index.

2018-10-25 Thread Sam McCall via cfe-commits
Author: sammccall Date: Thu Oct 25 07:19:14 2018 New Revision: 345268 URL: http://llvm.org/viewvc/llvm-project?rev=345268&view=rev Log: [clangd] workspace/symbol should be async, it reads from the index. Summary: To enable this, TUScheduler has to provide a way to run async tasks without needing

[PATCH] D53644: [clangd] workspace/symbol should be async, it reads from the index.

2018-10-25 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. sammccall marked an inline comment as done. Closed by commit rCTE345268: [clangd] workspace/symbol should be async, it reads from the index. (authored by sammccall, committed by ). Changed prior to commit: https://reviews

[PATCH] D53700: Support _Clang as a scoped attribute identifier

2018-10-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: rsmith, echristo, dblaikie. Herald added a subscriber: krytarowski. Currently, we only accept `clang` as the scoped attribute identifier for double square bracket attributes provided by Clang, but this has the potential to confl

[PATCH] D53701: [Analyzer] Record and process comparison of symbols instead of iterator positions in interator checkers

2018-10-25 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware created this revision. baloghadamsoftware added a reviewer: NoQ. baloghadamsoftware added a project: clang. Herald added subscribers: donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, whisperity. Herald added a reviewer: george.karpenkov. Currently iterator c

[PATCH] D53702: [ASTImporter] Set redecl chain of functions before any other import

2018-10-25 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added a reviewer: a_sidorin. Herald added subscribers: cfe-commits, Szelethus, dkrupp, rnkovacs. Herald added a reviewer: a.sidorin. FunctionDecl import starts with a lookup and then we create a new Decl. Then in case of CXXConstructorDecl we further import o

[PATCH] D53488: [clang-tidy] Catching narrowing from double to float.

2018-10-25 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet marked 2 inline comments as done. gchatelet added a comment. In https://reviews.llvm.org/D53488#1274205, @JonasToth wrote: > Did you run this code over a real-world code-base and did you find new stuff > and/or false positives or the like? Yes I did run it over our code base. I didn'

[PATCH] D53692: [analyzer] Evaluate all non-checker config options before analysis

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171094. Szelethus edited the summary of this revision. https://reviews.llvm.org/D53692 Files: include/clang/StaticAnalyzer/Core/AnalyzerOptions.def include/clang/StaticAnalyzer/Core/AnalyzerOptions.h lib/Frontend/CompilerInvocation.cpp lib/StaticAna

[PATCH] D53704: [ASTImporter] Import overrides before importing the rest of the chain

2018-10-25 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added a reviewer: a_sidorin. Herald added subscribers: cfe-commits, Szelethus, dkrupp, rnkovacs. Herald added a reviewer: a.sidorin. During method import we check for structural eq of two methods. In the structural eq check we check for their isVirtual() flag

[PATCH] D53687: [clangd] Make in-memory CDB always available as an overlay, refactor.

2018-10-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 2 inline comments as done. sammccall added a comment. In https://reviews.llvm.org/D53687#1275580, @ilya-biryukov wrote: > FWIW, the old implementation of the CDB looked simpler (which makes sense, > since it only allowed the in-memory compile commands, but the new > implementat

[PATCH] D53687: [clangd] Make in-memory CDB always available as an overlay, refactor.

2018-10-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 171098. sammccall marked an inline comment as done. sammccall added a comment. Switch boolean parameters to positive sense, rebase. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53687 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLS

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-25 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 171099. kadircet marked an inline comment as done. kadircet added a comment. - Use addConstructorResult. Repository: rC Clang https://reviews.llvm.org/D53654 Files: include/clang/Sema/CodeCompleteConsumer.h lib/Sema/SemaCodeComplete.cpp test/CodeC

[PATCH] D53488: [clang-tidy] Catching narrowing from double to float.

2018-10-25 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. In https://reviews.llvm.org/D53488#1275750, @gchatelet wrote: > In https://reviews.llvm.org/D53488#1274205, @JonasToth wrote: > > > Did you run this code over a real-world code-base and did you find new > > stuff and/or false positives or the like? > > > Yes I did run it

[PATCH] D53617: [AArch64] Support Windows stack probe command-line arguments.

2018-10-25 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm Repository: rC Clang https://reviews.llvm.org/D53617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

[PATCH] D53688: [clangd] Add fallbackFlags initialization extension.

2018-10-25 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D53688#1275586, @ilya-biryukov wrote: > This feels like a configuration option that might be changed in the course of > running clangd. > Are there any strong reasons to make it work only upon initialization? My > guess is that it keeps th

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

2018-10-25 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel updated this revision to Diff 171103. ymandel added a comment. Fix bug in const-token finding and add tests. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ConstValueReturnCheck.cpp clang-ti

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

2018-10-25 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel updated this revision to Diff 171105. ymandel added a comment. Formatting & comment tweaks. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ConstValueReturnCheck.cpp clang-tidy/readability/Co

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

2018-10-25 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel added a comment. In https://reviews.llvm.org/D53025#1271367, @JonasToth wrote: > In https://reviews.llvm.org/D53025#1270784, @ymandel wrote: > > > Correction: the code *catches* the trailing return cases, I just couldn't > > find a way to *fix* them; specifically, I was not able to get t

[PATCH] D53488: [clang-tidy] Catching narrowing from double to float.

2018-10-25 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet added a comment. In https://reviews.llvm.org/D53488#1275786, @hokein wrote: > In https://reviews.llvm.org/D53488#1275750, @gchatelet wrote: > > > In https://reviews.llvm.org/D53488#1274205, @JonasToth wrote: > > > > > Did you run this code over a real-world code-base and did you find ne

r345273 - [AArch64] Branch Protection and Return Address Signing B Key Support

2018-10-25 Thread Luke Cheeseman via cfe-commits
Author: lukecheeseman Date: Thu Oct 25 08:23:49 2018 New Revision: 345273 URL: http://llvm.org/viewvc/llvm-project?rev=345273&view=rev Log: [AArch64] Branch Protection and Return Address Signing B Key Support - Add support for -mbranch-protection=[+]* where - ::= [standard, none, bti, pac-ret[

[PATCH] D53705: [OpenCL] Postpone PSV address space diagnostic

2018-10-25 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh created this revision. svenvh added reviewers: Anastasia, rjmccall. Herald added subscribers: cfe-commits, yaxunl. In OpenCL C++ mode, the "program scope variable must reside ..." diagnostic is firing early in some cases, potentially confusing the user. It is the first diagnostic reported

[PATCH] D53417: [Clang][Sema][PowerPC] Choose a better candidate in overload function call if there is a compatible vector conversion instead of ambiguous call error

2018-10-25 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: clang/lib/Sema/SemaOverload.cpp:3913 +for (auto Type : Types) { + if (S.Context.getCanonicalType(Type)->getTypeClass() != Type::Vector) +return false; Considering that this is

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

2018-10-25 Thread Luke Cheeseman via Phabricator via cfe-commits
LukeCheeseman closed this revision. LukeCheeseman added a comment. This was committed under 345273. (Forgot to mention the revision in the commit message) https://reviews.llvm.org/D51429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:

[PATCH] D38061: Set AnonymousTagLocations false for ASTContext if column info is expected not to be used

2018-10-25 Thread Taewook Oh via Phabricator via cfe-commits
twoh added a comment. @dblaikie I see. The problem we're experiencing is that with Clang's naming scheme we end up having different function name between the original source and the preprocessed source (as macro expansion changes the column number). This doesn't work well for me if I want to us

[PATCH] D53687: [clangd] Make in-memory CDB always available as an overlay, refactor.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. LGTM Comment at: clangd/ClangdLSPServer.cpp:670 + /*Output=*/""); + if (Old != New) +CDB->setCompileCommand(File, std::move(New)); ---

r345277 - [OPENMP]Fix PR39422: variables are not firstprivatized in task context.

2018-10-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 25 08:35:27 2018 New Revision: 345277 URL: http://llvm.org/viewvc/llvm-project?rev=345277&view=rev Log: [OPENMP]Fix PR39422: variables are not firstprivatized in task context. According to the OpenMP standard, In a task generating construct, if no default clause is p

[PATCH] D53688: [clangd] Add fallbackFlags initialization extension.

2018-10-25 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D53688#1275793, @sammccall wrote: > It's hard to reason about UX outside of concrete tools - the only use I know > of (atom-ide-cpp) never needs to ch

[PATCH] D53707: [Fixed Point Arithmetic] Refactor fixed point casts

2018-10-25 Thread Bjorn Pettersson via Phabricator via cfe-commits
bjope created this revision. bjope added reviewers: leonardchan, ebevhan. - Added names for some emitted values (such as "tobool" for the result of a cast to boolean). - Replaced explicit IRBuilder request for doing sext/zext/trunc by using CreateIntCast instead. - Simplify code for emitting sat

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171116. gtbercea marked an inline comment as done. gtbercea added a comment. Refactor static chunk schedules. Fix tests. Repository: rC Clang https://reviews.llvm.org/D53448 Files: include/clang/AST/StmtOpenMP.h lib/AST/StmtOpenMP.cpp lib/CodeGe

[PATCH] D53708: [ASTImporter] Add importer specific lookup

2018-10-25 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added a reviewer: a_sidorin. Herald added subscribers: cfe-commits, Szelethus, dkrupp, rnkovacs, mgorny. Herald added a reviewer: a.sidorin. There are certain cases when normal C/C++ lookup (localUncachedLookup) does not find AST nodes. E.g.: Example 1: t

[PATCH] D53586: Implement Function Multiversioning for Non-ELF Systems.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 171118. erichkeane added a comment. ACTUALLY add the test this time :/ sorry about that! https://reviews.llvm.org/D53586 Files: include/clang/AST/Decl.h include/clang/Basic/Attr.td include/clang/Basic/TargetInfo.h lib/AST/Decl.cpp lib/Basic/Ta

[PATCH] D53488: [clang-tidy] Catching narrowing from double to float.

2018-10-25 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. That one looks interesting :) Am 25.10.18 um 17:13 schrieb Guillaume Chatelet via Phabricator: > gchatelet added a comment. > > In https://reviews.llvm.org/D53488#1275786, @hokein wrote: > >> In https://reviews.llvm.org/D53488#1275750, @gchatelet wrote: >> >>> In ht

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. What about collapsed loops? Comment at: lib/CodeGen/CGStmtOpenMP.cpp:3390 // UB = min(UB, GlobalUB); -EmitIgnoredExpr(isOpenMPLoopBoundSharingDirective(S.getDirectiveKind()) +EmitIgnoredExpr(StaticChunked || +

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

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus planned changes to this revision. Szelethus added a comment. Hmm, I'll investigate the `assert` issue @NoQ mentioned before moving forward. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp:502 + + auto AssertM = callExpr(cal

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

2018-10-25 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. > I'm not sure I understand what you're trying to break in the check. If you're > thinking of whether the code trips up on the lexical issues, I'm pretty sure > that won't apply here. Once the const-ness is hidden behind a template, the > check doesn't try to fix it;

[PATCH] D52615: Handle -fsanitize-address-poison-class-member-array-new-cookie in the driver and propagate it to cc1

2018-10-25 Thread Filipe Cabecinhas via Phabricator via cfe-commits
filcab added a comment. In https://reviews.llvm.org/D52615#1272725, @rjmccall wrote: > In https://reviews.llvm.org/D52615#1266320, @filcab wrote: > > > In https://reviews.llvm.org/D52615#1254567, @rsmith wrote: > > > > > This seems like an unreasonably long flag name. Can you try to find a > > >

[PATCH] D53607: [AST] Only store the needed data in IfStmt.

2018-10-25 Thread Bruno Ricci via Phabricator via cfe-commits
riccibruno updated this revision to Diff 171121. riccibruno edited the summary of this revision. riccibruno added a comment. Reworked so that the order of the children is kept the same. Repository: rC Clang https://reviews.llvm.org/D53607 Files: include/clang/AST/Stmt.h lib/AST/ASTImport

[PATCH] D53713: Add extension to always default-initialize nullptr_t.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. erichkeane added reviewers: rsmith, aaron.ballman. Core issue 1013 suggests that having an uninitialied std::nullptr_t be UB is a bit foolish, since there is only a single valid value. This DR reports that DR616 fixes it, which does so by making lvalue-to-rvalue c

[PATCH] D53692: [analyzer] Evaluate all non-checker config options before analysis

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. What are the feelings on moving some functions to the header file? That's the one thing I'm unsure about regarding this patch. I could've moved them to `CompilerInvocation.cpp`, but I since I plan on making `ConfigTable` private, `CompilerInvocation` needs to be a fri

[PATCH] D53609: [AST] Don't store data for GNU range case statement if not needed.

2018-10-25 Thread Bruno Ricci via Phabricator via cfe-commits
riccibruno updated this revision to Diff 171124. riccibruno added a comment. Reworked so that the order of the children is kept the same. Repository: rC Clang https://reviews.llvm.org/D53609 Files: include/clang/AST/Stmt.h lib/AST/ASTImporter.cpp lib/AST/Stmt.cpp lib/Sema/SemaStmt.cp

[PATCH] D53713: Add extension to always default-initialize nullptr_t.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Woops, apparently a couple of tests fail on this that I somehow missed the 1st time. Looking into it. Repository: rC Clang https://reviews.llvm.org/D53713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:

[PATCH] D53610: [AST] Check that GNU range case statements are correctly imported.

2018-10-25 Thread Bruno Ricci via Phabricator via cfe-commits
riccibruno updated this revision to Diff 171125. riccibruno added a comment. rebased Repository: rC Clang https://reviews.llvm.org/D53610 Files: test/Import/switch-stmt/Inputs/F.cpp test/Import/switch-stmt/test.cpp Index: test/Import/switch-stmt/test.cpp ===

[PATCH] D52034: [Clang] Add options -Xclang -coverage-filter and -Xclang -coverage-exclude to filter the files to instrument with gcov

2018-10-25 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. In https://reviews.llvm.org/D52034#1268277, @calixte wrote: > @vsk, gcc guys are ok for -fprofile-filter-files and > -fprofile-exclude-files, are you ok with that ? That sounds fine to me. > Should these options prefixed by -Xclang or not ? I don't think they should be.

[PATCH] D52034: [Clang] Add options -Xclang -coverage-filter and -Xclang -coverage-exclude to filter the files to instrument with gcov

2018-10-25 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. In https://reviews.llvm.org/D52034#1246379, @calixte wrote: > I reported a bug for gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87442 Thank you! > @vsk I'd like to add documentation in Docs/UsersManual.rst, but I've no idea > on what's a good place for this (I look f

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171127. gtbercea added a comment. Simplify code. Repository: rC Clang https://reviews.llvm.org/D53448 Files: include/clang/AST/StmtOpenMP.h lib/AST/StmtOpenMP.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGOp

[PATCH] D53714: [AST] Only store the needed data in SwitchStmt.

2018-10-25 Thread Bruno Ricci via Phabricator via cfe-commits
riccibruno created this revision. riccibruno added a reviewer: rjmccall. riccibruno added a project: clang. Herald added a subscriber: cfe-commits. Don't store the data for the init statement and condition variable if not needed. This cuts the size of `SwitchStmt` by up to 2 pointers. The order of

[PATCH] D53715: [AST] Only store the needed data in WhileStmt.

2018-10-25 Thread Bruno Ricci via Phabricator via cfe-commits
riccibruno created this revision. riccibruno added a reviewer: rjmccall. riccibruno added a project: clang. Herald added a subscriber: cfe-commits. Don't store the data for the condition variable if not needed. This cuts the size of `WhileStmt` by up to a pointer. The order of the children is kept

[PATCH] D38061: Set AnonymousTagLocations false for ASTContext if column info is expected not to be used

2018-10-25 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. In https://reviews.llvm.org/D38061#1275845, @twoh wrote: > @dblaikie I see. The problem we're experiencing is that with Clang's naming > scheme we end up having different function name between the original source > and the preprocessed source (as macro expansion change

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov requested changes to this revision. george.karpenkov added a comment. This revision now requires changes to proceed. Thanks a lot, this is almost ready! I think it should be good to go after this round of nitpicks. Comment at: include/clang/StaticAnalyzer/Core

[PATCH] D53713: Add extension to always default-initialize nullptr_t.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 171128. erichkeane added a comment. Update the 2 failing tests. Would love some help looking at the Analysis fix, it seems to no longer have to 'assume' stuff due to the this now being defined behavior. Additionally, the other test is just an AST change

[PATCH] D53651: [clangd] Use thread pool for background indexing.

2018-10-25 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. Moving forward with priorities then. Comment at: clangd/index/Background.cpp:89 } - QueueCV.notify_all(); + QueueCV.notify_one(); } sammccall wrote: > I always forget the details of how these work :-\ > Is it possible for the "on

[PATCH] D53524: [ThinLTO] Enable LTOUnit only when it is needed

2018-10-25 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc added a comment. In https://reviews.llvm.org/D53524#1274505, @tejohnson wrote: > In https://reviews.llvm.org/D53524#1271387, @tejohnson wrote: > > > In https://reviews.llvm.org/D53524#1271357, @pcc wrote: > > > > > The reason why LTO unit is always enabled is so that you can link > > > trans

[PATCH] D53716: [AST] Only store data for the NRVO candidate in ReturnStmt if needed.

2018-10-25 Thread Bruno Ricci via Phabricator via cfe-commits
riccibruno created this revision. riccibruno added a reviewer: rjmccall. riccibruno added a project: clang. Herald added subscribers: cfe-commits, javed.absar. Only store the NRVO candidate if needed in `ReturnStmt`. A good chuck of all of the `ReturnStmt` have no NRVO candidate. For all of them t

[PATCH] D53207: Fix bug 26547 - alignof should return ABI alignment, not preferred alignment

2018-10-25 Thread Nicole Mazzuca via Phabricator via cfe-commits
ubsan added a comment. I don't actually know how to send this upstream, since it's been accepted... How should I proceed? Repository: rC Clang https://reviews.llvm.org/D53207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D53276: [analyzer][NFC] Fix some incorrect uses of -analyzer-config options

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171130. Szelethus added a comment. `RetainCountChecker` now gets it's option when registering, like every other checker. `RetainCountChecker` stored a reference to `AnalyzerOptions`, evaluated an option during construction, and one later down the line. Th

r345284 - [analyzer] Move canReasonAbout from Z3ConstraintManager to SMTConstraintManager

2018-10-25 Thread Mikhail R. Gadelha via cfe-commits
Author: mramalho Date: Thu Oct 25 10:27:42 2018 New Revision: 345284 URL: http://llvm.org/viewvc/llvm-project?rev=345284&view=rev Log: [analyzer] Move canReasonAbout from Z3ConstraintManager to SMTConstraintManager Summary: This patch moves the last method in `Z3ConstraintManager` to `SMTConstra

r345283 - [analyzer] Fixed bitvector from model always being unsigned

2018-10-25 Thread Mikhail R. Gadelha via cfe-commits
Author: mramalho Date: Thu Oct 25 10:27:36 2018 New Revision: 345283 URL: http://llvm.org/viewvc/llvm-project?rev=345283&view=rev Log: [analyzer] Fixed bitvector from model always being unsigned Summary: Getting an `APSInt` from the model always returned an unsigned integer because of the unused

[PATCH] D53276: [analyzer][NFC] Fix some incorrect uses of -analyzer-config options

2018-10-25 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov requested changes to this revision. george.karpenkov added a comment. This revision now requires changes to proceed. Minor nitpicks, otherwise makes sense! Comment at: include/clang/StaticAnalyzer/Core/AnalyzerOptions.h:746 + /// exploring a top level function

[PATCH] D53717: [AST] Only store the needed data in ForStmt.

2018-10-25 Thread Bruno Ricci via Phabricator via cfe-commits
riccibruno created this revision. riccibruno added a reviewer: rjmccall. riccibruno added a project: clang. Herald added a subscriber: cfe-commits. riccibruno added a dependency: D53716: [AST] Only store data for the NRVO candidate in ReturnStmt if needed.. Don't store the init statement and cond

[PATCH] D53276: [analyzer][NFC] Fix some incorrect uses of -analyzer-config options

2018-10-25 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171141. Szelethus added a comment. - Added description as @george.karpenkov mentioned. Thanks! I guess it's up to @NoQ whether he and @dcoughlin are okay with making some options checker options. https://reviews.llvm.org/D53276 Files: include/clang/St

[PATCH] D40925: Add option -fkeep-static-consts

2018-10-25 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a subscriber: zturner. rnk added a comment. My coworker, @zturner, asked if I knew a way to force emit all constants, and I mentioned this flag, but we noticed it doesn't work on cases when the constant is implicitly static, like this: const int foo = 42; If I add `static` to it, i

r345291 - CodeGen: alter CFConstantString class name for swift 5.0

2018-10-25 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Oct 25 10:52:13 2018 New Revision: 345291 URL: http://llvm.org/viewvc/llvm-project?rev=345291&view=rev Log: CodeGen: alter CFConstantString class name for swift 5.0 Swift 5.0 has changed the name decoration for swift symbols, using a 'S' sigil rather than 's' as in 4.2.

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread Csaba Dabis via Phabricator via cfe-commits
Charusso added inline comments. Comment at: lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:1853 + +const auto *Cond = cast(PS->getStmt()); +auto Piece = VisitTrueTest(Cond, tag == tags.first, BRC, BR, N); george.karpenkov wrote: > How do we know that it'

  1   2   3   >