[clang-tools-extra] r339454 - [clangd] extend the publishDiagnostics response to send back fixits to the

2018-08-10 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Aug 10 10:25:07 2018 New Revision: 339454 URL: http://llvm.org/viewvc/llvm-project?rev=339454&view=rev Log: [clangd] extend the publishDiagnostics response to send back fixits to the client if the client supports this extension This commit extends the 'textDocument/publ

[clang-tools-extra] r339737 - [clangd] add missing test from r339454

2018-08-14 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Aug 14 15:20:35 2018 New Revision: 339737 URL: http://llvm.org/viewvc/llvm-project?rev=339737&view=rev Log: [clangd] add missing test from r339454 I forgot to checkin the test for the fixits into SVN. Added: clang-tools-extra/trunk/test/clangd/fixits-embed-in-diagn

[clang-tools-extra] r339738 - [clangd] add an extension field to LSP to transfer the diagnostic's category

2018-08-14 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Aug 14 15:21:40 2018 New Revision: 339738 URL: http://llvm.org/viewvc/llvm-project?rev=339738&view=rev Log: [clangd] add an extension field to LSP to transfer the diagnostic's category This patch adds a 'category' extension field to the LSP diagnostic that's sent by Cla

[clang-tools-extra] r339739 - [clangd] update the new test to check for diagnostic's category as well

2018-08-14 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Aug 14 15:27:03 2018 New Revision: 339739 URL: http://llvm.org/viewvc/llvm-project?rev=339739&view=rev Log: [clangd] update the new test to check for diagnostic's category as well Modified: clang-tools-extra/trunk/test/clangd/fixits-embed-in-diagnostic.test Modifie

r340102 - [ObjC] Error out when using forward-declared protocol in a @protocol

2018-08-17 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Aug 17 15:18:08 2018 New Revision: 340102 URL: http://llvm.org/viewvc/llvm-project?rev=340102&view=rev Log: [ObjC] Error out when using forward-declared protocol in a @protocol expression Clang emits invalid protocol metadata when a @protocol expression is used with a f

[clang-tools-extra] r340449 - [clangd] send diagnostic categories only when 'categorySupport'

2018-08-22 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 22 13:30:06 2018 New Revision: 340449 URL: http://llvm.org/viewvc/llvm-project?rev=340449&view=rev Log: [clangd] send diagnostic categories only when 'categorySupport' capability was given by the client After r339738 Clangd started sending categories with each diagn

r333046 - [AST][ObjC] Print implicit property expression that only has a setter without crashing

2018-05-22 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue May 22 17:52:20 2018 New Revision: 333046 URL: http://llvm.org/viewvc/llvm-project?rev=333046&view=rev Log: [AST][ObjC] Print implicit property expression that only has a setter without crashing rdar://40447209 Modified: cfe/trunk/include/clang/Basic/IdentifierTab

r314509 - [docs][refactor] Add refactoring engine design documentation

2017-09-29 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Sep 29 05:21:38 2017 New Revision: 314509 URL: http://llvm.org/viewvc/llvm-project?rev=314509&view=rev Log: [docs][refactor] Add refactoring engine design documentation This commit adds a refactoring engine design document that talks about the design and provides severa

r314704 - [refactor] Simplify the refactoring interface

2017-10-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Oct 2 11:42:43 2017 New Revision: 314704 URL: http://llvm.org/viewvc/llvm-project?rev=314704&view=rev Log: [refactor] Simplify the refactoring interface This commit simplifies the interface for the refactoring action rules and the refactoring requirements. It merges th

r314708 - Add std::move in RefactoringActionRulesTest.cpp

2017-10-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Oct 2 12:02:42 2017 New Revision: 314708 URL: http://llvm.org/viewvc/llvm-project?rev=314708&view=rev Log: Add std::move in RefactoringActionRulesTest.cpp Should fix http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental Modified: cfe/trunk/unittest

r315087 - [refactor] add support for refactoring options

2017-10-06 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 6 11:12:29 2017 New Revision: 315087 URL: http://llvm.org/viewvc/llvm-project?rev=315087&view=rev Log: [refactor] add support for refactoring options This commit adds initial support for refactoring options. One can now use optional and required std::string options

r315093 - [ObjC] Don't warn on readwrite properties with custom setters that

2017-10-06 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 6 12:24:26 2017 New Revision: 315093 URL: http://llvm.org/viewvc/llvm-project?rev=315093&view=rev Log: [ObjC] Don't warn on readwrite properties with custom setters that override readonly properties from protocols rdar://34192541 Added: cfe/trunk/test/SemaObjC

r315095 - Revert r315087

2017-10-06 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 6 12:49:29 2017 New Revision: 315095 URL: http://llvm.org/viewvc/llvm-project?rev=315095&view=rev Log: Revert r315087 clang-refactor crashes on some bots after this commit Removed: cfe/trunk/include/clang/Tooling/Refactoring/RefactoringOption.h cfe/trunk/i

