[PATCH] D42642: [CUDA] Detect installation in PATH

2018-01-31 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld updated this revision to Diff 132103. Hahnfeld marked 3 inline comments as done. Hahnfeld added a comment. Add some `sysroot` arguments to new test to make sure it doesn't accidentally find CUDA installations in the system. https://reviews.llvm.org/D42642 Files: include/clang/Driver

r323848 - [CUDA] Detect installation in PATH

2018-01-31 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Wed Jan 31 00:26:51 2018 New Revision: 323848 URL: http://llvm.org/viewvc/llvm-project?rev=323848&view=rev Log: [CUDA] Detect installation in PATH If the CUDA toolkit is not installed to its default locations in /usr/local/cuda, the user is forced to specify --cuda-path. Th

[PATCH] D42642: [CUDA] Detect installation in PATH

2018-01-31 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323848: [CUDA] Detect installation in PATH (authored by Hahnfeld, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42642?vs=132103&id=132104#to

[PATCH] D42573: [wip] The new threading implementation

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 132105. ilya-biryukov added a comment. - An initial version of thread-per-file approach. This is by no means a final version, we should definitely move things between files, do some renames, etc. before landing the final version. Some things are not us

[PATCH] D42174: [clangd] Refactored threading in ClangdServer

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 132107. ilya-biryukov marked 2 inline comments as done. ilya-biryukov added a comment. Addressed last review comments: - Rename blockingRead to blockingRun - Added a comment to ThreadPool's destructor Repository: rCTE Clang Tools Extra https://revi

[PATCH] D42174: [clangd] Refactored threading in ClangdServer

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/TUScheduler.h:23 +/// synchronously). +unsigned getDefaultAsyncThreadsCount(); + sammccall wrote: > just use llvm::hardware_concurrency()? It can return 0, which will cause clangd to run synchronously. This

[clang-tools-extra] r323851 - [clangd] Refactored threading in ClangdServer

2018-01-31 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 31 00:51:16 2018 New Revision: 323851 URL: http://llvm.org/viewvc/llvm-project?rev=323851&view=rev Log: [clangd] Refactored threading in ClangdServer Summary: We now provide an abstraction of Scheduler that abstracts threading and resource management in ClangdServe

[PATCH] D42174: [clangd] Refactored threading in ClangdServer

2018-01-31 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323851: [clangd] Refactored threading in ClangdServer (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D42174 Files: clan

[PATCH] D42708: [clang-format] Set BinPackObjCProtocolList to Never for google style

2018-01-31 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak added inline comments. Comment at: lib/Format/Format.cpp:765 GoogleStyle.ColumnLimit = 100; +GoogleStyle.BinPackObjCProtocolList = FormatStyle::BPS_Never; } If I understand correctly this is meant to be ObjC-specific flag. I feel like this s

[PATCH] D41102: Setup clang-doc frontend framework

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Really sorry about the delay in getting to this. At a high level, I'm most concerned about: - the monolithic in-memory intermediate format, which seems to put hard limits on performance and scalability - having high-level documentation and clear APIs - having multiple

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein marked an inline comment as done. hokein added inline comments. Comment at: clang-move/ClangMove.cpp:708 +// Find old.h includes "old.h". +if (AbsoluteOldHeader == AbsoluteOldHeader) { + OldHeaderIncludeRangeInHeader = IncludeFilenameRange; io

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 132111. hokein marked an inline comment as done. hokein added a comment. address review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42639 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h unittests/clang-move/ClangMov

[PATCH] D41720: [clang-tidy] Add a -show-color flag.

2018-01-31 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/ClangTidyOptions.h:93 + /// \brief Show color diagnostics. + llvm::Optional ShowColor; + itessier wrote: > alexfh wrote: > > This doesn't belong to ClangTidyOptions. It's specific to the CLI, but CLI > > is

[PATCH] D42464: add prefix with '_' support for property name. Corresponding apple dev doc: https://developer.apple.com/library/content/qa/qa1908/_index.html

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:115 + +bool prefixedPropertyNameMatches(const llvm::StringRef &PropertyName, + const std::vector &Acronyms) { benhamilton wrote: > Wizard wrote:

[PATCH] D41720: [clang-tidy] Add a -show-color flag.

2018-01-31 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: test/clang-tidy/show-color.cpp:7 + int *value = 0; + // CHECK-COLOR: [[BOLD:.\[1m]]{{.*}}[[@LINE+2]]:10: [[RESET:.\[0m]][[MAGENTA:.\[0;1;35m]]warning: [[RESET]][[BOLD]]Dereference of null pointer (loaded from variable 'value') [clang

[clang-tools-extra] r323859 - [clangd] Attempt to fix compilation breakage with MSVC.

2018-01-31 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 31 01:50:21 2018 New Revision: 323859 URL: http://llvm.org/viewvc/llvm-project?rev=323859&view=rev Log: [clangd] Attempt to fix compilation breakage with MSVC. Modified: clang-tools-extra/trunk/clangd/ClangdServer.cpp Modified: clang-tools-extra/trunk/clangd/C

r323860 - [clang-format] Adds space around braces in text protos

2018-01-31 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Wed Jan 31 02:14:10 2018 New Revision: 323860 URL: http://llvm.org/viewvc/llvm-project?rev=323860&view=rev Log: [clang-format] Adds space around braces in text protos Summary: This patch modifies the text proto Google style to add spaces around braces. I investigated using

[PATCH] D42685: [clang-format] Adds space around braces in text protos

2018-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC323860: [clang-format] Adds space around braces in text protos (authored by krasimir, committed by ). Changed prior to commit: https://reviews.llvm.org/D42685?vs=131947&id=132117#toc Repository: rC C

[PATCH] D42727: [clang-format] Adds space around angle brackets in text protos

2018-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. krasimir added a reviewer: djasper. Herald added subscribers: cfe-commits, klimek. This patch adds spaces around angle brackets in text proto Google style. Previously these were detected as template openers and closers, which happened to have the expected effect. No

[PATCH] D42727: [clang-format] Adds space around angle brackets in text protos

2018-01-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 132121. krasimir added a comment. - Remove braces around single statement Repository: rC Clang https://reviews.llvm.org/D42727 Files: lib/Format/ContinuationIndenter.cpp lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp unittests/Format/For

[PATCH] D42575: [clangd] Better handling symbols defined in macros.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 132122. hokein marked 4 inline comments as done. hokein added a comment. - address review comments. - add tests for indexing main files - use SourceLocation.printToString Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42575 Files: clangd/i

[PATCH] D42575: [clangd] Better handling symbols defined in macros.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 132123. hokein added a comment. Update test. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42575 Files: clangd/index/SymbolCollector.cpp unittests/clangd/Annotations.cpp unittests/clangd/Annotations.h unittests/clangd/SymbolCollecto

[PATCH] D42575: [clangd] Better handling symbols defined in macros.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/index/SymbolCollector.cpp:108 +std::string PrintableLoc(SourceLocation Loc, SourceManager &SM) { + if (Loc.isInvalid()) ioeric wrote: > `PrintLoc`? `PrintableLoc` sounds like a checker for whether a location is

[PATCH] D42729: clang-format: Fix formatting of function blocks followed by semicolon

2018-01-31 Thread Francois Ferrand via Phabricator via cfe-commits
Typz created this revision. Typz added reviewers: krasimir, djasper, klimek. In some case, the heuristic used to identify the type of blocks (in UnwrappedLineParser) mistakens a Block for a BracedInit, when the TokenAnnotator eventually finds (correclty) that this is a function declaration. This

[PATCH] D42729: clang-format: Fix formatting of function body followed by semicolon

2018-01-31 Thread Francois Ferrand via Phabricator via cfe-commits
Typz updated this revision to Diff 132130. Typz added a comment. update commit message Repository: rC Clang https://reviews.llvm.org/D42729 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest.cpp ===

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from functional.h which are deprecated and removed in C++17

2018-01-31 Thread Jens Massberg via Phabricator via cfe-commits
massberg created this revision. massberg added a reviewer: alexfh. Herald added subscribers: cfe-commits, hintonda, mgorny. In C++17 several classes, types and functions from functional.h are no longer available. In this change we add first clang-tidy checks for occurrences of - std::unary_funct

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42639 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[clang-tools-extra] r323863 - [clangd] Second attempt to fix MSVC compilation breakage.

2018-01-31 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 31 03:26:43 2018 New Revision: 323863 URL: http://llvm.org/viewvc/llvm-project?rev=323863&view=rev Log: [clangd] Second attempt to fix MSVC compilation breakage. Modified: clang-tools-extra/trunk/clangd/ClangdServer.cpp Modified: clang-tools-extra/trunk/clangd

[PATCH] D42575: [clangd] Better handling symbols defined in macros.

2018-01-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg Comment at: clangd/index/SymbolCollector.cpp:127 +// location instead. +if (llvm::StringRef(PrintableLoc(Loc, SM)).startswith(" ioeric wrote: > > To reduce some co

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from functional.h which are deprecated and removed in C++17

2018-01-31 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Thank you for this new check! A few minor comments (mostly style issues). Comment at: clang-tidy/modernize/AvoidFunctionalCheck.cpp:37 +void AvoidFunctionalCheck::check(const MatchFinder::MatchResult &Result) { + if (const auto* const un_or_binary_deriv

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/Context.h:77 + /// See WithContext and WithContextValue for how to do this safely. + static Context ¤t(); Maybe we could return `const Context&` here and have a separate `setCurrent()` method for replac

[PATCH] D42682: [clang-tidy] Add misc-io-functions-misused checker

2018-01-31 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: clang-tidy/misc/IoFunctionsMisusedCheck.cpp:33 + has(cxxMemberCallExpr( + on(hasType(namedDecl(matchesName("istream"))

r323864 - Fix typo. NFC

2018-01-31 Thread Jonathan Roelofs via cfe-commits
Author: jroelofs Date: Wed Jan 31 04:06:15 2018 New Revision: 323864 URL: http://llvm.org/viewvc/llvm-project?rev=323864&view=rev Log: Fix typo. NFC Modified: cfe/trunk/www/analyzer/scan-build.html Modified: cfe/trunk/www/analyzer/scan-build.html URL: http://llvm.org/viewvc/llvm-project/cfe

[PATCH] D42170: Fixit for 'typedef' instead of 'typename' typo

2018-01-31 Thread Jan Korous via Phabricator via cfe-commits
jkorous-apple updated this revision to Diff 132135. jkorous-apple added a comment. Tried to make test more readable. https://reviews.llvm.org/D42170 Files: FixIt/fixit-typedef-instead-of-typename-typo.cpp Parse/ParseTemplate.cpp clang/Basic/DiagnosticParseKinds.td Index: FixIt/fixit-typ

[clang-tools-extra] r323865 - [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jan 31 04:12:29 2018 New Revision: 323865 URL: http://llvm.org/viewvc/llvm-project?rev=323865&view=rev Log: [clang-move] Clever on handling header file which includes itself. Summary: Previously, we assume only old.cc includes "old.h", which would introduce incorrect fixe

[PATCH] D42170: Fixit for 'typedef' instead of 'typename' typo

2018-01-31 Thread Jan Korous via Phabricator via cfe-commits
jkorous-apple added a comment. Thanks for your patience with me still learning lit/filecheck. What do you think about the test now? I totally agree that this is subjective matter but I appreciate your feedback. https://reviews.llvm.org/D42170 ___

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323865: [clang-move] Clever on handling header file which includes itself. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D42639?vs=132111&id=132136#toc Reposi

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Jens Massberg via Phabricator via cfe-commits
massberg updated this revision to Diff 132137. massberg retitled this revision from "Add clang-tidy check for use of types/classes/functions from functional.h which are deprecated and removed in C++17" to "Add clang-tidy check for use of types/classes/functions from header which are deprecated

[PATCH] D42729: clang-format: Fix formatting of function body followed by semicolon

2018-01-31 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added inline comments. Comment at: lib/Format/TokenAnnotator.cpp:1911 + if (Next && Next->is(tok::l_brace) && Next->BlockKind == BK_BracedInit) + Next->BlockKind = BK_Block; +} this may actually not be enough in all cases: to completely mat

[PATCH] D41698: [DebugInfo] Enable debug information for C99 VLA types

2018-01-31 Thread Sander de Smalen via Phabricator via cfe-commits
sdesmalen added inline comments. Comment at: lib/CodeGen/CGDecl.cpp:990 + D.getLocation(), D.getLocation(), &NameIdent, QT, + getContext().CreateTypeSourceInfo(QT), SC_Auto); + aprantl wrote: > sdesmalen wrote: > > aprantl wrote: > > > I think i

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 3 inline comments as done. sammccall added a comment. Thanks! Comment at: clangd/Context.h:77 + /// See WithContext and WithContextValue for how to do this safely. + static Context ¤t(); ilya-biryukov wrote: > Maybe we could return `const C

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 2 inline comments as done. sammccall added inline comments. Comment at: clangd/JSONRPCDispatcher.h:60 +/// Current context must derive from JSONRPCDispatcher::Handler. +void reply(json::Expr &&Result); +/// Sends an error response to the client, and logs it.

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. I don't see a patch corresponding to the fixed comments. `arc diff` didn't go through? Comment at: clangd/Trace.cpp:131 +return Context::current().clone(); + WithContextValue WithArgs{std::unique_ptr(Args)}; + return T->beginSpan(Name, Args

[clang-tools-extra] r323867 - [clangd] Better handling symbols defined in macros.

2018-01-31 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jan 31 04:56:51 2018 New Revision: 323867 URL: http://llvm.org/viewvc/llvm-project?rev=323867&view=rev Log: [clangd] Better handling symbols defined in macros. Summary: For symbols defined inside macros: * use expansion location, if the symbol is formed via macro concate

[PATCH] D42575: [clangd] Better handling symbols defined in macros.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323867: [clangd] Better handling symbols defined in macros. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D42575?vs=132123&id=132143#toc Repository: rL LLVM

[PATCH] D42575: [clangd] Better handling symbols defined in macros.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323867: [clangd] Better handling symbols defined in macros. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42575?vs=1321

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/JSONRPCDispatcher.h:60 +/// Current context must derive from JSONRPCDispatcher::Handler. +void reply(json::Expr &&Result); +/// Sends an error response to the client, and logs it. sammccall wrote: > ilya-bir

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D42517#993131, @ilya-biryukov wrote: > I don't see a patch corresponding to the fixed comments. `arc diff` didn't go > through? Indeed, sorry. Should be up to date now. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D4251

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 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 modulo two NITs. Really excited to see this land. Comment at: clangd/Context.cpp:32 + +Context Context::swap(Context Replacement) { + std::swap(Replacemen

[PATCH] D42729: clang-format: Fix formatting of function body followed by semicolon

2018-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. I think this case is not important enough to fix. Please tell users to just delete the useless semicolon. In particular, my concern is that this makes the data-flow significantly more complicated. Early on in the development, we had separate token classes for the diffe

[PATCH] D41537: Optionally add code completion results for arrow instead of dot

2018-01-31 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan updated this revision to Diff 132146. yvvan added a comment. Use https://reviews.llvm.org/D42474 code. Add missing parts and tests for errors and fixits. https://reviews.llvm.org/D41537 Files: include/clang-c/Index.h include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Cod

[clang-tools-extra] r323871 - Update header guard.

2018-01-31 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jan 31 05:31:51 2018 New Revision: 323871 URL: http://llvm.org/viewvc/llvm-project?rev=323871&view=rev Log: Update header guard. Modified: clang-tools-extra/trunk/clang-tidy/bugprone/IncorrectRoundingsCheck.h Modified: clang-tools-extra/trunk/clang-tidy/bugprone/Inco

[PATCH] D42517: [clangd] Pass Context implicitly using TLS.

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 2 inline comments as done. sammccall added inline comments. Comment at: clangd/Context.h:196 + ~WithContext() { +if (Restore) + Context::swap(std::move(*Restore)); ilya-biryukov wrote: > I think it can't be `null` after move ctor is del

[PATCH] D42729: clang-format: Fix formatting of function body followed by semicolon

2018-01-31 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. There are actually other cases, e.g. with macros "containing" the semicolon: void abort() { FOO() BAR() }; gets reformatted to this (still wrong with this patch, but the space after the parenthesis is added): void abort(){ FOO() BAR() }; And also this one (

[PATCH] D42729: clang-format: Fix formatting of function body followed by semicolon

2018-01-31 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. In https://reviews.llvm.org/D42729#993159, @djasper wrote: > I think this case is not important enough to fix. Please tell users to just > delete the useless semicolon. I would agree if were simple to spot: but often this may manifest itself only with a missing space bet

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/AvoidFunctionalCheck.cpp:21 +void AvoidFunctionalCheck::registerMatchers(MatchFinder *Finder) { + Finder->addMatcher( + cxxRecordDecl(allOf(anyOf(isDerivedFrom("std::binary_function"), I

[PATCH] D42573: [wip] The new threading implementation

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Not a complete review, but this looks pretty good! You probably want to read the last comment first - the gc thread is the threadpooliest bit of code left, and you may (or may not) want to eliminate it. Comment at: clangd/TUScheduler.cpp:23 +retu

[PATCH] D42307: [OpenCL][6.0.0 Release] Release notes for OpenCL in Clang

2018-01-31 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia closed this revision. Anastasia added a comment. Committed in r323875 with changes as requested. https://reviews.llvm.org/D42307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D42735: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures.

2018-01-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: sammccall. Herald added subscribers: cfe-commits, jkorous-apple, ilya-biryukov, klimek. This should also fix the current windows buildbot breakage (http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/9838/steps/ninja%20check%20

[PATCH] D42736: [DebugInfo] Improvements to representation of enumeration types (PR36168)

2018-01-31 Thread Momchil Velikov via Phabricator via cfe-commits
chill created this revision. chill added reviewers: dblaikie, keith.walker.arm. Herald added subscribers: JDevlieghere, aprantl. This is the `clang` counterpart to https://reviews.llvm.org/D42734 This patch: - fixed an incorrect sign-extension of unsigned values, when emitting debug info metad

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Jens Massberg via Phabricator via cfe-commits
massberg updated this revision to Diff 132169. massberg added a comment. Addressed comments of reviewer. https://reviews.llvm.org/D42730 Files: clang-tidy/modernize/AvoidFunctionalCheck.cpp clang-tidy/modernize/AvoidFunctionalCheck.h clang-tidy/modernize/CMakeLists.txt clang-tidy/modern

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Jens Massberg via Phabricator via cfe-commits
massberg marked 6 inline comments as done. massberg added a comment. Alex and Aaron, thanks for the comments! Comment at: clang-tidy/modernize/AvoidFunctionalCheck.cpp:21 +void AvoidFunctionalCheck::registerMatchers(MatchFinder *Finder) { + Finder->addMatcher( + cxxRecord

[PATCH] D41699: [OpenCL] Change sampler representation

2018-01-31 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D41699#990894, @yaxunl wrote: > whereas the old definition may fail to detect (not always, only for certain > combinations). For this reason I think it would be good to fix this. I don't think it's good to report errors inconsistently >

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Jens Massberg via Phabricator via cfe-commits
massberg marked 4 inline comments as done. massberg added inline comments. Comment at: clang-tidy/modernize/AvoidFunctionalCheck.h:19 + +/// Check for several deprecated types and classes from header +/// massberg wrote: > aaron.ballman wrote: > > Missing full s

[PATCH] D42693: [libcxx] Handle invalid escaped characters in POSIX regex

2018-01-31 Thread Mikhail Maltsev via Phabricator via cfe-commits
miyuki added inline comments. Comment at: include/regex:3465 +case '{': +case '}': +break; Quuxplusone wrote: > FWIW, I don't understand what's going on in this switch. > Is it intentional that `'('` and `'|'` now take diff

[PATCH] D42573: [wip] The new threading implementation

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/TUScheduler.cpp:220 + + GCThread.cleanupFile(std::move(Data->Worker)); } sammccall wrote: > in the spirit of "just spawn a thread, and write direct code"... > > can we just spawn a shared_ptr to do the wo

[PATCH] D42735: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures.

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Thanks for fixing this once and for all! Comment at: clangd/ClangdLSPServer.cpp:23 +/// \brief Supports a test URI scheme with relaxed constraints for lit tests. +/// T

[PATCH] D41318: Start setting dso_local in clang

2018-01-31 Thread Sean Fertile via Phabricator via cfe-commits
sfertile added inline comments. Comment at: clang/lib/CodeGen/CodeGenModule.cpp:750 + // If we can use a plt entry as the symbol address we can assume it + // is local. + if (isa(D) && !CGOpts.NoPLT) I don't think this is the case. I think this would break ppc

[PATCH] D42099: [libclang] Add missing CINDEX_LINKAGE

2018-01-31 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik abandoned this revision. nik added a comment. Abandoning since the change is already in. Repository: rC Clang https://reviews.llvm.org/D42099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[PATCH] D42573: [wip] The new threading implementation

2018-01-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/TUScheduler.h:63 + Context Ctx, ParseInputs Inputs, + UniqueFunction>)> + OnUpdated); sammccall wrote: > do we want to move the callback to be a clangd-global thing, rather than a > per-u

[PATCH] D42729: clang-format: Fix formatting of function body followed by semicolon

2018-01-31 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. I don't think cases where there is only a semicolon-less macro are particularly frequent/important either. You probably could even add a semicolon in those cases, right? How frequent are such cases in your codebase? Either way, they aren't fixed by this patch, so they a

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/AvoidFunctionalCheck.h:19 + +/// Check for several deprecated types and classes from header +/// massberg wrote: > massberg wrote: > > aaron.ballman wrote: > > > Missing full stop at the end o

[clang-tools-extra] r323885 - [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures.

2018-01-31 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Jan 31 08:26:27 2018 New Revision: 323885 URL: http://llvm.org/viewvc/llvm-project?rev=323885&view=rev Log: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures. Summary: This should also fix the current windows buildbot breakage (http:/

[PATCH] D42735: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures.

2018-01-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 132180. ioeric marked 4 inline comments as done. ioeric added a comment. - Addressed review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42735 Files: clangd/ClangdLSPServer.cpp clangd/Protocol.cpp test/clangd/authority-less

[PATCH] D42735: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures.

2018-01-31 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323885: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI… (authored by ioeric, committed by ). Changed prior to commit: https://reviews.llvm.org/D42735?vs=132180&id=132181

[PATCH] D42735: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures.

2018-01-31 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323885: [clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI… (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.

[PATCH] D42742: [clangd] Use pthread instead of thread_local to support more runtimes.

2018-01-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added reviewers: ilya-biryukov, bkramer. Herald added subscribers: cfe-commits, ioeric, jkorous-apple, klimek. thread_local has nice syntax and semantics, but requires __cxa_thread_atexit, and some not-ancient runtime libraries don't provide it. The clang

[PATCH] D42708: [clang-format] Set BinPackObjCProtocolList to Never for google style

2018-01-31 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton updated this revision to Diff 132185. benhamilton added a comment. Move to general property section Repository: rC Clang https://reviews.llvm.org/D42708 Files: lib/Format/Format.cpp unittests/Format/FormatTestObjC.cpp Index: unittests/Format/FormatTestObjC.cpp =

[PATCH] D42708: [clang-format] Set BinPackObjCProtocolList to Never for google style

2018-01-31 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton marked an inline comment as done. benhamilton added inline comments. Comment at: lib/Format/Format.cpp:765 GoogleStyle.ColumnLimit = 100; +GoogleStyle.BinPackObjCProtocolList = FormatStyle::BPS_Never; } jolesiak wrote: > If I understand co

[PATCH] D42650: [clang-format] New format param ObjCBinPackProtocolList

2018-01-31 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton updated this revision to Diff 132187. benhamilton marked 2 inline comments as done. benhamilton added a comment. - BinPackObjCProtocolList -> ObjCBinPackProtocolList Repository: rC Clang https://reviews.llvm.org/D42650 Files: include/clang/Format/Format.h lib/Format/Continuat

[PATCH] D42708: [clang-format] Set ObjCBinPackProtocolList to Never for google style

2018-01-31 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added inline comments. Comment at: lib/Format/Format.cpp:765 GoogleStyle.ColumnLimit = 100; +GoogleStyle.BinPackObjCProtocolList = FormatStyle::BPS_Never; } benhamilton wrote: > jolesiak wrote: > > If I understand correctly this is meant t

[PATCH] D42708: [clang-format] Set ObjCBinPackProtocolList to Never for google style

2018-01-31 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton updated this revision to Diff 132188. benhamilton marked an inline comment as done. benhamilton added a comment. - BinPackObjCProtocolList -> ObjCBinPackProtocolList Repository: rC Clang https://reviews.llvm.org/D42708 Files: lib/Format/Format.cpp unittests/Format/FormatTestO

[PATCH] D37831: [WebAssembly] Don't pass -ffunction-section/-fdata-sections

2018-01-31 Thread Dan Gohman via Phabricator via cfe-commits
sunfish accepted this revision. sunfish added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D37831#871238, @dschuff wrote: > I think the reasoning was really just that code size reduction is even more > important on wasm than other platforms, and because

[PATCH] D42708: [clang-format] Set ObjCBinPackProtocolList to Never for google style

2018-01-31 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton updated this revision to Diff 132189. benhamilton added a comment. Fix comment. Repository: rC Clang https://reviews.llvm.org/D42708 Files: lib/Format/Format.cpp unittests/Format/FormatTestObjC.cpp Index: unittests/Format/FormatTestObjC.cpp =

[PATCH] D41698: [DebugInfo] Enable debug information for C99 VLA types

2018-01-31 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl requested changes to this revision. aprantl added a comment. This revision now requires changes to proceed. The correct way to fix this is to generate the stack object unconditionally (it will get optimized away by mem2reg when optimizations are enabled) and only emit the dbg.declare whe

[PATCH] D42578: [AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions

2018-01-31 Thread Daniil Fukalov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323890: [AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions (authored by dfukalov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42578

[PATCH] D42578: [AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions

2018-01-31 Thread Daniil Fukalov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC323890: [AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions (authored by dfukalov, committed by ). Repository: rL LLVM https://reviews.llvm.org/D42578 Files: include/clang/Basic/BuiltinsAMDGPU

Re: r294872 - CodeGen: annotate ObjC ARC functions with ABI constraints

2018-01-31 Thread Akira Hatanaka via cfe-commits
> On Jan 30, 2018, at 4:32 PM, Saleem Abdulrasool wrote: > > Thanks for the note here. I’ll try to take a look at that, but, yes, the > frontend change itself is correct. I’ve seen many, many places where the > ObjCARC passes break down in the backend, and I’ve filed a few bugs on it in >

[PATCH] D42310: Formalize FreeBSD support of compiler rt

2018-01-31 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb added a comment. My only question is if we want an OS version check as the FreeBSD driver does now for libc++ vs libstdc++? FreeBSD started using libcompiler_rt for libgcc.a in 9.0. Repository: rC Clang https://reviews.llvm.org/D42310

[PATCH] D37831: [WebAssembly] Don't pass -ffunction-section/-fdata-sections

2018-01-31 Thread Derek Schuff via Phabricator via cfe-commits
dschuff added a comment. In https://reviews.llvm.org/D37831#992822, @sbc100 wrote: > After a little discussion about this and the -gc-sections linker flag, the > augments for the tools having sensible defaults seem to be winning. Well sure, when you put it that way, nobody can argue against se

[PATCH] D42684: clang-format: Allow optimizer to break template declaration.

2018-01-31 Thread Francois Ferrand via Phabricator via cfe-commits
Typz updated this revision to Diff 132198. Typz added a comment. Force wrap after multi-line template declaration Repository: rC Clang https://reviews.llvm.org/D42684 Files: include/clang/Format/Format.h lib/Format/ContinuationIndenter.cpp lib/Format/Format.cpp lib/Format/TokenAnnota

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/AvoidFunctionalCheck.h:19 + +/// Check for several deprecated types and classes from header +/// aaron.ballman wrote: > massberg wrote: > > massberg wrote: > > > aaron.ballman wrote: > > > > Missing

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/AvoidFunctionalCheck.h:19 + +/// Check for several deprecated types and classes from header +/// alexfh wrote: > aaron.ballman wrote: > > massberg wrote: > > > massberg wrote: > > > > aaron.ballman w

[PATCH] D42644: [asan] Intercept std::rethrow_exception indirectly.

2018-01-31 Thread Kuba (Brecka) Mracek via Phabricator via cfe-commits
kubamracek added a comment. Cool. Can we get a lit test as well? Repository: rCRT Compiler Runtime https://reviews.llvm.org/D42644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42730: Add clang-tidy check for use of types/classes/functions from header which are deprecated and removed in C++17

2018-01-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/AvoidFunctionalCheck.h:19 + +/// Check for several deprecated types and classes from header +/// alexfh wrote: > alexfh wrote: > > aaron.ballman wrote: > > > massberg wrote: > > > > massberg w

[PATCH] D16403: Add scope information to CFG

2018-01-31 Thread Maxim Ostapenko via Phabricator via cfe-commits
m.ostapenko added a comment. In https://reviews.llvm.org/D16403#992452, @NoQ wrote: > Thank you, this explanation looks very reasonable. > > All right, so right after the termination of the loop we have > > [B1] > 1: ForStmt (LoopExit) > 2: [B4.5].~A() (Implicit destructor) > 3: [B5.3].~A

[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

2018-01-31 Thread Kalle Huttunen via Phabricator via cfe-commits
khuttun added a comment. Herald added a subscriber: hintonda. Any more comments on this? https://reviews.llvm.org/D41655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42170: Fixit for 'typedef' instead of 'typename' typo

2018-01-31 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai accepted this revision. vsapsai added a comment. This revision is now accepted and ready to land. One small note about `-fdiagnostics-parseable-fixits`. The rest looks good to me. And the test looks readable. Comment at: FixIt/fixit-typedef-instead-of-typename-typo.cpp

[PATCH] D42745: [analyzer] Add support for __builtin_constant_p to BuiltinFunctionChecker

2018-01-31 Thread Felix Kostenzer via Phabricator via cfe-commits
sp4r74n-117 created this revision. sp4r74n-117 added reviewers: george.karpenkov, dcoughlin, dergachev.a. sp4r74n-117 created this object with visibility "All Users". Herald added subscribers: cfe-commits, a.sidorin, szepet, xazax.hun. Added evaluation of __builtin_constant_p to the dedicated Stat

r323894 - Revert "Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler."

2018-01-31 Thread Ana Pazos via cfe-commits
Author: apazos Date: Wed Jan 31 10:11:09 2018 New Revision: 323894 URL: http://llvm.org/viewvc/llvm-project?rev=323894&view=rev Log: Revert "Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler." Summary: Bringing back the code change and simplified test cases to test 32/6

  1   2   >