[PATCH] D45763: [clangd][tests] Fix handling of EOF in delimited input

2018-04-23 Thread Jan Korous via Phabricator via cfe-commits
jkorous closed this revision. jkorous added a comment. I forgot to mention review in commit message. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@330608 91177308-0d34-0410-b5e6-96231b3b80d8 https://reviews.llvm.org/D45763

[PATCH] D45764: [clangd][tests] Fix delimiter handling

2018-04-23 Thread Jan Korous via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL330609: [clangd][tests] Fix delimiter handling (authored by jkorous, committed by ). Herald added subscribers: llvm-commits, klimek. Changed prior to commit: https://reviews.llvm.org/D45764?vs=142918&id

[clang-tools-extra] r330609 - [clangd][tests] Fix delimiter handling

2018-04-23 Thread Jan Korous via cfe-commits
Author: jkorous Date: Mon Apr 23 08:58:42 2018 New Revision: 330609 URL: http://llvm.org/viewvc/llvm-project?rev=330609&view=rev Log: [clangd][tests] Fix delimiter handling Empty line shouldn't be considered a delimiter Differential Revision: https://reviews.llvm.org/D45764 Added: clang-too

[clang-tools-extra] r330608 - [clangd][tests] Fix handling of EOF in delimited input

2018-04-23 Thread Jan Korous via cfe-commits
Author: jkorous Date: Mon Apr 23 08:55:07 2018 New Revision: 330608 URL: http://llvm.org/viewvc/llvm-project?rev=330608&view=rev Log: [clangd][tests] Fix handling of EOF in delimited input Request in delimited input ended by EOF shouldn't be an error state. Comments at the end of test file should

[PATCH] D45284: [RISCV] More validations on the input value of -march=

2018-04-23 Thread Alex Bradbury via Phabricator via cfe-commits
asb added a comment. In https://reviews.llvm.org/D45284#1074282, @apazos wrote: > Hi Alex, it seems the table expects these extensions in a canonical order > too: all x extensions, followed by all s extensions, and then all sx > extensions. > > I can make the change, no problem. I have also cod

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Andrew V. Tischenko via Phabricator via cfe-commits
avt77 added a comment. In https://reviews.llvm.org/D45619#1075437, @bjope wrote: > I can't see that it has been reverted. > But I guess that the table maybe is sorted based on time spent in each pass? > So that is why it might be sorted differently on different buildbots (or when > using pipe

[PATCH] D45417: [analyzer] Don't crash on printing ConcreteInt of size >64 bits

2018-04-23 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin closed this revision. a.sidorin added a comment. Closed with https://reviews.llvm.org/rC330605. Forgot to mention the Differential Revision, sorry. Repository: rC Clang https://reviews.llvm.org/D45417 ___ cfe-commits mailing list cfe-c

r330605 - [analyzer] Don't crash on printing ConcreteInt of size >64 bits

2018-04-23 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Mon Apr 23 08:41:44 2018 New Revision: 330605 URL: http://llvm.org/viewvc/llvm-project?rev=330605&view=rev Log: [analyzer] Don't crash on printing ConcreteInt of size >64 bits Printing of ConcreteInts with size >64 bits resulted in assertion failure in get[Z|S]ExtValue() b

r330604 - Fix case of LLVM library names.

2018-04-23 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Apr 23 08:41:08 2018 New Revision: 330604 URL: http://llvm.org/viewvc/llvm-project?rev=330604&view=rev Log: Fix case of LLVM library names. Modified: cfe/trunk/tools/clang-import-test/CMakeLists.txt Modified: cfe/trunk/tools/clang-import-test/CMakeLists.txt URL: http:

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

2018-04-23 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan updated this revision to Diff 143572. yvvan added a comment. Use vector instead of optional as Ilya suggested https://reviews.llvm.org/D41537 Files: include/clang-c/Index.h include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/CodeCompleteConsumer.h include/clang/Sema/Code

[clang-tools-extra] r330602 - [clangd] Fix Context::derive to actually call the right method.

2018-04-23 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Mon Apr 23 08:27:42 2018 New Revision: 330602 URL: http://llvm.org/viewvc/llvm-project?rev=330602&view=rev Log: [clangd] Fix Context::derive to actually call the right method. C++ is weird. Modified: clang-tools-extra/trunk/clangd/Context.h Modified: clang-tools-extra/trun

r330601 - Remove unused code (made unused by r161073, and later more so by r248043).