r315103 - -Wdocumentation should allow '...' params in variadic function type aliases

2017-10-06 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 6 13:51:04 2017 New Revision: 315103 URL: http://llvm.org/viewvc/llvm-project?rev=315103&view=rev Log: -Wdocumentation should allow '...' params in variadic function type aliases rdar://34811344 Modified: cfe/trunk/lib/AST/CommentSema.cpp cfe/trunk/test/Se

r315398 - A '<' with a trigraph '#' is not a valid editor placeholder

2017-10-10 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Oct 10 17:41:20 2017 New Revision: 315398 URL: http://llvm.org/viewvc/llvm-project?rev=315398&view=rev Log: A '<' with a trigraph '#' is not a valid editor placeholder Credit to OSS-Fuzz for discovery: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3137#c5 rdar:

r315661 - Recommit r315087 "[refactor] add support for refactoring options"

2017-10-12 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Oct 12 18:53:13 2017 New Revision: 315661 URL: http://llvm.org/viewvc/llvm-project?rev=315661&view=rev Log: Recommit r315087 "[refactor] add support for refactoring options" The recommit fixes a UB bug that occurred only on a small number of bots. Original message: Th

r315738 - [clang-refactor] Apply source replacements

2017-10-13 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 13 12:42:05 2017 New Revision: 315738 URL: http://llvm.org/viewvc/llvm-project?rev=315738&view=rev Log: [clang-refactor] Apply source replacements This commit actually brings clang-refactor to a usable state as it can now apply the refactoring changes to source file

r315755 - Fix -Woverloaded-virtual warning in clang-refactor

2017-10-13 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 13 14:15:25 2017 New Revision: 315755 URL: http://llvm.org/viewvc/llvm-project?rev=315755&view=rev Log: Fix -Woverloaded-virtual warning in clang-refactor Modified: cfe/trunk/tools/clang-refactor/ClangRefactor.cpp Modified: cfe/trunk/tools/clang-refactor/ClangR

r315774 - Revert r315738

2017-10-13 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 13 15:47:44 2017 New Revision: 315774 URL: http://llvm.org/viewvc/llvm-project?rev=315774&view=rev Log: Revert r315738 The ParsedSourceRange class does not work correctly on Windows with the ':' drive separators Removed: cfe/trunk/test/Refactor/tool-apply-repla

r315785 - [Lex] Avoid out-of-bounds dereference in SkipLineComment

2017-10-13 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Oct 13 18:18:30 2017 New Revision: 315785 URL: http://llvm.org/viewvc/llvm-project?rev=315785&view=rev Log: [Lex] Avoid out-of-bounds dereference in SkipLineComment Credit to OSS-Fuzz for discovery: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3145 rdar://3452

r315918 - Recommit r315738 "[clang-refactor] Apply source replacements"

2017-10-16 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Oct 16 10:31:16 2017 New Revision: 315918 URL: http://llvm.org/viewvc/llvm-project?rev=315918&view=rev Log: Recommit r315738 "[clang-refactor] Apply source replacements" The fixed commit ensures that ParsedSourceRange works correctly with Windows paths. Original messag

r315923 - clang-refactor: Use llvm_unreachable in an unused override

2017-10-16 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Oct 16 11:07:16 2017 New Revision: 315923 URL: http://llvm.org/viewvc/llvm-project?rev=315923&view=rev Log: clang-refactor: Use llvm_unreachable in an unused override As suggested by David Blaikie! Modified: cfe/trunk/tools/clang-refactor/ClangRefactor.cpp Modifie

r315924 - [refactor] allow the use of refactoring diagnostics

2017-10-16 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Oct 16 11:28:26 2017 New Revision: 315924 URL: http://llvm.org/viewvc/llvm-project?rev=315924&view=rev Log: [refactor] allow the use of refactoring diagnostics This commit allows the refactoring library to use its own set of refactoring-specific diagnostics to reports t

r316104 - [refactor] selection: new CodeRangeASTSelection represents a set of selected

2017-10-18 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Oct 18 11:48:58 2017 New Revision: 316104 URL: http://llvm.org/viewvc/llvm-project?rev=316104&view=rev Log: [refactor] selection: new CodeRangeASTSelection represents a set of selected consecutive statements This commit adds a CodeRangeASTSelection value to the refactor

r316105 - [refactor] Add a doc comment to the test function in the selection

2017-10-18 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Oct 18 11:51:48 2017 New Revision: 316105 URL: http://llvm.org/viewvc/llvm-project?rev=316105&view=rev Log: [refactor] Add a doc comment to the test function in the selection unittest. As suggested by Haojian Wu! Modified: cfe/trunk/unittests/Tooling/ASTSelectionTe

r316458 - [code completion] Complete ObjC methods in @implementation without leading

