[PATCH] D47233: [CodeGen] Emit MSVC RTTI for Obj-C EH types

2018-09-27 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. In https://reviews.llvm.org/D47233#1129810, @DHowett-MSFT wrote: > We ran into some critical issues with this approach on x64. The pointers in > the exception record are supposed to be image-relative instead of absolute, > so I tried to make them absolute to libobjc2's

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-27 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. > I would have done the same for the GNUstep RTTI here, except I don't actually > see the code for that anywhere, and no tests seem to break either, so I > believe it's not upstreamed yet. I'm not sure I understand this comment. The compiler code is in LLVM and the t

[PATCH] D45045: [DebugInfo] Generate debug information for labels.

2018-09-27 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. The latest reland of this change still causes compilation crashes, see PR 39094. I'll revert this change for now to fix compilation again. Repository: rL LLVM https://reviews.llvm.org/D45045 ___ cfe-commits mailing list

r343183 - Revert "[DebugInfo] Generate debug information for labels."

2018-09-27 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Thu Sep 27 01:15:24 2018 New Revision: 343183 URL: http://llvm.org/viewvc/llvm-project?rev=343183&view=rev Log: Revert "[DebugInfo] Generate debug information for labels." This reverts commit r343148. It crashes on sanitizer-x86_64-linux-autoconf. Removed: cfe/trunk

[PATCH] D45045: [DebugInfo] Generate debug information for labels.

2018-09-27 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka reopened this revision. vitalybuka added a comment. Reverted in r343183 https://bugs.llvm.org/show_bug.cgi?id=39094 http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/29356/steps/build%20release%20tsan%20with%20clang/logs/stdio Repository: rL LLVM https://revi

r343184 - [Sema] Handle __va_start for Windows/ARM64 in the same way as for ARM

2018-09-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Thu Sep 27 01:24:15 2018 New Revision: 343184 URL: http://llvm.org/viewvc/llvm-project?rev=343184&view=rev Log: [Sema] Handle __va_start for Windows/ARM64 in the same way as for ARM This fixes PR39090. Differential Revision: https://reviews.llvm.org/D52571 Modified: c

[PATCH] D52571: [Sema] Handle __va_start for Windows/ARM64 in the same way as for ARM