2018-04-23 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Apr 23 08:26:15 2018 New Revision: 330601 URL: http://llvm.org/viewvc/llvm-project?rev=330601&view=rev Log: Remove unused code (made unused by r161073, and later more so by r248043). Modified: cfe/trunk/tools/diagtool/CMakeLists.txt Modified: cfe/trunk/tools/diagtool/C

[PATCH] D30882: Add a callback for __has_include and use it for dependency scanning

2018-04-23 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In https://reviews.llvm.org/D30882#1075407, @ddunbar wrote: > In https://reviews.llvm.org/D30882#1074822, @dexonsmith wrote: > > > I don't think this is quite right. I know at least `make`-based > > incremental builds wouldn't deal well with this. > > > This is actua

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Bjorn Pettersson via Phabricator via cfe-commits
bjope added a comment. I can't see that it has been reverted. But I guess that the table maybe is sorted based on time spent in each pass? So that is why it might be sorted differently on different buildbots (or when using pipe etc). So I think a quick fix is to add -DAG to the checks that can

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

2018-04-23 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan updated this revision to Diff 143566. yvvan added a comment. Use wrapped FixItHint to keep corrections. Can be quite easily changed from Optional to some container if required. https://reviews.llvm.org/D41537 Files: include/clang-c/Index.h include/clang/Basic/DiagnosticSemaKinds.td

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Andrew V. Tischenko via Phabricator via cfe-commits
avt77 added a comment. In https://reviews.llvm.org/D45619#1075385, @bjope wrote: > Anyway, if the order isn't deteministic, then a solution could be to use > CHECK-DAG instead of CHECK for the checks that may be reordered. For example: Thank you very much! I'll try to fix it in this way. Rep

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Andrew V. Tischenko via Phabricator via cfe-commits
avt77 added a comment. In https://reviews.llvm.org/D45619#1075260, @thakis wrote: > In any case, when you see a test failing on bots and the fix isn't obvious, > revert first to get the bots back green. I reverted it immediatly. Repository: rL LLVM https://reviews.llvm.org/D45619 _

[clang-tools-extra] r330599 - [clangd] Prune some dead declarations. No functionality change.

2018-04-23 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Mon Apr 23 07:58:18 2018 New Revision: 330599 URL: http://llvm.org/viewvc/llvm-project?rev=330599&view=rev Log: [clangd] Prune some dead declarations. No functionality change. Modified: clang-tools-extra/trunk/clangd/Diagnostics.h clang-tools-extra/trunk/clangd/Trace.h

[PATCH] D45966: Remove LLVM_INSTALL_CCTOOLS_SYMLINKS

2018-04-23 Thread Nico Weber via Phabricator via cfe-commits
thakis created this revision. thakis added a reviewer: JDevlieghere. Herald added a subscriber: mgorny. It used to symlink `dsymutil` to `llvm-dsymutil`, but after r327790 llvm's dsymutil binary is now called dsymutil without prefix. r327792 then reversed the direction of the symlink if LLVM_IN

[PATCH] D30882: Add a callback for __has_include and use it for dependency scanning

2018-04-23 Thread Daniel Dunbar via Phabricator via cfe-commits
ddunbar added a comment. In https://reviews.llvm.org/D30882#1074822, @dexonsmith wrote: > I don't think this is quite right. I know at least `make`-based incremental > builds wouldn't deal well with this. This is actually not a novel problem w.r.t. this patch. The exact same situation comes

[PATCH] D45965: [Targets] Implement getConstraintRegister for ARM and AArch64

2018-04-23 Thread Mikhail Maltsev via Phabricator via cfe-commits
miyuki created this revision. miyuki added a reviewer: eli.friedman. Herald added subscribers: chrib, kristof.beyls, eraman, rengolin. Herald added a reviewer: javed.absar. The getConstraintRegister method is used by semantic checking of inline assembly statements in order to diagnose conflicts be

r330596 - [analyzer] Move `TaintBugVisitor` from `GenericTaintChecker.cpp` to `BugReporterVisitors.h`.

2018-04-23 Thread Henry Wong via cfe-commits
Author: henrywong Date: Mon Apr 23 07:41:17 2018 New Revision: 330596 URL: http://llvm.org/viewvc/llvm-project?rev=330596&view=rev Log: [analyzer] Move `TaintBugVisitor` from `GenericTaintChecker.cpp` to `BugReporterVisitors.h`. Summary: `TaintBugVisitor` is a universal visitor, and many checker

[PATCH] D45682: [analyzer] Move `TaintBugVisitor` from `GenericTaintChecker.cpp` to `BugReporterVisitors.h`.