2017-10-24 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Oct 24 09:39:37 2017 New Revision: 316458 URL: http://llvm.org/viewvc/llvm-project?rev=316458&view=rev Log: [code completion] Complete ObjC methods in @implementation without leading '-'/'+' prefix rdar://12040840 Modified: cfe/trunk/include/clang/Sema/Sema.h c

r316465 - [refactor] Initial outline of implementation of "extract function" refactoring

2017-10-24 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Oct 24 10:18:45 2017 New Revision: 316465 URL: http://llvm.org/viewvc/llvm-project?rev=316465&view=rev Log: [refactor] Initial outline of implementation of "extract function" refactoring This commit adds an initial, skeleton outline of the "extract function" refactoring

r316467 - Add missing clangRewrite lib dependency for clangToolingRefactor

2017-10-24 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Oct 24 10:23:53 2017 New Revision: 316467 URL: http://llvm.org/viewvc/llvm-project?rev=316467&view=rev Log: Add missing clangRewrite lib dependency for clangToolingRefactor Modified: cfe/trunk/lib/Tooling/Refactoring/CMakeLists.txt Modified: cfe/trunk/lib/Tooling/R

r341697 - warn_stdlibcxx_not_found: suggest '-stdlib=libc++' instead of '-std'

2018-09-07 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Sep 7 11:59:45 2018 New Revision: 341697 URL: http://llvm.org/viewvc/llvm-project?rev=341697&view=rev Log: warn_stdlibcxx_not_found: suggest '-stdlib=libc++' instead of '-std' Addresses first post-commit feedback for r335081 from Nico Modified: cfe/trunk/include/c

[libcxx] r337782 - Revert r337727 as it caused Darwin bot failures

2018-07-23 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jul 23 17:27:31 2018 New Revision: 337782 URL: http://llvm.org/viewvc/llvm-project?rev=337782&view=rev Log: Revert r337727 as it caused Darwin bot failures Modified: libcxx/trunk/CMakeLists.txt Modified: libcxx/trunk/CMakeLists.txt URL: http://llvm.org/viewvc/llvm

[libcxx] r337968 - [libc++] Follow-up to r337960: specify lambda's return type to avoid

2018-07-25 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Jul 25 14:50:44 2018 New Revision: 337968 URL: http://llvm.org/viewvc/llvm-project?rev=337968&view=rev Log: [libc++] Follow-up to r337960: specify lambda's return type to avoid -Wc++11-narrowing warning on Darwin The internal CI produced the following diagnostic: error:

[libcxx] r337984 - [libc++] Follow-up to r337968: use an explicit cast as suggested by Eric

2018-07-25 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Jul 25 16:59:54 2018 New Revision: 337984 URL: http://llvm.org/viewvc/llvm-project?rev=337984&view=rev Log: [libc++] Follow-up to r337968: use an explicit cast as suggested by Eric Modified: libcxx/trunk/src/experimental/filesystem/filesystem_common.h Modified: lib

[clang-tools-extra] r338597 - [clangd] allow clients to control the compilation database by passing in

2018-08-01 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 1 10:39:29 2018 New Revision: 338597 URL: http://llvm.org/viewvc/llvm-project?rev=338597&view=rev Log: [clangd] allow clients to control the compilation database by passing in compilationDatabaseChanges in the 'workspace/didChangeConfiguration' request This commit

[clang-tools-extra] r338919 - [clangd] capitalize diagnostic messages

2018-08-03 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Aug 3 13:43:28 2018 New Revision: 338919 URL: http://llvm.org/viewvc/llvm-project?rev=338919&view=rev Log: [clangd] capitalize diagnostic messages The diagnostic messages that are sent to the client from Clangd are now always capitalized. Differential Revision: https:

r324514 - [PR36008] Avoid -Wsign-compare warning for enum constants in

2018-02-07 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Feb 7 12:45:39 2018 New Revision: 324514 URL: http://llvm.org/viewvc/llvm-project?rev=324514&view=rev Log: [PR36008] Avoid -Wsign-compare warning for enum constants in typeof expressions This commit looks through typeof type at the original expression when diagnosing -

r324651 - PR36307: Consume the #pragma options align annotation token after

2018-02-08 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Feb 8 13:20:43 2018 New Revision: 324651 URL: http://llvm.org/viewvc/llvm-project?rev=324651&view=rev Log: PR36307: Consume the #pragma options align annotation token after semantic analysis to prevent incorrect -Wpragma-pack warning for an included file rdar://3735495

r325994 - [Sema][ObjC] Process category attributes before checking protocol uses

2018-02-23 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Feb 23 15:49:43 2018 New Revision: 325994 URL: http://llvm.org/viewvc/llvm-project?rev=325994&view=rev Log: [Sema][ObjC] Process category attributes before checking protocol uses This ensures that any availability attributes are attached to the category before the avail

r303751 - [index] The references to explicit class properties should be recorded