2018-09-27 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343184: [Sema] Handle __va_start for Windows/ARM64 in the same way as for ARM (authored by mstorsjo, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llv

[PATCH] D52544: Improve diagnostics range reporting.

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added inline comments. This revision is now accepted and ready to land. Comment at: clangd/Diagnostics.cpp:55 // Accept the first range that contains the location. + llvm::Optional PossibleRange; for (const auto &CR : D.getRanges()) {

[PATCH] D52589: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901

2018-09-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri created this revision. lebedev.ri added reviewers: vsk, vitalybuka, filcab. Repository: rC Clang https://reviews.llvm.org/D52589 Files: test/CodeGen/catch-implicit-integer-conversions-basics.c test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c test/CodeGen/catc

[PATCH] D52591: Fix Bug 39067: The keyword "try" in C++ function-try-blocks doesn't obey BraceWrapping settings

2018-09-27 Thread Owen Pan via Phabricator via cfe-commits
owenpan created this revision. owenpan added reviewers: sammccall, klimek, djasper, krasimir. Herald added a subscriber: cfe-commits. https://bugs.llvm.org/show_bug.cgi?id=39067 Repository: rC Clang https://reviews.llvm.org/D52591 Files: lib/Format/UnwrappedLineParser.cpp unittests/Forma

[PATCH] D51686: [OpenMP] Improve search for libomptarget-nvptx

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld updated this revision to Diff 167250. Hahnfeld marked 2 inline comments as done. Hahnfeld added a comment. Add `const` per review comments. https://reviews.llvm.org/D51686 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/Cuda.cpp test/Driver/openmp-offload-gpu.c Ind

[PATCH] D51686: [OpenMP] Improve search for libomptarget-nvptx

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: lib/Driver/ToolChains/Cuda.cpp:665 +// Add path to lib / lib64 folder. +SmallString<256> DefaultLibPath = Hahnfeld wrote: > ABataev wrote: > > You're changing the order of the lookup for the paths. Is this int

[PATCH] D35170: [libcxx] Remove stray backticks from BuildingLibcxx.rst

2018-09-27 Thread Jakub Wilk via Phabricator via cfe-commits
jwilk added a comment. Any reason this hasn't been merged yet? https://reviews.llvm.org/D35170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D50901: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks

2018-09-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 167255. lebedev.ri marked 3 inline comments as done. lebedev.ri added a comment. - Split off the NFC preparatory changes. - Rebased. Repository: rC Clang https://reviews.llvm.org/D50901 Files: docs/UndefinedBehaviorSanitizer.rst include/clang/Basi

[PATCH] D52334: [clang-tidy] Build it even without static analyzer

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. There has been a commit that seems related: https://reviews.llvm.org/rL343168 @steveire could you please take a look at how it affects this patch? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52334 ___ c

[PATCH] D52595: [ARM] Alter test to account for change to armv6k default CPU

2018-09-27 Thread Peter Smith via Phabricator via cfe-commits
peter.smith created this revision. peter.smith added reviewers: falstaff84, nickdesaulniers, rengolin, labrinea. Herald added a reviewer: javed.absar. Herald added subscribers: chrib, kristof.beyls. Review https://reviews.llvm.org/D52594 will change the default in llvm for armv6k from the non-exi

[PATCH] D52047: [clangd] Add building benchmark and memory consumption tracking

2018-09-27 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 167267. kbobyrev added a comment. Pass data from I/O to `readIndexFile(StringRef)`. https://reviews.llvm.org/D52047 Files: clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp Index: clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp =

[PATCH] D52549: [VFS] Add a VFS wrapper which avoids opening nonexistent files by reading dirs.

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. This looks like a great improvement. The design looks reasonable to me. The cache states were a bit confusing at first, but I think more documentation when polishing the prototype could help. I'd be really interested in seeing some profiles before/after this optimization

[PATCH] D52219: [analyzer] (1/n) Support pointee mutation analysis in ExprMutationAnalyzer.

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. LGTM, with a few nits and a question. Please wait a bit if @aaron.ballman or @george.karpenkov have any comments before committing. Comment at: lib/Analysis/ExprMutationAnalyzer.cpp:88 +bool isPointeeMutable(const Expr *Exp, const ASTContext &Context

[PATCH] D52598: [OpenCL] Fixed address space cast in C style cast of C++ parsing

2018-09-27 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia created this revision. Anastasia added reviewers: rjmccall, yaxunl. C style cast in OpenCL C++ was ignoring the address space conversions from OpenCL C and as a result accepting incorrect code to compile. This commit adds correctness checking for address spaces. This makes all OpenCL C

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:21 + +#define PRINT_DEBUG 1 + kbobyrev wrote: > Do you plan to submit the patch with debugging messages or are you just using > these for better local debugging experience?

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 167270. JonasToth marked 6 inline comments as done. JonasToth added a comment. - move lexer stuff into LexerUtils - remove custom string handling function - address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51949 File

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 167282. JonasToth marked 3 inline comments as done. JonasToth added a comment. - add space after clang-tidy in banner - refactor slightly, add better in-code comments to explain whats happening, add more TODOs and FIXMEs Repository: rCTE Clang Tools Ext

[PATCH] D52544: Improve diagnostics range reporting.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: unittests/clangd/ClangdUnitTests.cpp:82 o]](); - foo()$semicolon[[]] + foo()$semicolon[[]]//with comments $unk[[unknown]](); ioeric wrote: > What is this `//with comments` for? Maybe explain it in the

[PATCH] D52544: Improve diagnostics range reporting.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 167283. kadircet marked 2 inline comments as done. kadircet added a comment. - Address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52544 Files: clangd/Diagnostics.cpp unittests/clangd/ClangdUnitTests.cpp Index: unittests

[clang-tools-extra] r343197 - Improve diagnostics range reporting.

2018-09-27 Thread Kadir Cetinkaya via cfe-commits
Author: kadircet Date: Thu Sep 27 05:12:42 2018 New Revision: 343197 URL: http://llvm.org/viewvc/llvm-project?rev=343197&view=rev Log: Improve diagnostics range reporting. Summary: If we have some range information coming from clang diagnostic, promote that one even if it doesn't contain diagnost