2018-04-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC330596: [analyzer] Move `TaintBugVisitor` from `GenericTaintChecker.cpp` to… (authored by henrywong, committed by ). Changed prior to commit: https://reviews.llvm.org/D45682?vs=142621&id=143561#toc Rep

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Bjorn Pettersson via Phabricator via cfe-commits
bjope added a comment. In https://reviews.llvm.org/D45619#1075089, @avt77 wrote: > It's terrible but my new test was failed again as result of commit of this > patch! > > ///b/sanitizer-x86_64-linux-bootstrap/build/llvm/tools/clang/test/Frontend/ftime-report-template-decl.cpp:155:11: > error: e

[PATCH] D45964: [Driver] Fix implicit config files from prefixed symlinks

2018-04-23 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo created this revision. mstorsjo added reviewers: sepavloff, hfinkel, hans, rnk. If -no-canonical-prefixes isn't used, the clang executable name used is the one of the actual executable, not the name of the symlink that the user invoked. In these cases, the target prefix was overridden

[PATCH] D45505: [GCC] Match a GCC version with a patch suffix without a third version component

2018-04-23 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo updated this revision to Diff 143558. mstorsjo retitled this revision from "[WIP] [GCC] Match a GCC version with a patch suffix without a third version component" to "[GCC] Match a GCC version with a patch suffix without a third version component". mstorsjo edited the summary of this rev

[clang-tools-extra] r330595 - [index] Fix methods that take a shared_ptr to just take a reference.

2018-04-23 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Mon Apr 23 07:30:21 2018 New Revision: 330595 URL: http://llvm.org/viewvc/llvm-project?rev=330595&view=rev Log: [index] Fix methods that take a shared_ptr to just take a reference. There is no ownership here, passing a shared_ptr just adds confusion. No functionality change inte

r330595 - [index] Fix methods that take a shared_ptr to just take a reference.

2018-04-23 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Mon Apr 23 07:30:21 2018 New Revision: 330595 URL: http://llvm.org/viewvc/llvm-project?rev=330595&view=rev Log: [index] Fix methods that take a shared_ptr to just take a reference. There is no ownership here, passing a shared_ptr just adds confusion. No functionality change inte

[PATCH] D45717: [clangd] Using index for GoToDefinition.