2017-05-24 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed May 24 09:23:40 2017 New Revision: 303751 URL: http://llvm.org/viewvc/llvm-project?rev=303751&view=rev Log: [index] The references to explicit class properties should be recorded rdar://32376363 Modified: cfe/trunk/lib/Index/IndexBody.cpp cfe/trunk/test/Index/C

r303761 - Warn about uses of `@available` that can't suppress the

2017-05-24 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed May 24 10:15:29 2017 New Revision: 303761 URL: http://llvm.org/viewvc/llvm-project?rev=303761&view=rev Log: Warn about uses of `@available` that can't suppress the -Wunguarded-availability warnings rdar://32306520 Differential Revision: https://reviews.llvm.org/D33450

r304538 - Avoid calling report_fatal_error in the destructor of raw_fd_ostream

2017-06-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 2 05:36:56 2017 New Revision: 304538 URL: http://llvm.org/viewvc/llvm-project?rev=304538&view=rev Log: Avoid calling report_fatal_error in the destructor of raw_fd_ostream when saving a module timestamp file This commit doesn't include a test as it requires a test

r304542 - Tie the macOS tests in test/Integration to the latest macOS SDK

2017-06-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 2 06:26:35 2017 New Revision: 304542 URL: http://llvm.org/viewvc/llvm-project?rev=304542&view=rev Log: Tie the macOS tests in test/Integration to the latest macOS SDK This change will ensure that these tests won't fail when a new SDK that utilizes new compiler feat

r304553 - ASTPrinter: Objective-C method declarations don't need a space after

2017-06-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 2 10:02:59 2017 New Revision: 304553 URL: http://llvm.org/viewvc/llvm-project?rev=304553&view=rev Log: ASTPrinter: Objective-C method declarations don't need a space after the return type rdar://32332039 Modified: cfe/trunk/lib/AST/DeclPrinter.cpp cfe/trun

r305117 - [libclang] Merge multiple availability clauses when getting the platform's

2017-06-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 9 16:29:45 2017 New Revision: 305117 URL: http://llvm.org/viewvc/llvm-project?rev=305117&view=rev Log: [libclang] Merge multiple availability clauses when getting the platform's availability Patch by Ronald Wampler! Differential Revision: https://reviews.llvm.org/

r305122 - Revert r305117

2017-06-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 9 17:06:36 2017 New Revision: 305122 URL: http://llvm.org/viewvc/llvm-project?rev=305122&view=rev Log: Revert r305117 It caused `Index/availability.c` test failure on Linux Modified: cfe/trunk/test/Index/availability.c cfe/trunk/tools/libclang/CIndex.cpp

r305221 - Recommit r305117: [libclang] Merge multiple availability clauses when

2017-06-12 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jun 12 14:06:30 2017 New Revision: 305221 URL: http://llvm.org/viewvc/llvm-project?rev=305221&view=rev Log: Recommit r305117: [libclang] Merge multiple availability clauses when getting the platform's availability Patch by Ronald Wampler! Differential Revision: https:/

r305504 - [index] Index static_assert declarations

2017-06-15 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jun 15 15:50:43 2017 New Revision: 305504 URL: http://llvm.org/viewvc/llvm-project?rev=305504&view=rev Log: [index] Index static_assert declarations static_assert declarations have to be visited while indexing so that we can gather the references to declarations that ar

r305508 - [index] Record C++17 global binding declarations

2017-06-15 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jun 15 16:19:01 2017 New Revision: 305508 URL: http://llvm.org/viewvc/llvm-project?rev=305508&view=rev Log: [index] Record C++17 global binding declarations The global C++17 binding declarations should be indexed as variable symbols. Differential Revision: https://revi

r305511 - [Completion] Code complete the members for a dependent type after a '::'

2017-06-15 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jun 15 16:40:54 2017 New Revision: 305511 URL: http://llvm.org/viewvc/llvm-project?rev=305511&view=rev Log: [Completion] Code complete the members for a dependent type after a '::' This commit is a follow up to r302797 which added support for dependent completions after

r305576 - [PR33394] Avoid lexing editor placeholders when Clang is used only

2017-06-16 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 16 15:13:39 2017 New Revision: 305576 URL: http://llvm.org/viewvc/llvm-project?rev=305576&view=rev Log: [PR33394] Avoid lexing editor placeholders when Clang is used only for preprocessing r300667 added support for editor placeholder to Clang. That commit didn’t tak

r305678 - [driver][macOS] Pick the system version for the deployment target

2017-06-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jun 19 05:57:27 2017 New Revision: 305678 URL: http://llvm.org/viewvc/llvm-project?rev=305678&view=rev Log: [driver][macOS] Pick the system version for the deployment target if the SDK is newer than the system This commit improves the driver by making sure that it picks

r305680 - Add missing OS check to r305678

2017-06-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jun 19 06:25:37 2017 New Revision: 305680 URL: http://llvm.org/viewvc/llvm-project?rev=305680&view=rev Log: Add missing OS check to r305678 That commit failed on non-macOS buildbots as I've forgotten to make sure that the system on which Clang is running on is actually