[PATCH] D52544: Improve diagnostics range reporting.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343197: Improve diagnostics range reporting. (authored by kadircet, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52544 Files: clang-tools-ex

[clang-tools-extra] r343198 - [clang-tidy] use CHECK-NOTES in tests for bugprone-forward-declaration-namespace

2018-09-27 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Thu Sep 27 05:17:59 2018 New Revision: 343198 URL: http://llvm.org/viewvc/llvm-project?rev=343198&view=rev Log: [clang-tidy] use CHECK-NOTES in tests for bugprone-forward-declaration-namespace Reviewers: aaron.ballman, alexfh, hokein Subscribers: xazax.hun, cfe-commits D

[PATCH] D52185: [clang-tidy] use CHECK-NOTES in tests for bugprone-forward-declaration-namespace

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL343198: [clang-tidy] use CHECK-NOTES in tests for bugprone-forward-declaration-namespace (authored by JonasToth, committed

[PATCH] D50850: clang: Add triples support for MIPS r6

2018-09-27 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan added a comment. Could you please update the patch against the current trunk? Repository: rC Clang https://reviews.llvm.org/D50850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang-tools-extra] r343199 - [clang-tidy] use CHECK-NOTES in tests for bugprone-use-after-move

2018-09-27 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Thu Sep 27 05:22:48 2018 New Revision: 343199 URL: http://llvm.org/viewvc/llvm-project?rev=343199&view=rev Log: [clang-tidy] use CHECK-NOTES in tests for bugprone-use-after-move Reviewers: alexfh, aaron.ballman, hokein Subscribers: xazax.hun, cfe-commits Differential Rev

[PATCH] D52228: [clang-tidy] use CHECK-NOTES in tests for bugprone-use-after-move

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL343199: [clang-tidy] use CHECK-NOTES in tests for bugprone-use-after-move (authored by JonasToth, committed by ). Herald a

[PATCH] D52229: [clang-tidy] use CHECK-NOTES in tests for bugprone suspicious-enum-usage

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL343201: [clang-tidy] use CHECK-NOTES in tests for bugprone suspicious-enum-usage (authored by JonasToth, committed by ). H

[clang-tools-extra] r343201 - [clang-tidy] use CHECK-NOTES in tests for bugprone suspicious-enum-usage

2018-09-27 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Thu Sep 27 05:30:44 2018 New Revision: 343201 URL: http://llvm.org/viewvc/llvm-project?rev=343201&view=rev Log: [clang-tidy] use CHECK-NOTES in tests for bugprone suspicious-enum-usage Reviewers: alexfh, aaron.ballman, hokein Subscribers: xazax.hun, cfe-commits Different

r343204 - [Lex] TokenConcatenation now takes const Preprocessor

2018-09-27 Thread Kristof Umann via cfe-commits
Author: szelethus Date: Thu Sep 27 05:40:16 2018 New Revision: 343204 URL: http://llvm.org/viewvc/llvm-project?rev=343204&view=rev Log: [Lex] TokenConcatenation now takes const Preprocessor Differential Revision: https://reviews.llvm.org/D52502 Modified: cfe/trunk/include/clang/Lex/TokenConc

[PATCH] D52547: Tell whether file/folder for include completions.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. In https://reviews.llvm.org/D52547#1246701, @ilya-biryukov wrote: > A drive-by comment. > Would it be cleaner to pass this information from clang? Relying on > completion label seems shaky. Actually I also wanted to do that at first, but then wasn't really sure wheth

[PATCH] D52502: [Lex] TokenConcatenation now takes const Preprocessor

2018-09-27 Thread Umann Kristóf via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343204: [Lex] TokenConcatenation now takes const Preprocessor (authored by Szelethus, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52502?vs

[PATCH] D52334: [clang-tidy] Build it even without static analyzer

2018-09-27 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. @JonasToth Once again - `clangStaticAnalyzerCheckers` is not `clangAnalysis`. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

r343205 - Revert untintentionally commited changes

2018-09-27 Thread Kristof Umann via cfe-commits
Author: szelethus Date: Thu Sep 27 05:46:37 2018 New Revision: 343205 URL: http://llvm.org/viewvc/llvm-project?rev=343205&view=rev Log: Revert untintentionally commited changes Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h Modified: cfe/trunk/lib

[PATCH] D52502: [Lex] TokenConcatenation now takes const Preprocessor

2018-09-27 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: cfe/trunk/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h:82-84 + // TODO: This destructor shouldn't be virtual, but breaks buildbots with + // -Werror -Wnon-virtual-dtor. + virtual ~FieldNode() = default; ---

[PATCH] D52334: [clang-tidy] Build it even without static analyzer

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. In https://reviews.llvm.org/D52334#1247809, @steveire wrote: > @JonasToth Once again - `clangStaticAnalyzerCheckers` is not `clangAnalysis`. > Also, that commit changes the `mpi` plugin, which is excluded by this patch. I pinged because of the MPI thing, i did not lo

[PATCH] D51686: [OpenMP] Improve search for libomptarget-nvptx

2018-09-27 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG https://reviews.llvm.org/D51686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

r343207 - [OpenCL] Improve extension-version.cl and to_addr_builtin.cl tests

2018-09-27 Thread Sven van Haastregt via cfe-commits
Author: svenvh Date: Thu Sep 27 06:20:29 2018 New Revision: 343207 URL: http://llvm.org/viewvc/llvm-project?rev=343207&view=rev Log: [OpenCL] Improve extension-version.cl and to_addr_builtin.cl tests Add cl_khr_depth_images to extension-version.cl. Extend to_addr_builtin.cl to additionally test

[PATCH] D52020: [OpenCL] Improve extension-version.cl and to_addr_builtin.cl tests

2018-09-27 Thread Sven van Haastregt via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343207: [OpenCL] Improve extension-version.cl and to_addr_builtin.cl tests (authored by svenvh, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org

[PATCH] D52611: [clangd] Add more tracing to index queries. NFC

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: sammccall. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52611 Files: clangd/index/MemIndex.cpp clangd/index/Merge.cpp clangd

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added a comment. A lot of good improvements and many test cases, thank you! The comments are mostly nits. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + <<

[PATCH] D52547: Tell whether file/folder for include completions.

2018-09-27 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. In https://reviews.llvm.org/D52547#1247794, @kadircet wrote: > In https://reviews.llvm.org/D52547#1246701, @ilya-biryukov wrote: > > > A drive-by comment. > > Would it be cleaner to pass

[PATCH] D52611: [clangd] Add more tracing to index queries. NFC

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/index/Merge.cpp:42 // 3) now yield all the dynamic symbols we haven't processed. + trace::Span Tracer("MergedIndex fuzzyFind");

[PATCH] D52547: Tell whether file/folder for include completions.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 167320. kadircet marked 2 inline comments as done. kadircet added a comment. Preparing the patch to respect client capabilities. - Add other itemkinds as well. - Address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52547 Files

r343220 - [AArch64][v8.5A] Test optional Armv8.5-A random number extension

2018-09-27 Thread Oliver Stannard via cfe-commits
Author: olista01 Date: Thu Sep 27 07:20:59 2018 New Revision: 343220 URL: http://llvm.org/viewvc/llvm-project?rev=343220&view=rev Log: [AArch64][v8.5A] Test optional Armv8.5-A random number extension The implementation of this is in TargetParser, so we only need to add a test for it in clang. Pa

[clang-tools-extra] r343221 - Tell whether file/folder for include completions.

2018-09-27 Thread Kadir Cetinkaya via cfe-commits
Author: kadircet Date: Thu Sep 27 07:21:07 2018 New Revision: 343221 URL: http://llvm.org/viewvc/llvm-project?rev=343221&view=rev Log: Tell whether file/folder for include completions. Reviewers: sammccall Reviewed By: sammccall Subscribers: ilya-biryukov, ioeric, jkorous, arphaman, cfe-commits

[PATCH] D52492: [AArch64][v8.5A] Test optional Armv8.5-A random number extension

2018-09-27 Thread Oliver Stannard via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343220: [AArch64][v8.5A] Test optional Armv8.5-A random number extension (authored by olista01, committed by ). Changed prior to commit: https://reviews.llvm.org/D52492?vs=166909&id=167322#toc Reposito

[PATCH] D52547: Tell whether file/folder for include completions.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE343221: Tell whether file/folder for include completions. (authored by kadircet, committed by ). Changed prior to commit: https://reviews.llvm.org/D52547?vs=167320&id=167321#toc Repository: rCTE Cl

[clang-tools-extra] r343223 - [clangd] Make IncludeInserter less slow. NFC

2018-09-27 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Sep 27 07:27:02 2018 New Revision: 343223 URL: http://llvm.org/viewvc/llvm-project?rev=343223&view=rev Log: [clangd] Make IncludeInserter less slow. NFC Modified: clang-tools-extra/trunk/clangd/Headers.cpp clang-tools-extra/trunk/clangd/Headers.h Modified: clang-

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added a comment. Also, regarding error handling and `llvm::Option` vs `llvm::Expected`: I think the case where the check most likely wouldn't be able to provide useful diagnostics and perform enough analysis is when there are macro expansions within inspected statement `SourceRange`. I

[PATCH] D52611: [clangd] Add more tracing to index queries. NFC

2018-09-27 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clangd/index/dex/Dex.cpp:143 "There must be no :: in query."); + trace::Span Tracer("Dex fuzzyFind"); FuzzyMatcher Filter(Req.Query); sammccall wrote: > We should attach the query tree to the span here. >

[PATCH] D52364: [clangd] Initial supoprt for cross-namespace global code completion.

2018-09-27 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clangd/index/dex/Dex.cpp:171 } + if (Req.AnyScope) +ScopeIterators.push_back(createBoost(createTrue(Symbols.size()), 0.2)); Probably also check `!ScopeIterators.empty()`: otherwise the latency might increase fo

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( kbobyrev wrote: > JonasToth wrote: > > kbobyrev wrote

r343224 - [Tooling] Get rid of uses of llvm::Twine::str which is slow. NFC

2018-09-27 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Sep 27 07:50:24 2018 New Revision: 343224 URL: http://llvm.org/viewvc/llvm-project?rev=343224&view=rev Log: [Tooling] Get rid of uses of llvm::Twine::str which is slow. NFC Modified: cfe/trunk/lib/Tooling/Inclusions/HeaderIncludes.cpp Modified: cfe/trunk/lib/Tooling/

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 167326. gtbercea added a comment. Fix type of chunk size. Repository: rC Clang https://reviews.llvm.org/D52434 Files: lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp lib/CodeGen/CGOpenMPRuntimeNVPTX.h lib/CodeGen/CGStmtOpenMP.

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rC Clang https://reviews.llvm.org/D52434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. Should we also change the default `schedule` to `static, 1`? I know that's not really needed for `teams distribute parallel for` (because the new default `dist_schedule` only leaves one iteration per thread), but this doesn't happen for `target parallel for`. Additiona

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( lebedev.ri wrote: > kbobyrev wrote: > > JonasToth

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

2018-09-27 Thread Filipe Cabecinhas via Phabricator via cfe-commits
filcab created this revision. filcab added reviewers: rjmccall, kcc, rsmith. Repository: rC Clang https://reviews.llvm.org/D52615 Files: include/clang/Driver/SanitizerArgs.h lib/Driver/SanitizerArgs.cpp test/Driver/fsanitize.c Index: test/Driver/fsanitize.c

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added a reviewer: sammccall. Herald added subscribers: cfe-commits, arphaman, jkorous, ioeric, ilya-biryukov. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52616 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/Prot

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea added a comment. In https://reviews.llvm.org/D52434#1248012, @Hahnfeld wrote: > Should we also change the default `schedule` to `static, 1`? I know that's > not really needed for `teams distribute parallel for` (because the new > default `dist_schedule` only leaves one iteration per th

[PATCH] D52434: [OpenMP] Make default schedules for NVPTX target regions in SPMD mode achieve coalescing

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld accepted this revision. Hahnfeld added a comment. In https://reviews.llvm.org/D52434#1248032, @gtbercea wrote: > That is the intention. I just took out that part from here to not confuse > things since I wanted to have that as a separate patch. :) Ok, perfect. I was probably confused

[PATCH] D50901: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks

2018-09-27 Thread Filipe Cabecinhas via Phabricator via cfe-commits
filcab added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:305 enum ImplicitConversionCheckKind : unsigned char { -ICCK_IntegerTruncation = 0, +ICCK_IntegerTruncation = 0, // Legacy, no longer used. +ICCK_UnsignedIntegerTruncation = 1,

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 167332. kadircet added a comment. - Minimum CompletionItemKind is Text. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52616 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/Protocol.cpp clangd/Protocol.h Index: c

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( aaron.ballman wrote: > lebedev.ri wrote: > > kbobyrev w

[PATCH] D52617: [clangd] Make stable_partition on include candidates less slow. NFC

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: sammccall. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov. stable_partition on objects is slow (due to copies). Do it on pointers instead. Repository: rCTE Clang Tools Extra https://reviews.llv

[PATCH] D52423: [analyzer] Make ConversionChecker load StdCLibraryFunctionsChecker

2018-09-27 Thread Donát Nagy via Phabricator via cfe-commits
donat.nagy added a comment. Yes, moving StdCLibraryFunctionsChecker to an always-loaded package is probably a better solution than adding this one particular dependency link. (Evaluating these functions may be useful for other checkers as well, although it does not seem to change the results of

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. There are testcases with macro around line 100 in the default tests. I am not sure yet if `#define I_DECLS int i1, i2, i3;` should be diagnosed, but the other cases should. Am 27.09.2018 um 16:28 schrieb Kirill Bobyrev via Phabricator: > kbobyrev added a comment. > >

[PATCH] D52595: [ARM] Alter test to account for change to armv6k default CPU

2018-09-27 Thread Renato Golin via Phabricator via cfe-commits
rengolin accepted this revision. rengolin added a comment. This revision is now accepted and ready to land. Thanks Peter. LGTM! https://reviews.llvm.org/D52595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( kbobyrev wrote: > aaron.ballman wrote: > > lebedev.ri

[PATCH] D52611: [clangd] Add more tracing to index queries. NFC

2018-09-27 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 167336. ioeric marked 2 inline comments as done. ioeric added a comment. - address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52611 Files: clangd/index/MemIndex.cpp clangd/index/Merge.cpp clangd/index/dex/Dex.cpp Index:

[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

2018-09-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/readability/IsolateDeclCheck.cpp:343 + auto Diag = + diag(WholeDecl->getBeginLoc(), "this statement declares %0 variables") + << static_cast( JonasToth wrote: > kbobyrev wrote: > > aaron.ballm

[PATCH] D51464: clang: fix MIPS/N32 triple and paths

2018-09-27 Thread YunQiang Su via Phabricator via cfe-commits
wzssyqa updated this revision to Diff 167340. https://reviews.llvm.org/D51464 Files: lib/Basic/Targets/Mips.h lib/Driver/ToolChains/Arch/Mips.cpp lib/Driver/ToolChains/Gnu.cpp lib/Driver/ToolChains/Linux.cpp test/CodeGen/atomics-inlining.c test/CodeGen/mips-zero-sized-struct.c test/

[PATCH] D50850: clang: Add triples support for MIPS r6

2018-09-27 Thread YunQiang Su via Phabricator via cfe-commits
wzssyqa added a subscriber: rsmith. wzssyqa added a comment. I updated N32 patch for clang. Simon Atanasyan via Phabricator 于2018年9月27日周四 下午8:23写道: > atanasyan added a comment. > > Could you please update the patch against the current trunk? > > Repository: > > rC Clang > > https://reviews

r343230 - [OpenMP] Improve search for libomptarget-nvptx

2018-09-27 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Thu Sep 27 09:12:32 2018 New Revision: 343230 URL: http://llvm.org/viewvc/llvm-project?rev=343230&view=rev Log: [OpenMP] Improve search for libomptarget-nvptx When looking for the bclib Clang considered the default library path first while it preferred directories in LIBRAR

Re: [PATCH] D50850: clang: Add triples support for MIPS r6

2018-09-27 Thread YunQiang Su via cfe-commits
I updated N32 patch for clang. Simon Atanasyan via Phabricator 于2018年9月27日周四 下午8:23写道: > > atanasyan added a comment. > > Could you please update the patch against the current trunk? > > > Repository: > rC Clang > > https://reviews.llvm.org/D50850 > > > -- YunQiang Su

[PATCH] D51686: [OpenMP] Improve search for libomptarget-nvptx

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343230: [OpenMP] Improve search for libomptarget-nvptx (authored by Hahnfeld, committed by ). Repository: rC Clang https://reviews.llvm.org/D51686 Files: include/clang/Driver/Options.td lib/Driver

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/ClangdLSPServer.cpp:108 + if (Params.capabilities.textDocument.completion.completionItemKind) +for (CompletionItemKind Kind : *Params.capabi

[PATCH] D52619: Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: atanasyan, rnk. Herald added subscribers: cfe-commits, jrtc27, arichardson, sdardis. `ld{{.*}}"` seems to match the complete line for me which is failing the test. Only allow an optional `.exe` for Windows systems as most other tests do. An

[PATCH] D52617: [clangd] Make stable_partition on include candidates less slow. NFC

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/CodeComplete.cpp:325 +CodeCompletion::IncludeCandidates +moveNonInsertingIncludesToFront(CodeCompletion::IncludeCandidates Includes) { + if (Includes.size() <= 1) this seems a bit overly complicated. It does se

[PATCH] D52364: [clangd] Initial supoprt for cross-namespace global code completion.

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/CodeComplete.cpp:1251 + // from any scope. + std::pair, bool> QueryScopes; // Include-insertion and proximity scoring rely on the include st

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D52581#1247409, @theraven wrote: > > I would have done the same for the GNUstep RTTI here, except I don't > > actually > > see the code for that anywhere, and no tests seem to break either, so I > > believe it's not upstreamed yet. > > I'm n

[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

2018-09-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/FS.cpp:29 +PreambleFileStatusCache::lookup(llvm::StringRef File) const { + auto I = StatCache.find(File); + if (I != StatCache.end()) ioeric wrote: > sammccall wrote: > > lock > After a second thought, I'm won

[PATCH] D52620: Added Support for StatOnly Files in VFS.

2018-09-27 Thread UTKARSH SAXENA via Phabricator via cfe-commits
usaxena95 created this revision. Herald added subscribers: cfe-commits, mgrang. Some files are only Statted by Clang and not read. Clang mostly uses them for checking the existence of some files and in rare cases uses the value of the Status to proceed further (for example while loading module fil

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 167346. kadircet marked 3 inline comments as done. kadircet added a comment. - Address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52616 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/Protocol.cpp cl

[clang-tools-extra] r343237 - Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via cfe-commits
Author: kadircet Date: Thu Sep 27 10:13:07 2018 New Revision: 343237 URL: http://llvm.org/viewvc/llvm-project?rev=343237&view=rev Log: Introduce completionItemKind capability support. Reviewers: sammccall Reviewed By: sammccall Subscribers: ilya-biryukov, ioeric, jkorous, arphaman, cfe-commits

[PATCH] D52616: Introduce completionItemKind capability support.

2018-09-27 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE343237: Introduce completionItemKind capability support. (authored by kadircet, committed by ). Changed prior to commit: https://reviews.llvm.org/D52616?vs=167346&id=167347#toc Repository: rCTE Cla

[PATCH] D52619: Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan accepted this revision. atanasyan added a comment. This revision is now accepted and ready to land. LGTM. Thanks! Repository: rC Clang https://reviews.llvm.org/D52619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

r343239 - [analyzer] Highlight nodes which have error reports in them in red in exploded graph

2018-09-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 27 10:26:41 2018 New Revision: 343239 URL: http://llvm.org/viewvc/llvm-project?rev=343239&view=rev Log: [analyzer] Highlight nodes which have error reports in them in red in exploded graph Differential Revision: https://reviews.llvm.org/D52584 Modified:

[PATCH] D52584: [analyzer] Highlight nodes which have error reports in them in red in exploded graph

2018-09-27 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343239: [analyzer] Highlight nodes which have error reports in them in red in exploded… (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: ht

r343240 - Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Thu Sep 27 10:27:48 2018 New Revision: 343240 URL: http://llvm.org/viewvc/llvm-project?rev=343240&view=rev Log: Fix greedy FileCheck expression in test/Driver/mips-abi.c 'ld{{.*}}"' seems to match the complete line for me which is failing the test. Only allow an optional '.

[PATCH] D52619: Fix greedy FileCheck expression in test/Driver/mips-abi.c

2018-09-27 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343240: Fix greedy FileCheck expression in test/Driver/mips-abi.c (authored by Hahnfeld, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52619

[PATCH] D50318: Support Swift in platform availability attribute

2018-09-27 Thread Jeff Muizelaar via Phabricator via cfe-commits
jrmuizel added a comment. Review ping Repository: rC Clang https://reviews.llvm.org/D50318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52589: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901

2018-09-27 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added inline comments. This revision is now accepted and ready to land. Comment at: test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c:7 +////

[PATCH] D52589: [clang][ubsan][NFC] Slight test cleanup in preparation for D50901

2018-09-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Thank you for the review! Comment at: test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c:7 +//// +// Unsigned case. +//---

  1   2   >