2018-04-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Thanks for the changes! I still find the logic quite confusing. Happy to chat offline if useful. Comment at: clangd/XRefs.cpp:137 + +IdentifiedSymbol getSymbolAtPosition(ParsedAST &AST, SourceLocation Pos) { + auto DeclMacrosFinder = std::make_share

Re: [PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Nico Weber via cfe-commits
In any case, when you see a test failing on bots and the fix isn't obvious, revert first to get the bots back green. On Mon, Apr 23, 2018 at 8:54 AM, Andrew V. Tischenko via Phabricator via cfe-commits wrote: > avt77 reopened this revision. > avt77 added a comment. > This revision is now accepte

[PATCH] D44079: [ASTImporter] Allow testing of import sequences; fix import of typedefs for anonymous decls

2018-04-23 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin marked 2 inline comments as done. a.sidorin added a comment. Thank you Gabor! Comment at: unittests/AST/ASTImporterTest.cpp:356 + ImportAction(StringRef FromFilename, StringRef ToFilename, + const std::string &DeclName) + : FromFilename(FromFilenam

[PATCH] D44557: [analyzer] CStringChecker.cpp - Code refactoring on bug report.

2018-04-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC330589: [analyzer] CStringChecker.cpp - Code refactoring on bug report. (authored by henrywong, committed by ). Changed prior to commit: https://reviews.llvm.org/D44557?vs=138682&id=143545#toc Reposito

r330589 - [analyzer] CStringChecker.cpp - Code refactoring on bug report.

2018-04-23 Thread Henry Wong via cfe-commits
Author: henrywong Date: Mon Apr 23 06:36:51 2018 New Revision: 330589 URL: http://llvm.org/viewvc/llvm-project?rev=330589&view=rev Log: [analyzer] CStringChecker.cpp - Code refactoring on bug report. Reviewers: NoQ, george.karpenkov, xazax.hun Reviewed By: george.karpenkov Differential Revis

[PATCH] D41240: [Solaris] __float128 is supported on Solaris/x86

2018-04-23 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added subscribers: joerg, krytarowski. krytarowski added a comment. Does it work for you for 32-bit? @joerg opposed adoption of 32-bit version as it seemed to be unimplemented.. Repository: rL LLVM https://reviews.llvm.org/D41240 ___

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Andrew V. Tischenko via Phabricator via cfe-commits
avt77 reopened this revision. avt77 added a comment. This revision is now accepted and ready to land. It's terrible but my new test was failed again as result of commit of this patch! ///b/sanitizer-x86_64-linux-bootstrap/build/llvm/tools/clang/test/Frontend/ftime-report-template-decl.cpp:155:11

[clang-tools-extra] r330580 - Fix tests after changes to clang-format in r330573.

2018-04-23 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Mon Apr 23 04:47:59 2018 New Revision: 330580 URL: http://llvm.org/viewvc/llvm-project?rev=330580&view=rev Log: Fix tests after changes to clang-format in r330573. We do now both: - stop reformatting a sequence after a closing brace in more cases, in order to not misindent

[PATCH] D45944: Disallow pointers to const in __sync_fetch_and_xxx

2018-04-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D45944#1075055, @lebedev.ri wrote: > Please always upload all patches with full context (`-U9`) I'm not keen on uploading patches with that much context. For instance, it disables syntax highlighting in Phab for many of our files.

[PATCH] D45944: Disallow pointers to const in __sync_fetch_and_xxx

2018-04-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman updated this revision to Diff 143526. aaron.ballman added a comment. Updated with more context. https://reviews.llvm.org/D45944 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaChecking.cpp test/Sema/builtins.c Index: test/Sema/builtins.c

[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen or wcslen

2018-04-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp:226 +DiagnosticBuilder &Diag) { + if (getLangOpts().CPlusPlus11) { +StringRef NewFuncName = (Name[0] != 'w') ? "strncpy_s" : "wcsncpy_s"; Charusso wrote

[PATCH] D45944: Disallow pointers to const in __sync_fetch_and_xxx

2018-04-23 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Please always upload all patches with full context (`-U9`) https://reviews.llvm.org/D45944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D45873: [OpenCL] Reject virtual functions for OpenCL C++

2018-04-23 Thread Sven van Haastregt via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC330579: [OpenCL] Reject virtual functions for OpenCL C++ (authored by svenvh, committed by ). Changed prior to commit: https://reviews.llvm.org/D45873?vs=143330&id=143524#toc Repository: rC Clang ht

r330579 - [OpenCL] Reject virtual functions for OpenCL C++

2018-04-23 Thread Sven van Haastregt via cfe-commits
Author: svenvh Date: Mon Apr 23 04:23:47 2018 New Revision: 330579 URL: http://llvm.org/viewvc/llvm-project?rev=330579&view=rev Log: [OpenCL] Reject virtual functions for OpenCL C++ Differential Revision: https://reviews.llvm.org/D45873 Added: cfe/trunk/test/Parser/opencl-cxx-virtual.cl Modi

[PATCH] D44932: [CodeComplete] Fix completion in the middle of ident in ctor lists.

2018-04-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, modulo a tiny commenting nit. Comment at: lib/Lex/Lexer.cpp:1667 + // Note that code completion token is not added as a separate character + //

r330572 - [Solaris] __float128 is supported on Solaris/x86

2018-04-23 Thread Rainer Orth via cfe-commits
Author: ro Date: Mon Apr 23 02:28:08 2018 New Revision: 330572 URL: http://llvm.org/viewvc/llvm-project?rev=330572&view=rev Log: [Solaris] __float128 is supported on Solaris/x86 When rebasing https://reviews.llvm.org/D40898 with GCC 5.4 on Solaris 11.4, I ran into a few instances of In file inc

[PATCH] D45944: Disallow pointers to const in __sync_fetch_and_xxx

2018-04-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: rsmith, dblaikie. The following code is currently accepted without a diagnostic when it should be prohibited: void f(const int *ptr) { __sync_fetch_and_add(ptr, 1); } NB: the above code is diagnosed by GCC and ICC. Howe

r330575 - [CodeGen] Reland r330442: Add an option to suppress output of llvm.ident

2018-04-23 Thread Mikhail Maltsev via cfe-commits
Author: miyuki Date: Mon Apr 23 03:08:46 2018 New Revision: 330575 URL: http://llvm.org/viewvc/llvm-project?rev=330575&view=rev Log: [CodeGen] Reland r330442: Add an option to suppress output of llvm.ident The test case in the original patch was overly contrained and failed on PPC targets. Added

r330574 - [clang-format] Fix clang-tidy readability problems, NFCI

2018-04-23 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Mon Apr 23 03:02:59 2018 New Revision: 330574 URL: http://llvm.org/viewvc/llvm-project?rev=330574&view=rev Log: [clang-format] Fix clang-tidy readability problems, NFCI Modified: cfe/trunk/lib/Format/BreakableToken.h cfe/trunk/lib/Format/NamespaceEndCommentsFixer.cp

r330573 - Format closing braces when reformatting the line containing the opening brace.

2018-04-23 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Mon Apr 23 02:34:26 2018 New Revision: 330573 URL: http://llvm.org/viewvc/llvm-project?rev=330573&view=rev Log: Format closing braces when reformatting the line containing the opening brace. This required a couple of yaks to be shaved: 1. MatchingOpeningBlockLineIndex was mis

[PATCH] D45726: Format closing braces when reformatting the line containing theopening brace.

2018-04-23 Thread Manuel Klimek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL330573: Format closing braces when reformatting the line containing the opening brace. (authored by klimek, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.

[PATCH] D41240: [Solaris] __float128 is supported on Solaris/x86

2018-04-23 Thread Rainer Orth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL330572: [Solaris] __float128 is supported on Solaris/x86 (authored by ro, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D41240?vs=127348&id=1

r330571 - Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature.

2018-04-23 Thread Andrew V. Tischenko via cfe-commits
Author: avt77 Date: Mon Apr 23 02:22:30 2018 New Revision: 330571 URL: http://llvm.org/viewvc/llvm-project?rev=330571&view=rev Log: Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature. Differential Revision: https://reviews.llvm.

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-04-23 Thread Andrew V. Tischenko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL330571: Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm… (authored by avt77, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.

[PATCH] D45717: [clangd] Using index for GoToDefinition.

2018-04-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. I have updated the patch according to offline discussion -- for each symbol, we will return both decl and def locations (if available, def first) as they seems to be most sensible to users. We always prefer location from AST over Index when conflicts.

[PATCH] D45717: [clangd] Using index for GoToDefinition.

2018-04-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 143508. hokein marked 7 inline comments as done. hokein added a comment. Refine the patch and address all review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D45717 Files: clangd/ClangdServer.cpp clangd/XRefs.cpp clangd/XRef

[PATCH] D45532: [StaticAnalyzer] Checker to find uninitialized fields after a constructor call

2018-04-23 Thread Whisperity via Phabricator via cfe-commits
whisperity added a comment. @george.karpenkov @NoQ `bugprone.` as a category sounds nice. It also nicely corresponds to the Clang-Tidy `bugprone-` category. It would not be nice to further fragment the "top levels" of checker categories. I can say with confidence that CodeChecker does not break

r330569 - Revert "[clang-format] Improve Incomplete detection for (text) protos"

2018-04-23 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Mon Apr 23 01:50:36 2018 New Revision: 330569 URL: http://llvm.org/viewvc/llvm-project?rev=330569&view=rev Log: Revert "[clang-format] Improve Incomplete detection for (text) protos" This reverts commit r330016. The incomplete detection has too many false positives, picking

[PATCH] D45319: [Atomics] warn about misaligned atomic accesses using libcalls

2018-04-23 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover closed this revision. t.p.northover added a comment. Ah, I see you approved it before, presumably with the suggested changes. I've committed as r330566. Repository: rC Clang https://reviews.llvm.org/D45319 ___ cfe-commits mailing l

r330566 - [Atomics] warn about atomic accesses using libcalls

2018-04-23 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Mon Apr 23 01:16:24 2018 New Revision: 330566 URL: http://llvm.org/viewvc/llvm-project?rev=330566&view=rev Log: [Atomics] warn about atomic accesses using libcalls If an atomic variable is misaligned (and that suspicion is why Clang emits libcalls at all) the runtime supp

[PATCH] D45319: [Atomics] warn about misaligned atomic accesses using libcalls

2018-04-23 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover updated this revision to Diff 143506. t.p.northover added a comment. Moved diagnostic emission next to where the decision is made. Repository: rC Clang https://reviews.llvm.org/D45319 Files: clang/include/clang/Basic/DiagnosticSemaKinds.td clang/lib/CodeGen/CGAtomic.cpp c

[PATCH] D45177: CStringChecker, check strlcpy/strlcat

2018-04-23 Thread David CARLIER via Phabricator via cfe-commits
devnexen added a comment. If anybody can land for me, I would appreciate. Thanks regardless :-) Repository: rC Clang https://reviews.llvm.org/D45177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[PATCH] D45891: [clang-tidy] Improve bugprone-unused-return-value check

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

[PATCH] D45835: Add new driver mode for dumping compiler options

2018-04-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D45835#1073883, @efriedma wrote: > > If any of those options we care about wind up being changed, there's a good > > chance we may need to change something on our end anyway, so breaking us is > > actually useful. > > I'm not sure I fol

<    1   2