r305685 - Move the test from r305678 to a separte file with 'REQUIRES: system-darwin'

2017-06-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jun 19 07:13:59 2017 New Revision: 305685 URL: http://llvm.org/viewvc/llvm-project?rev=305685&view=rev Log: Move the test from r305678 to a separte file with 'REQUIRES: system-darwin' Otherwise it will fail on non-macOS systems. Added: cfe/trunk/test/Driver/darwin-

r305719 - [Parser][ObjC] Use an artificial EOF token while parsing lexed ObjC methods

2017-06-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Jun 19 12:53:21 2017 New Revision: 305719 URL: http://llvm.org/viewvc/llvm-project?rev=305719&view=rev Log: [Parser][ObjC] Use an artificial EOF token while parsing lexed ObjC methods This change avoid a crash that occurred when skipping to EOF while parsing an ObjC int

r305803 - Split the expectations in tests from r305719 over multiple lines to

2017-06-20 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jun 20 11:12:26 2017 New Revision: 305803 URL: http://llvm.org/viewvc/llvm-project?rev=305803&view=rev Log: Split the expectations in tests from r305719 over multiple lines to enhance readability As suggested by Duncan Exon Smith! Modified: cfe/trunk/test/Parser/ob

r305804 - Add a missing '[' to the tests from r305719

2017-06-20 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jun 20 11:16:11 2017 New Revision: 305804 URL: http://llvm.org/viewvc/llvm-project?rev=305804&view=rev Log: Add a missing '[' to the tests from r305719 This clarifies the tests as the missing ']' is important, and not the '['. Modified: cfe/trunk/test/Parser/objc-a

r305891 - Revert r305678: [driver][macOS] Pick the system version for the

2017-06-21 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Jun 21 05:27:24 2017 New Revision: 305891 URL: http://llvm.org/viewvc/llvm-project?rev=305891&view=rev Log: Revert r305678: [driver][macOS] Pick the system version for the deployment target if the SDK is newer than the system This commit also reverts follow-up commits r

r305911 - [index] Nested class declarations should be annotated with the

2017-06-21 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Jun 21 08:51:04 2017 New Revision: 305911 URL: http://llvm.org/viewvc/llvm-project?rev=305911&view=rev Log: [index] Nested class declarations should be annotated with the "specializationOf" relation if they pseudo-override a type in the base template This commit fixes a

r305996 - [index] Add the "SpecializationOf" relation to the forward declarations

2017-06-22 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jun 22 06:20:07 2017 New Revision: 305996 URL: http://llvm.org/viewvc/llvm-project?rev=305996&view=rev Log: [index] Add the "SpecializationOf" relation to the forward declarations of class template specializations This commit fixes an issue where a forward declaration o

r306033 - [Sema] Add -Wunguarded-availability-new

2017-06-22 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jun 22 12:02:24 2017 New Revision: 306033 URL: http://llvm.org/viewvc/llvm-project?rev=306033&view=rev Log: [Sema] Add -Wunguarded-availability-new The new compiler warning -Wunguarded-availability-new is a subset of -Wunguarded-availability. It is on by default. It onl

r306103 - PR26195: Set correct NestedNameSpecifierLoc for the dependent initializer

2017-06-23 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 23 09:10:07 2017 New Revision: 306103 URL: http://llvm.org/viewvc/llvm-project?rev=306103&view=rev Log: PR26195: Set correct NestedNameSpecifierLoc for the dependent initializer This commit fixes incorrect source positions of dependent c'tor initializers like in the

r306111 - Revert r306103: "PR26195: Set correct NestedNameSpecifierLoc for the

2017-06-23 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 23 10:10:54 2017 New Revision: 306111 URL: http://llvm.org/viewvc/llvm-project?rev=306111&view=rev Log: Revert r306103: "PR26195: Set correct NestedNameSpecifierLoc for the dependent initializer" It caused buildbot failures such as this one: http://bb.pgr.jp/builder

r320734 - [Preprocessor] Implement __is_target_{arch|vendor|os|environment} function-like

2017-12-14 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Dec 14 11:22:02 2017 New Revision: 320734 URL: http://llvm.org/viewvc/llvm-project?rev=320734&view=rev Log: [Preprocessor] Implement __is_target_{arch|vendor|os|environment} function-like builtin macros This patch implements the __is_target_arch, __is_target_vendor, __i

r320735 - Commit missing tests for r320734

2017-12-14 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Dec 14 11:22:41 2017 New Revision: 320735 URL: http://llvm.org/viewvc/llvm-project?rev=320735&view=rev Log: Commit missing tests for r320734 Added: cfe/trunk/test/Preprocessor/is_target.c cfe/trunk/test/Preprocessor/is_target_arm.c cfe/trunk/test/Preprocesso

r320748 - [libclang] Add support for checking abstractness of records

2017-12-14 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Dec 14 14:01:50 2017 New Revision: 320748 URL: http://llvm.org/viewvc/llvm-project?rev=320748&view=rev Log: [libclang] Add support for checking abstractness of records This patch allows checking whether a C++ record declaration is abstract through libclang and clang.cin

r320766 - Remove duplicate python libclang changes from r320748

2017-12-14 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Dec 14 15:40:42 2017 New Revision: 320766 URL: http://llvm.org/viewvc/llvm-project?rev=320766&view=rev Log: Remove duplicate python libclang changes from r320748 Modified: cfe/trunk/bindings/python/clang/cindex.py cfe/trunk/bindings/python/tests/cindex/test_curs

r320853 - __is_target_arch: Check the arch and subarch instead of the arch name

2017-12-15 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Dec 15 11:58:38 2017 New Revision: 320853 URL: http://llvm.org/viewvc/llvm-project?rev=320853&view=rev Log: __is_target_arch: Check the arch and subarch instead of the arch name This ensures that when compiling for "arm64" __is_target_arch will succeed for both "arm64"

r320854 - __is_target_environment: Check the environment after parsing it

2017-12-15 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Dec 15 12:07:53 2017 New Revision: 320854 URL: http://llvm.org/viewvc/llvm-project?rev=320854&view=rev Log: __is_target_environment: Check the environment after parsing it This ensures that target triples with environment versions can still work with __is_target_environ

r321099 - [driver][darwin] Take the OS version specified in "-target" as the target

2017-12-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Dec 19 11:05:04 2017 New Revision: 321099 URL: http://llvm.org/viewvc/llvm-project?rev=321099&view=rev Log: [driver][darwin] Take the OS version specified in "-target" as the target OS instead of inferring it from SDK / environment The OS version is specified in -target

r321102 - [driver][darwin] Set the 'simulator' environment when it's specified

2017-12-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Dec 19 11:56:14 2017 New Revision: 321102 URL: http://llvm.org/viewvc/llvm-project?rev=321102&view=rev Log: [driver][darwin] Set the 'simulator' environment when it's specified in '-target' rdar://35742458 Differential Revision: https://reviews.llvm.org/D41076 Modifie

r321145 - [darwin][driver] Warn about mismatching --version-min rather than

2017-12-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Dec 19 18:31:30 2017 New Revision: 321145 URL: http://llvm.org/viewvc/llvm-project?rev=321145&view=rev Log: [darwin][driver] Warn about mismatching --version-min rather than superfluous --version-min compiler option rdar://35813850 Differential Revision: https://review

r321222 - Fix an assertion failure regression in isDesignatorAtObjectEnd for

2017-12-20 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Dec 20 13:03:38 2017 New Revision: 321222 URL: http://llvm.org/viewvc/llvm-project?rev=321222&view=rev Log: Fix an assertion failure regression in isDesignatorAtObjectEnd for __builtin_object_size with incomplete array type in struct The commit r316245 introduced a regr

r321559 - [driver][darwin] Take the OS version from -m-version-min argument when

2017-12-29 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Dec 29 09:42:40 2017 New Revision: 321559 URL: http://llvm.org/viewvc/llvm-project?rev=321559&view=rev Log: [driver][darwin] Take the OS version from -m-version-min argument when -target has no OS version This ensures that Clang won't warn about redundant -m-version-min

r321775 - PR35815: Separate out the ns-consumed diagnostic into an error and

2018-01-03 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Jan 3 15:52:42 2018 New Revision: 321775 URL: http://llvm.org/viewvc/llvm-project?rev=321775&view=rev Log: PR35815: Separate out the ns-consumed diagnostic into an error and a warning This commit separates out the warn_nsconsumed_attribute_mismatch and warn_nsreturns_r

r327322 - [Tooling] Clear the PreambleSrcLocCache when preamble is discarded during reparsing

2018-03-12 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Mar 12 12:36:29 2018 New Revision: 327322 URL: http://llvm.org/viewvc/llvm-project?rev=327322&view=rev Log: [Tooling] Clear the PreambleSrcLocCache when preamble is discarded during reparsing This ensures that diagnostics are not remapped to incorrect preamble location

r335063 - [Darwin] Add a warning for missing include path for libstdc++

2018-06-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jun 19 10:56:03 2018 New Revision: 335063 URL: http://llvm.org/viewvc/llvm-project?rev=335063&view=rev Log: [Darwin] Add a warning for missing include path for libstdc++ Xcode 10 removes support for libstdc++, but the users just get a confusing include not file warning

r335073 - Revert r335063 as it causes bot failures

2018-06-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jun 19 12:43:07 2018 New Revision: 335073 URL: http://llvm.org/viewvc/llvm-project?rev=335073&view=rev Log: Revert r335063 as it causes bot failures Removed: cfe/trunk/test/Frontend/warning-stdlibcxx-darwin.cpp Modified: cfe/trunk/include/clang/Basic/DiagnosticF

r335081 - Recommit r335063: [Darwin] Add a warning for missing include path for libstdc++

2018-06-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Jun 19 15:47:53 2018 New Revision: 335081 URL: http://llvm.org/viewvc/llvm-project?rev=335081&view=rev Log: Recommit r335063: [Darwin] Add a warning for missing include path for libstdc++ The recommit ensures that the tests that failed on bots don't trigger the warning

r351459 - [ObjC] Follow-up r350768 and allow the use of unavailable methods that are

2019-01-17 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jan 17 10:12:45 2019 New Revision: 351459 URL: http://llvm.org/viewvc/llvm-project?rev=351459&view=rev Log: [ObjC] Follow-up r350768 and allow the use of unavailable methods that are declared in a parent class from within the @implementation context This commit extends

r352084 - Add a priority field to availability attributes to prioritize explicit

2019-01-24 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jan 24 11:14:39 2019 New Revision: 352084 URL: http://llvm.org/viewvc/llvm-project?rev=352084&view=rev Log: Add a priority field to availability attributes to prioritize explicit attributes from declaration over attributes from '#pragma clang attribute' Before this comm

r352125 - [clang-format] square parens with one token are not Objective-C message sends

2019-01-24 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jan 24 15:07:58 2019 New Revision: 352125 URL: http://llvm.org/viewvc/llvm-project?rev=352125&view=rev Log: [clang-format] square parens with one token are not Objective-C message sends The commit r322690 introduced support for ObjC detection in header files. Unfortunat

r346822 - [HeaderSearch] loadSubdirectoryModuleMaps should respect -working-directory

2018-11-13 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Nov 13 17:08:03 2018 New Revision: 346822 URL: http://llvm.org/viewvc/llvm-project?rev=346822&view=rev Log: [HeaderSearch] loadSubdirectoryModuleMaps should respect -working-directory Include search paths can be relative paths. The loadSubdirectoryModuleMaps function s

r348448 - [darwin] remove version number check when enabling -fobjc-subscripting-legacy-runtime

2018-12-05 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Dec 5 18:44:23 2018 New Revision: 348448 URL: http://llvm.org/viewvc/llvm-project?rev=348448&view=rev Log: [darwin] remove version number check when enabling -fobjc-subscripting-legacy-runtime This subscripting feature actually works on older OS versions anyway. rdar

r348540 - [frontend][darwin] warn_stdlibcxx_not_found: supress warning for preprocessed input

2018-12-06 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Dec 6 14:45:58 2018 New Revision: 348540 URL: http://llvm.org/viewvc/llvm-project?rev=348540&view=rev Log: [frontend][darwin] warn_stdlibcxx_not_found: supress warning for preprocessed input Addresses second post-commit feedback for r335081 from Nico Modified: cf

r356605 - Fix implicit ios -> watchOS availability version mapping for

2019-03-20 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Mar 20 13:02:00 2019 New Revision: 356605 URL: http://llvm.org/viewvc/llvm-project?rev=356605&view=rev Log: Fix implicit ios -> watchOS availability version mapping for versions that have the major number only rdar://48018651 Modified: cfe/trunk/lib/Sema/SemaDeclAt

r357740 - [test] Specify an explicit darwin version in a triple in

2019-04-04 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Apr 4 18:48:11 2019 New Revision: 357740 URL: http://llvm.org/viewvc/llvm-project?rev=357740&view=rev Log: [test] Specify an explicit darwin version in a triple in `test/Driver/debug-options.c` to ensure that the driver selects the DWARF 2 version as intended by the tes

r359353 - [driver][macOS] Link libarclite from the default toolchain when clang

2019-04-26 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Apr 26 15:40:47 2019 New Revision: 359353 URL: http://llvm.org/viewvc/llvm-project?rev=359353&view=rev Log: [driver][macOS] Link libarclite from the default toolchain when clang is running in a toolchain outside of xcode 'libarclite' usually lives in the same toolchain

r359356 - [clang][driver] Weaken the test from 359353 to appease Windows bots

2019-04-26 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Apr 26 15:58:31 2019 New Revision: 359356 URL: http://llvm.org/viewvc/llvm-project?rev=359356&view=rev Log: [clang][driver] Weaken the test from 359353 to appease Windows bots Modified: cfe/trunk/test/Driver/arclite-link-external-toolchain.c Modified: cfe/trunk/tes

r360374 - NFC, make XFAIL work on macOS correctly for test/Driver/XRay/xray-instrument-os.c

2019-05-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu May 9 13:35:41 2019 New Revision: 360374 URL: http://llvm.org/viewvc/llvm-project?rev=360374&view=rev Log: NFC, make XFAIL work on macOS correctly for test/Driver/XRay/xray-instrument-os.c The test 'test/Driver/XRay/xray-instrument-os.c' is supposed to XFAIL on -darw

r311778 - [Basic] Add a DiagnosticError llvm::ErrorInfo subclass

2017-08-25 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Aug 25 08:48:00 2017 New Revision: 311778 URL: http://llvm.org/viewvc/llvm-project?rev=311778&view=rev Log: [Basic] Add a DiagnosticError llvm::ErrorInfo subclass Clang's DiagnosticError is an llvm::Error payload that stores a partial diagnostic and its location. I'll b

r311779 - [ObjC] Add a -Wobjc-messaging-id warning

2017-08-25 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Aug 25 09:12:17 2017 New Revision: 311779 URL: http://llvm.org/viewvc/llvm-project?rev=311779&view=rev Log: [ObjC] Add a -Wobjc-messaging-id warning -Wobjc-messaging-id is a new, non-default warning that warns about message sends to unqualified id in Objective-C. This w

r311884 - [refactor] initial support for refactoring action rules

2017-08-28 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Aug 28 04:12:05 2017 New Revision: 311884 URL: http://llvm.org/viewvc/llvm-project?rev=311884&view=rev Log: [refactor] initial support for refactoring action rules This patch implements the initial support for refactoring action rules. The first rule that's supported is

r311886 - Avoid missing std error code in RefactoringActionRulesTest.cpp

2017-08-28 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Aug 28 05:03:08 2017 New Revision: 311886 URL: http://llvm.org/viewvc/llvm-project?rev=311886&view=rev Log: Avoid missing std error code in RefactoringActionRulesTest.cpp This should fix this bot: http://bb.pgr.jp/builders/i686-mingw32-RA-on-linux Modified: cfe/tru

r312121 - [refactor] Examine the whole range for ObjC @implementation decls

2017-08-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 30 06:24:37 2017 New Revision: 312121 URL: http://llvm.org/viewvc/llvm-project?rev=312121&view=rev Log: [refactor] Examine the whole range for ObjC @implementation decls when computing the AST selection Modified: cfe/trunk/lib/Tooling/Refactoring/ASTSelection.cp

r312127 - [refactor] AST selection tree should contain syntactic form

2017-08-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 30 08:00:27 2017 New Revision: 312127 URL: http://llvm.org/viewvc/llvm-project?rev=312127&view=rev Log: [refactor] AST selection tree should contain syntactic form of PseudoObjectExpr The AST selection finder now constructs a selection tree that contains only the sy

r312131 - Revert r312127 as the ObjC unittest code fails to compile on Linux

2017-08-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 30 08:11:45 2017 New Revision: 312131 URL: http://llvm.org/viewvc/llvm-project?rev=312131&view=rev Log: Revert r312127 as the ObjC unittest code fails to compile on Linux Modified: cfe/trunk/lib/Tooling/Refactoring/ASTSelection.cpp cfe/trunk/unittests/Toolin

r312132 - Recommit r312127: [refactor] AST selection tree should contain syntactic

2017-08-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 30 08:28:01 2017 New Revision: 312132 URL: http://llvm.org/viewvc/llvm-project?rev=312132&view=rev Log: Recommit r312127: [refactor] AST selection tree should contain syntactic form of PseudoObjectExpr The new commit adjusts unittest test code compilation options so

r312133 - Avoid 'size_t' typedef in the unittest ObjC code

2017-08-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Aug 30 08:37:30 2017 New Revision: 312133 URL: http://llvm.org/viewvc/llvm-project?rev=312133&view=rev Log: Avoid 'size_t' typedef in the unittest ObjC code This should fix http://bb.pgr.jp/builders/test-clang-msc-x64-on-i686-linux-RA Modified: cfe/trunk/unittests/

[libunwind] r312240 - Build LLVM with -Wstrict-prototypes enabled

2017-08-31 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Aug 31 06:23:24 2017 New Revision: 312240 URL: http://llvm.org/viewvc/llvm-project?rev=312240&view=rev Log: Build LLVM with -Wstrict-prototypes enabled Clang 5 supports -Wstrict-prototypes. We should use it to catch any C declarations that declare a non-prototype functi

[libunwind] r312246 - Revert r312240

2017-08-31 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Aug 31 08:51:23 2017 New Revision: 312246 URL: http://llvm.org/viewvc/llvm-project?rev=312246&view=rev Log: Revert r312240 The buildbots have shown that -Wstrict-prototypes behaves differently in GCC and Clang so we should keep it disabled until Clang follows GCC's beha

r312316 - [refactor] Use a RefactoringResultConsumer instead of tagged refactoring

2017-09-01 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Sep 1 02:16:02 2017 New Revision: 312316 URL: http://llvm.org/viewvc/llvm-project?rev=312316&view=rev Log: [refactor] Use a RefactoringResultConsumer instead of tagged refactoring rule classes This commit changes the way that the refactoring results are produced. Inste

  1   2   3   4   5   6   7   >